Jump to content
  • Advertisement

Archived

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

Doc_Holiday

How to subdivide Polygons the right way?

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

My Problem is: How do I have to subdivide Polygones in triangles? like this: (Its code for VB, but the thing i want to now is the same) (Begin of Polygon which should be subdivided) glBegin(GL_Polygon) glVertex3f -3#, 0#, 0# glVertex3f 3#, 0#, 0# glVerte3f 1.5, 2#, 0# glEnd glBegin(GL_Polygon) glVertex3f 1.5, 2#, 0# glVertex3f 3#, 0#, 0# glVertex3f 4#, 1.5, 0# glEnd (end of P which should be subdivided) or this way: glBegin (triangles) glVertex3f -3#, 0#, 0# glVertex3f 3#, 0#, 0# glVerte3f 1.5, 2#, 0# glVertex3f 1.5, 2#, 0# glVertex3f 3#, 0#, 0# glVertex3f 4#, 1.5, 0# glEnd What is the faster way to draw? Whats the standart? Or is both of this a fault and could someone show me the right?

Share this post


Link to post
Share on other sites
Advertisement

  • 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!