How can I draw a trianlge....and perhaps make it spin...:)
Printable View
How can I draw a trianlge....and perhaps make it spin...:)
If you want light effects, textures and so the best way is to use DirectX, but I know too little about DX to help you with this. Other guys here know more.
But if you want to do the hole thing buy youself, you must give an x,y, and z value to all points in the triangle/cube...
Then you simply use a couple of rotation algorithms to spin your object´s points in any way you like. I can post theese if u like, gotta look them up first :)
To make it look nice you must also use some kind of projection, check my post "Projection" in the Math forum, there´s some nice answers :)
API call "Polygon" or "PolyPolygon" might be useful for the drawing.
Hi Balder!
Yes I would really like that! :)
I saw a tutorial on making a 3D triangle spin here:
http://www.vbexplorer.com
Look for the D3D tutorial ;)
Thank you! I'll try that! :)
Call me lazy, but if anyone has any good coding for a three-dimensional object, and the manipulation of it's rotation, movement, etc... could you send it to me?:D
Send to: [email protected]
Thanx...:eek:
If you want to get into 3D graphics, i would recommend
DirectX. Once you get the hang of it, it is extremely
simple to work with. Go to
http://www.vbexplorer.com/directx4vb
Zaei: Look at your site, it's the same I pointed him :rolleyes: