libpspGL and lookat

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

libpspGL and lookat

Post by webjeff »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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!
webjeff
Posts: 66
Joined: Thu May 05, 2005 2:51 am

Post by webjeff »

Oopo,

Thanks, exactly what I was looking for, I'll try it tonight and see how it goes. Thanks!!

Jeff.
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

Post by holger »

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
Post Reply