PDA

View Full Version : OpenGL Drawing



05-03-2001, 08:01 PM
Hi there,

my GL program reads all the vertex data from a file and saves it in a linked list. Everytime the display function is called, it draws every vertex in the linked list. Well, I need to know if OpenGL draws every vertex no matter if it's inside the viewing area of the player or if it draws only those which are in sight of the player? Please help!

-CuriousNewby

05-03-2001, 08:07 PM
no it does not rasterize the vertexes outside of the view but it does do all the calculations (rotate translate and possibly illumination shading etc) on the vertexes that are outside of the frustum... to get better performance look up view frustum culling on this forum.

Korval
05-03-2001, 10:06 PM
I wouldn't be tremendously concerned about culling every single polygon outside the fustrum. Gross, object-level culling is worthwhile, but not something like polygon-level culling.