Download WPF3DIntroSolution-FebWinFXCTP.zip (2.1 MB)
This solution contains example projects that demonstrate basic 3D construction principles in Windows Presentation Foundation. The projects include:
- WPF3DIntro.SimpleCube - demonstrates at its simplest level how to create a 3D mesh in code and display it in a Viewport3D with a camera. Also demonstrates how to load a mesh from an external XAML file.
- WPF3DIntro.Transforms - demonstrates how to scale, rotate, and translate 3D objects within a model. Shows single transforms, transform groups, and applying cumulative transforms.
- WPF3DIntro.CompositeModel - shows how 3D objects can be grouped and how a group can be manipulated independently of other groups.
- WPF3DIntro.Trackball3D - demonstrates the use of a Trackball component that allows the user to rotate around, zoom in/out, and pan back and forth around a scene.
- WPF3DIntro.HitTesting - shows how a 3D model can respond to mouse clicks. Uses a stock quote web service (internet connection required).
- WPF3DIntro.TrackballWithAnimation - example of applying animation to objects within a 3D scene and at the same time using a trackball to change the view of the scene in real time.
- Cube Grid - more complex animation. Builds a matrix of simple cubes and applies a rotate and translate transform to each one. The entire matrix is grouped, then a rotation transform is applied to the entire group.
Posted
03-30-2006 9:08 AM
by
mhodnick