tags:

views:

109

answers:

1

I've been making heavy use of the interactive 3D controls, made by some guys on the WPF team, found here http://channel9.msdn.com/posts/Charles/Daniel-Lehenbauer-and-Kurt-Berglund-Interactive-2D-controls-on-WPF-3D-Surfaces/

I've noticed there hasn't been any updates to this lately, and with WPF and .Net 4.0 just around the corner, I was just wondering if there is a better way to do 2D controls on 3D objects, or is this still the best way to do it?

+1  A: 

Perhaps you're looking for Viewport2DVisual3D.

Viewport2DVisual3D enables you to place interactive 2-D content on a 3-D object. Its counterpart is the Viewport3DVisual class, which is a 2-D visual with 3-D children.

[EDIT] You can see an example in Matthew MacDonald's book Pro WPF in C# 2008 here on page 851. You may or may not be able to view it (not sure) but I won't reproduce here as it's not my work.

jeffora
Thank you , thank you, this is exactly what i was looking for...time to re-write my senior project..... :)
Nate Gates
shoot...I can't derive Viewport2DVisual3D....dang...
Nate Gates
Why do you need to derive it? Matthew MacDonald has a good example of how to use it in his book Pro WPF in C# 2008 which can be seen in Google books - I've edited my answer with link.
jeffora
Or have a look at the example on the MSDN page I first linked
jeffora