WPF Plane Projection?

Feb 3, 2011 at 10:05 PM
Edited Feb 3, 2011 at 10: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.

Example: 

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 10:57 AM
Edited Feb 4, 2011 at 11:06 AM

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

http://blog.endquote.com/post/710116433/planeprojection-in-wpf
http://blogs.msdn.com/b/greg_schechter/archive/2007/10/26/enter-the-planerator-dead-simple-3d-in-wpf-with-a-stupid-name.aspx


From WPF disciples google.group 
http://groups.google.com/group/wpf-disciples/browse_thread/thread/6672e591b23a7589


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  .... 

Cheers
/Bo 

Feb 22, 2011 at 4: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!