Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

N-Gons?

4: Adsense

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   

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

#2 Dean Harding   Members   

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   

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   

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.