Skip to main content
gamedev.net
🔒 Locked

multiple display lists ??

Started by Kincaid 2 replies 1k views
Original Post
Kincaid
Kincaid
Hello, I have a mesh, which needs to be divided in the front and back facing polygons. (to build (part of)a shadow volume) I build the volume by looping all vertices twice. once compiled into a front facing display list, and once for the back. (so i can simply call either one when needed again) Is it possible to start 2 or more display lists, and based on the result of some test, render to either one. That way I could only cycle once (instead of twice, saving a lto), rendering both display lists at once.. i guess this is impossible and a stupid question...still curious though... thanx in advance
kittycat768
kittycat768
At the risk of sounding ignorant... Have you tried playing around with glCullFace() and glFrontFace()?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------I once read that World of Warcraft is poor fishing simulator. I don't know about you but I catch a lot more fish in World of Warcraft than I do in real life.
UnIXbLueStar
UnIXbLueStar
i dont think you can use glNewList while one is already opened but you can call a list inside a display list :).

If you call glNewList while theres no list opened then yes you can have many.
fcoelho
fcoelho
OpenGL man pages
Quote:

GL_INVALID_OPERATION is generated if glEndList is called without a preceding glNewList, or if glNewList is called while a display list is being defined.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.