- 3D model of a tube
- 3D model of a torus
The third program I have just finished on my C# study is a little XNA program, which renders a given 3D-model with a texture. You can define the camera position and you can rotate the world. I also developped four models with can be switched via shortcut, so you can only see one model a time. There are some more shortcuts available:
- F1: Show 1. model
- F2: Show 2. model
- F3: Show 3. model
- F4: Show 4. model
- F5: Delete one horizontal division
- F6: Add one horizontal division
- F7: Delete one vertical division
- F8: Add one horizontal division
- F12: Reset the configuration
- Arrow-Keys: Move the camera position (X/Y)
- NUM+ and NUM-: Move the camera position (Z)
- SHIFT-Keys: Accelerate the movement and divisions by 10
- Left-Mouse-Down: Rotation the view
- Right-Mouse-Key: Change the fill mode
The models I implemented are:
- Rectangle with TriangleList
- Rectangle with TriangleStrip
- Tube
- Torus
Okay, the first two are not really 3D-models, but it was the starting point that I had to start with and they are really cool, aren’t they?
All models must be dividable, that means, you can dynamically change the number of subdivision in X/Y direction. After the rectangles I started to build a tube and after the tube I finally worked out on a torus. To implement the torus I worked with the formular given on Wikipedia and iterated over two times PI.
I cannot give you too much details here, because other student may work on their programs for that and I don’t want them to simple copy my results. But if you are interested on these implementations just let me know and I will give more detail later on.
If you would like to test the application, feel free to download the BasicModels installer right here.
Have fun!








