Archived

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

Magallo

Professional Rendering

Recommended Posts

Thinking about a real professional 3d game I was asking myself how the hell programmers can render in a devent frame rate so huge levels. I mean, think about a Quake or Half-Life or even Tomb Raider level. They are huge!!! They are made by millions of vertices and triangles. How can they render them smootly ? It must be a particular way to do it. They cam''t use glVertex3f() milions of times per every rendering loop. So, what is the solution ? Another question.... Does glDrawElements give a very good boost performance instead of using glVertex3f or not ? Now I''m using the glVertex3f method called ''n'' times where ''n'' is the number of my vertices. Should I pass to use glDrawElements or not ?

Share this post


Link to post
Share on other sites
Current hardware cannot cope with the amount of data needed for a single quake 3 level ( not hardware available to average gamer at least ). So it is best to render only what is visible ...

Look for bsp tree, octree and portal rendering tutorials. These methods allows to draw only what is visible ( or could eventually be visible ).

I still dont know enough about opengl to answer your second question, but I wish you good luck ...

Share this post


Link to post
Share on other sites