PDA

Click to See Complete Forum and Search --> : Draw triangle...


CyberCarsten
Feb 13th, 2001, 02:02 PM
How can I draw a trianlge....and perhaps make it spin...:)

Balder
Feb 13th, 2001, 03:59 PM
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.

CyberCarsten
Feb 14th, 2001, 03:49 AM
Hi Balder!
Yes I would really like that! :)

Jotaf98
Feb 14th, 2001, 04:05 AM
I saw a tutorial on making a 3D triangle spin here:

http://www.vbexplorer.com

Look for the D3D tutorial ;)

CyberCarsten
Feb 14th, 2001, 04:39 AM
Thank you! I'll try that! :)

tomcatexodus
Feb 26th, 2001, 11:55 AM
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: WEBMASTER@RELLIKSOFTWARE.DARKGOD.NET

Thanx...:eek:

Mar 1st, 2001, 02:43 PM
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

Jotaf98
Mar 2nd, 2001, 08:10 AM
Zaei: Look at your site, it's the same I pointed him :rolleyes: