Rotation Bug...

Jul 11, 2010 at 7:24 PM

Hi Adept, i have  several geometries in  my project and one Mesh on which i change the  vertex in run time...

I once reported that it wasn't rotating with animations.

Today i found something that get her to rotate, and it also apply to other Geometries (not always which is very strange).


 <Geometries:Mesh x:Name="mshMorph"   Scale="0.001,0.001,0.001"  Position="-200,-10,0" Rotation="0,0,0"  Material="{StaticResource morphMaterial}" AssetName="Portfolio;component//Assets/morph.ase" IsVisible="True"/>


and then... 


            sbMorph = new Storyboard();
                TimeSpan tsp = new TimeSpan(0, 0, 2);
                DoubleAnimation da0 = new DoubleAnimation();
                alt = rr.Next(max);
                alt = -max + 2 * alt;
                da0.By = alt;
                da0.Duration = tsp;
                da0.RepeatBehavior = new RepeatBehavior(2);
                da0.AutoReverse = true;
                Storyboard.SetTarget(da0, mshMorph);
                Storyboard.SetTargetProperty(da0, new PropertyPath("(Node.Rotation).(X)"));


Nothing happens...but if i set them XAML with Rotation diferent then this Rotation="0,90,0" and set back in code like this  mshMorph.Rotation.Y = 0;

then it works...weird...

Jul 12, 2010 at 3:25 PM

Now this sounded realllllly strange. 

Any chance you could create a simple project that reproduces it for me to start debugging and fixing this?