forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

libpspGL and lookat

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Fri Aug 19, 2005 1:19 pm    Post subject: libpspGL and lookat Reply with quote

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
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Aug 20, 2005 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Sat Aug 20, 2005 12:43 am    Post subject: Reply with quote

Oopo,

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

Jeff.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Sun Aug 21, 2005 5:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group