Re: Negating some JNI call overhead by doing transformations in Java
Posted by
Sven Gothel on
Jul 23, 2011; 1:27am
URL: https://forum.jogamp.org/Negating-some-JNI-call-overhead-by-doing-transformations-in-Java-tp3188212p3192770.html
On Thursday, July 21, 2011 10:33:12 PM gouessej [via jogamp] wrote:
>
> Compose the transform matrix of each object in the CPU side (by combining all
> transforms concerning each object) and then call glLoadMatrixf one time per
> object.
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/PMVMatrix.htmlYou can use the PMVMatrix, which impl. all matrix methods of the fixed function pipeline (FFP).
We use it for our FFP emulation, as well as for some ES2 demos.
~Sven