Re: [PyOpenGL-Users] PyOpenGL Deprecation & New Methods
Brought to you by:
mcfletch
From: Ian M. <geo...@gm...> - 2009-12-11 03:23:32
|
I was thinking of just computing the matrices in the main and then passing those as uniforms, similarly to the present setup, instead of trying to define a series of transformations and pass those in. Not sure if that's what you mean. Simply add a part in each of the drawing functions (e.g., I have stuff like object.draw_vbo(shader)) that passes in the current matrix, and then redefine glScalef, glRotatef, etc. to change a hardcoded matrix. Then you can code in legacy style. Still not sure why they decided to change it. IMO, the matrix setup works beautifully. There can only be negative performance consequences from not implementing it in hardware. Ian |