Platform SDK: DirectX |
This topic pertains only to application development in C and C++. DirectX for Visual Basic does not include support for the Direct3DX utility library.
The Tentacle sample lets the user interact with a 3-D environment.
Source: (SDK root)\Samples\Multimedia\D3dx\Src\Tentacle
Executable: (SDK root)\Samples\Multimedia\D3dx\Bin\Tentacle.exe
Keyboard controls (NUM LOCK must be on)
Move | W, S |
Slide | Arrow Keys |
Turn | Numpad 4, 6 |
Pitch | Numpad 2, 8 |
Roll | Numpad 7, 9 |
Toggle Wireframe | F2 |
Exit | ESC |
Mouse controls
Rotate left arm | LButton |
Rotate right arm | RButton |
Rotate base | LButton+RButton |
Twist left arm | SHIFT+LButton |
Twist right arm | SHIFT+RButton |
Twist base | Shift+LButton+RButton |
Stretch left finger | CTRL+LButton |
Stretch right finger | CTRL+RButton |
The program demonstrates the vertex blending and user clip plane features that are new to DirectX 7.0. It also shows reflective effects and lens flares.
This sample uses the Direct3DX utility library helper classes.