Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

drstrangeluv

Using triangles to build 3D objects

This topic is 6897 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If you're using DirectX 7, the utility library has these functions for creating simple 3D objects.

D3DXCreateBox
D3DXCreateCylinder
D3DXCreatePolygon
D3DXCreateSphere
D3DXCreateTeapot
D3DXCreateTorus

You can pull the vertices out of the created objects.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
how would you go about making a terrain collision detection thing with d3dim?

how would you store 3d levels or scenes? a 2d array and the value would equal the height?
like that thing you drew.
00000
01100
01110
00100

hrm.
how would you go about making sure another model is on a terrain with hills and slants and slopes? how would you move an object around a 3d level and check for collisions? would you do if the model is in a level object then? where can i find out about all the suff id like to know?

Share this post


Link to post
Share on other sites
Could anyone point me to some good discussions on how to use triangles to draw more complex 3D objects? I'm specifically looking for algorithms and/or code to perform surface approximations. Right now, I'm just interested in the basics (i.e. creating spheres, squares, disks, etc.).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!