Bug 633

Summary: PMVMatrix/ProjectFloat broken
Product: [JogAmp] Jogl Reporter: Thomas De Bodt <thomas_de_bodt>
Component: utilAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
jogl f56e36bd4a497643756ab737422eb356b963b27d
Workaround: ---
Attachments: Unit test

Description Thomas De Bodt 2012-10-28 16:02:37 CET
It seems some of the function in PMVMatrix/ProjectFloat do not work correctly. Looking at the code the problem seems to be that the the ProjectFloat class assumes that the Buffers.slice2Float returns a buffer with position = 0. As a result some methods (ex. gluLookAt) do not behave correctly.

I attached a unit test. Both tests should produce a different result but in fact they currently produce the same result (e.g. and identity matrix).
Comment 1 Thomas De Bodt 2012-10-28 16:03:33 CET
Created attachment 380 [details]
Unit test
Comment 2 Sven Gothel 2012-10-31 16:54:20 CET
Thank you, fixed (added your unit test).

Pls verify if possible.
Comment 3 Thomas De Bodt 2012-10-31 23:11:35 CET
Looks good: the lookAt now behaves as expected. Thanks for the quick fix!