|
-
Dec 5th, 2004, 06:34 PM
#1
Thread Starter
Junior Member
VB: Directx 8 3d cube -[RESOLVED]-
ok i am starting to learn dx8 and 3d. But one thing i don't get is why in the turorial on directx4vb.com it has 6 vertices on one side. so 36 vertices for the cube.
Cube(0) = CreateLitVertex(-1, 1, DFC, C011, 0, 0, 0)
Cube(1) = CreateLitVertex(1, 1, DFC, C011, 0, 0, 0)
Cube(2) = CreateLitVertex(-1, -1, DFC, C011, 0, 0, 0)
Cube(3) = CreateLitVertex(1, 1, DFC, C011, 0, 0, 0)
Cube(4) = CreateLitVertex(-1, -1, DFC, C011, 0, 0, 0)
Cube(5) = CreateLitVertex(1, -1, DFC, C011, 0, 0, 0)
thats the code and it has a createlitVertex function. but i don't get why it has 6 vertices instead of 4 for one side of the cube. Can sum1 explain this to me.
if you want to see the whole code goto
http://216.5.163.53/DirectX4Vb/index.asp
it has the tutorial that i am using
i would appreciate it if some1 could explain it to me.
thnx
Last edited by Electroman; Dec 8th, 2004 at 07:55 PM.
Reason: Added Language to title & Changed to Resolved Icon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|