Index Topic Contents | |||
Previous Topic: Scripting Cookbook Next Topic: Arcs |
3-D Cube
This example displays a three-dimensional cube. To display a 3-D object, use some sort of lighting and a camera. For lighting, this demonstration uses both a PointLight and a DirectionalLight. To render the image, it uses a PerspectiveCamera. To make it clearer that the cube is three-dimensional, we rotate it around the x-axis with the Rotate3Anim function.
To see the source code, right-click the title above the button and choose View Source from the menu that appears.
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.