This project is read-only.

WPF Plane Projection?

Feb 3, 2011 at 11:05 PM
Edited Feb 3, 2011 at 11:10 PM

I have been working with Silverlight and Artefact Animator for quite some time, and manipulating an object's Plane projection is my favorite tool.


var _center = Helper.GetApothem(500, 4);
var _rotate = new PlaneProjection{CenterOfRotationZ = center, RotationY = 34, RotationX = 82};
ArtefactAnimator.AddEase(_image, Animation3DEffects.Projection, _rotate, 5, AnimationTransitions.CubicEaseOut, 0);

Is there any way to do something like that with WPF?

I don't want to use Viewport3D unless I absolutely have to...


Feb 4, 2011 at 11:57 AM
Edited Feb 4, 2011 at 12:06 PM

Had the same question some while ago , you can search on Plane "projection class wpf"
Found theese two examples ..

From WPF disciples

Hope you can make use of them . But like you I also like how simple the Plane projection is in SL ;). Would be a nice feature in WPF  .... 


Feb 22, 2011 at 5:44 AM

Thanks for the tips Bo!

I used the plane projection class for WPF and came up with a stellar implementation that is super easy to use:

ArtefactAnimator.AddEase(_image, Perspective3D.RotationYProperty, angle, time, ease, delay);

It doesn't have control over center of rotation, but you can fake it with XAML.

I will probably use this technique in ALL of my WPF projects.... including Surface 2.0 and some top secret Kinect apps

Jesse is a rockstar for inventing this technology.... we all owe him a huge thanks!