Jump to content
  • Advertisement

Archived

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

Eight

N-Gons?

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

I was just looking at the documentation for the Wavefront (.obj) format. It seems this format creates faces/planes using a mininum of three vertices but doesn''t specify a maximum. In terms of writing an OpenGL renderer for these objects, is it possible to set OpenGL to render polygons with more than 3 or 4 vertices? I came across talk of using something like GL_POLYGONS which might wait until you specify a closed loop of vertices before it renders. Is this right? Can anyone point me to an example of it Kind regards, E

Share this post


Link to post
Share on other sites
Advertisement
That''s right, though I won''t use it for anything that''s meant to be realtime. You''ll want to tesselate larger polygons, and maybe convert them to tristrips or fans.


War Worlds - A 3D Real-Time Strategy game in development.

Share this post


Link to post
Share on other sites
GL_POLYGON is the slowest rendering of all of the rendering types. when you load the geometry you could split it up into triangles, (fans while you''re at it) which will speed it up if neccessary. If it runs fast enough with GL_POLYGONS then more power to you.

HHSDrum@yahoo.com
Polarisoft Home Page

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!