I gotta question about lookat.
I am trying to set the lookAt value, I had this line in there before with (libGU):
sceGuSetMatrix(GU_VIEW,(ScePspFMatrix4*)&viewMat[0]);
but I dont see the same on pspgl, whats weird is it has gluPerspective, but not gluLookAt but anyway, I tried:
just glLoadMatrixf(viewMat);
And that doesn't seem to work right, so my question, is there a way to get this to work with libPSPGL? Will pspGL ever have gluLookAt functionality?
Thanks
Jeff.
libpspGL and lookat
Well, pspgl is a port of opengl es which doesn't provide gluLookAt().
However, a search on google shows this is a common complaint. Lucky for you this means some people have already created their own versions you can use in your code. Here's one:
http://iparla.labri.fr/softwares/glutes/
Its a port of glut to opengl es. There's even a first version that supports gluLookAt here:
http://iparla.labri.fr/softwares/glutes/glues.zip
Enjoy!
However, a search on google shows this is a common complaint. Lucky for you this means some people have already created their own versions you can use in your code. Here's one:
http://iparla.labri.fr/softwares/glutes/
Its a port of glut to opengl es. There's even a first version that supports gluLookAt here:
http://iparla.labri.fr/softwares/glutes/glues.zip
Enjoy!
Please update your SVN repository, there should now be a gluLookAt(). I tested it only using the simple cube demo, please let me know whether there are problems. I'm not sure whether we should create a seperate glu.h file, probably we need one sooner or later... right now our two GLU functions are declared in the PSP extension section of GLES/gl.h.
If you need further not-yet-done GL or GLU features feel free to implement them, patches are welcome.
Holger
If you need further not-yet-done GL or GLU features feel free to implement them, patches are welcome.
Holger