Jump to content

  • Log In with Google      Sign In   
  • Create Account


N-Gons?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Eight   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 July 2001 - 10:56 PM

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

Sponsor:

#2 Dean Harding   Members   -  Reputation: 546

Like
Likes
Like

Posted 24 July 2001 - 11:52 PM

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.

#3 Julio   Members   -  Reputation: 116

Like
Likes
Like

Posted 25 July 2001 - 06:28 AM

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

#4 Eight   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 July 2001 - 09:32 PM

Thanks Dean, Julio.

Looks like this will do the job nicely.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS