Skip to main content
gamedev.net
🔒 Locked

Polygon Structure

Started by Chris0001 Jan 23, 2003 at 11:16 PM 1 replies 150+ views
Original Post
Chris0001
Chris0001
What kind of polygon class can be fast enough for a game involving 3d terrain, models, and meshes? I currently have a polygon class with a list of verticies and a list of indices that refrence the verticies. Could such a structure be fast where speed is an issue? Any places where I can find some examples? Thanks
TwistedMatrix
TwistedMatrix
I''m not very knowledgable in the ways of C++ so I dont know how much help I can be, but It seems to me that your polygon class is fine. If you are really worried about speed, you should start looking at things like backface culling, Multiple LOD''s, and things of that nature. After all, you can only make a single polygon so fast.
Also, by polygon, i hope you are talking about a single plain ??? poly with more than 3 vertices tend to get CPU hungry.

- Twisted Matrix
Twisted Matrix
Cornutopia
Cornutopia
That will be fine. DirectX certainly supports what you are describing exactly (Index Buffers) so I''m thinking that hardware does too.

Mark
mark@cornutopia.co.uk
http://www.cornutopia.co.uk

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.