Page 1 of 1

Is there a good way to make a visibility anim?

Posted: 11 Apr 2018, 11:36
by Wangshiyou
<Storyboard x:Key="SelectState">
<DoubleAnimation Storyboard.TargetName="RingImg" Storyboard.TargetProperty="(Image.Opacity)"
From="0" To="1" Duration="0:0:1"/>
</Storyboard>

<Image x:Name="RingImg" Source="{Binding SelectRing}" Height="85" Width="85" Canvas.Left="15" Canvas.Top="15" Opacity="0"/>

There is not a visibility anim so i tried opacity anim but it just can not work and it breaks here

XamlView->SetIsPPAAEnabled(EnablePPAA);

Re: Is there a good way to make a visibility anim?

Posted: 11 Apr 2018, 12:11
by Wangshiyou
i am sorry that in my visualstate i forget to make a visualstategroup

Re: Is there a good way to make a visibility anim?

Posted: 13 Apr 2018, 09:39
by sfernandez
Many of our demos use Opacity property to do fade transitions, using both Storyboard or VisualState animations.

What integration are you using: UE4, Unity, your own engine?

If it is the last case make sure you follow integration tutorial and that RenderOffscreen() is called before activating the main screen surface/context, otherwise opacity groups won't be rendered correctly.

Re: Is there a good way to make a visibility anim?

Posted: 13 Apr 2018, 10:35
by jsantos
Using XamlPlayer is a good way to check if the problem is in the client integration code or in noesis.