Hi,
I’m sorry if this question seems quite simple, but I couldn’t find a definite answer.
I want to draw the exact same scene from many different positions (location and angles), and for each position extract the way the scene looks
Currently, the way I do that is just to clear the window before each drawing, redrawing everything all over again, and then extracting the pixels’ values.
Something similar to that: (I use PyOpenGL, but that doesn’t really matter)
for each position:
glPushMatrix()
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
gluLookAt(…new_position…)
draw_scene() # That calls a lot of drawing using different polygons and different colors
… glReadPixels(…)
glPopMatrix()
Is there any way to do that much more efficiently? Maybe drawing the scene and just moving around in it or something similar?