This example displays a three-dimensional cube. To display a three-dimensional 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 on the title above the button and select View Source from the menu that appears.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.