| View previous topic :: View next topic |
| Author |
Message |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Fri Aug 19, 2005 1:19 pm Post subject: libpspGL and lookat |
|
|
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. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Aug 20, 2005 12:31 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
webjeff
Joined: 05 May 2005 Posts: 66
|
Posted: Sat Aug 20, 2005 12:43 am Post subject: |
|
|
Oopo,
Thanks, exactly what I was looking for, I'll try it tonight and see how it goes. Thanks!!
Jeff. |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Sun Aug 21, 2005 5:58 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|