Bug 633 - PMVMatrix/ProjectFloat broken
Summary: PMVMatrix/ProjectFloat broken
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2012-10-28 16:02 CET by Thomas De Bodt
Modified: 2012-10-31 23:11 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
jogl f56e36bd4a497643756ab737422eb356b963b27d
Workaround: ---


Attachments
Unit test (1.78 KB, application/octet-stream)
2012-10-28 16:03 CET, Thomas De Bodt
Details

Note You need to log in before you can comment on or make changes to this bug.
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!