gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Modelview Matrix

#116091 - Risine - Sun Jan 21, 2007 9:56 pm

Is there a way to retrieve the "Modelview Matrix"? I have searched on the forum with no success.
Something to replace this :
glGetFloatv(GL_MODELVIEW_MATRIX, matrix);

#116124 - Rajveer - Mon Jan 22, 2007 3:26 am

I remember somebody saying something like using the define to retrieve the projection matrix is also used for the modelview matrix, it just depends on which matrix mode is currently in use. So make sure that the current matrix in use is the modelview matrix and use glGetFixed with the GL_GET_MATRIX_PROJECTION (I think) define.

Sorry if I'm totally wrong, but I remember somebody saying that.

EDIT: http://forum.gbadev.org/viewtopic.php?t=11882&highlight=modelview

http://forum.gbadev.org/viewtopic.php?t=11517&start=17

#116341 - DiscoStew - Wed Jan 24, 2007 5:08 pm

The thing you need to understand though is that most emulators don't emulate this feature yet. Out of all the tests I've done (other than hardware), the only emulator that seems to work is No$GBA. The rest give you a bunch of 0s, or even soem random crap.
_________________
DS - It's all about DiscoStew

#116808 - Risine - Mon Jan 29, 2007 10:22 pm

It works fine :) Thanks all for your help. :)

#116882 - silent_code - Tue Jan 30, 2007 5:26 pm

no$gba won't load my roms... they work perfectly on hw and dualis and other emus. i just can't find out why...