Wangshiyou
Topic Author
Posts: 9
Joined: 07 Mar 2018, 02:21

Is there a good way to make a visibility anim?

11 Apr 2018, 11:36

<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);
 
Wangshiyou
Topic Author
Posts: 9
Joined: 07 Mar 2018, 02:21

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

11 Apr 2018, 12:11

i am sorry that in my visualstate i forget to make a visualstategroup
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

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

13 Apr 2018, 09:39

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.
 
User avatar
jsantos
Site Admin
Posts: 2900
Joined: 20 Jan 2012, 17:18
Contact:

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

13 Apr 2018, 10:35

Using XamlPlayer is a good way to check if the problem is in the client integration code or in noesis.

Who is online

Users browsing this forum: Bing [Bot] and 3 guests