DirectX SDK |
This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.
The Bend sample demonstrates a technique called surface skinning. It displays a 3-D object, which rotates about the y-axis and appears to bend.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\Bend
Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\Bend.exe
Press F1 to see available commands, or choose from the menu.
The sample achieves the surface-skinning effect by using two static copies of the object, one of which is oscillating along an axis. At each frame, the vertices of the two objects are merged and blended into a third object. The sample displays the object derived from the third set of vertices.
This sample was built using the Direct3D sample framework.