Click to See Complete Forum and Search --> : Display Lists


typewriter
March 19th, 2008, 03:30 PM
Hello-

I was reading about openGl display lists, and it all makes sense, except I would like to be able to individually scale (uniform OR 1D) , rotate, translate, texture etc each instance of the DL. I don't know about scaling, since it would involve actually changing the points in the display list. As far as I know, you can't pass a parameter into a display list.

Is this possible?

Lindley
March 19th, 2008, 03:54 PM
You could modify the projection matrix to achieve the result you want, but it would be tricky to get right if you've got a significant amount of other stuff in the scene.

There are some OpenGL extensions related to instancing, which might be relevant.

Unlogic
April 4th, 2008, 05:59 AM
Can you not call glTranslate, glRotate, glScale before each call to the DL? By using pushMatrix () before each tranform/display block and popMatrix () at the end you should be able to do this separately for each DL.