Jump to content
  • Advertisement

Archived

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

Gammastrahler

Question ABout Models And Polygons

This topic is 6065 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

hi folks, my engine is organized like this: a class CPolygon for abstracts like triangles, etc. and a class CModel that holds an array of CPoylgons to build solid and complex objects. now my question: should i allow each polygon to have its own relative origin in 3d space and orientation? or should this only used for a CModel object ? in other words, for each drawn polygon call glPush and glPopMatrix to use a glTranslatef and glRotatef? or should this only be used in CModel? thanks+greets chris Edited by - gammastrahler on January 9, 2002 8:12:45 AM

Share this post


Link to post
Share on other sites
Advertisement
I would say to only do that in CModel. The polygons don''t NEED to have a center point that they are relative to, although you could implement it that way.

If you needed polygons that could rotate or move independent of the model object, then you would be better off using a center point and orientation in each polygon as well. Usually that can be done by moving the vertices in some other way, though, so I never worry too much about those cases.

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!