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 

Portage of Nehe tutorials 1 to 10 for PSPGL (v0.1)

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



Joined: 27 May 2006
Posts: 7
Location: France

PostPosted: Sun May 28, 2006 7:45 pm    Post subject: Portage of Nehe tutorials 1 to 10 for PSPGL (v0.1) Reply with quote

Hi !

You can get the ten first tutorials of Nehe modified to compile with PSPGL there:
http://edorul.free.fr/psp/NeheTutorials1-10_v0.1.rar

In this archive you'll find :

- a mini tutorial to install PSPSDK and PSPGL

- "glut.c" which is a modified version of the one in pspgl. In pspgl there is no key repitition, you need to release and push again a key if you want your program to detect it again. With this modified version you can push arrows or triggers (but not start, select, cross, triangle, square and circle) and 'til they remain pushed they are detected and can be used by your program. (used in Nehe07, 08, 09 and 10).
To use it you need to replace the original one, compile pspgl and intall it again.

- Nehe01 : it's not a real Nehe tutorial but a skeleton for your future programs with a working Makefile. It initialises pspgl and give you all the functions in order to use PSP arrows pad, triggers, keys and joystick.

- Nehe02 to Nehe10 : they are adaptation of cygwin version of Nehe tutorials modified in order to run on a PSP.
You will notice in each folder a working Makefile, "psp-setup.c" needed to compile pspgl programs and "copy.sh" that permits to copy directly your program to your PSP without living cygwin, just type "./copy.sh".
All parts I've modified are maked by "@@@".

For the moment they are some bugs :
Nehe08 : if you use blend and light at the same time the cube disapear.
Nehe10 : Idem as Nehe08, and there is a clipping problem (as in all Nehe tutorials I have modified, but here it's very visible) -> if a point of a triangle is out of the clipping area the whole triangle is not drawn. It's specialy significant with the cell and floor.

Your feedbacks are welcome if you find a way to fix those bugs ;)

I hope this archive will be usefull to someone.

Edorul

PS: Many Thanks to lostjared for is MasterPiece3D port to PSP : it gave me a good sample and not the least a working makefile !
Back to top
View user's profile Send private message Visit poster's website
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun May 28, 2006 8:34 pm    Post subject: Reply with quote

This is excellent stuff!

Great work there, the code is very well commented.

For people that don't know NeHe's site is at:

http://nehe.gamedev.net/

Ideal scenario would be to convert his web tutorials so they were PSP specific too, not a job I'd like to undertake!

Thanks for this.
Back to top
View user's profile Send private message
JesusXP



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Mon May 29, 2006 1:17 am    Post subject: Reply with quote

great job, thanks!!
Back to top
View user's profile Send private message MSN Messenger
Energy



Joined: 26 Mar 2005
Posts: 133
Location: uk/beds/flitwick

PostPosted: Mon May 29, 2006 3:34 am    Post subject: Reply with quote

Come to my pub and I'll buy you a drink :)
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Mon May 29, 2006 2:28 pm    Post subject: Reply with quote

Someone actually did it, heh... Good job :D

Now, someone get display lists working!
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Mon May 29, 2006 10:16 pm    Post subject: Reply with quote

Awesome! I just finished my first OpenGL program concept on PC and it only uses Lesson 6 tech, so I'm very curious if I'll be able to get it running on PSP now :)

EDIT: Works! That was easy! :) I was trying already with the Gu samples, but they gave me a major headache. This worked first time, and will help me a lot being able to develop on PC first.

Thanks! Thanks! Thanks!
Back to top
View user's profile Send private message
Edorul



Joined: 27 May 2006
Posts: 7
Location: France

PostPosted: Tue May 30, 2006 1:43 am    Post subject: Reply with quote

Thanks to all for your congratulations. I'm glad I could be helpfull.

When I've spare time, I continue slowly (I've done lesson 11 and 16). Just a word about that : if you use fog there is a bug in PSPGL and you MUST define GL_FOG_END before GL_FOG_START else you'll have a strange effect, somekind of inversed fog (try and you'll see...)

Energy wrote:
Come to my pub and I'll buy you a drink :)

Beware I'll remind this ;)
Back to top
View user's profile Send private message Visit poster's website
lokust



Joined: 28 May 2006
Posts: 22

PostPosted: Tue May 30, 2006 7:16 am    Post subject: Reply with quote

Is PSPGL a replacement for the drawing routines in the SDK?
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Tue May 30, 2006 6:15 pm    Post subject: Reply with quote

PSPGL is a library for programming 3D graphics that is compatible with the very commonly used OpenGL library that you can find on PC, Mac, PS3, etc. This means you can write a 3D program for OpenGL on the PC, and then easily run that program on the PSP.

It does come at a price however, as it is probably not nearly as fast as using the sceGu commands. However, it does make coding a lot easier - you can develop big parts of your application on PC first. And it will allow people to port OpenGL based software.
Back to top
View user's profile Send private message
thomas_fogh



Joined: 20 Jul 2007
Posts: 21
Location: Denmark

PostPosted: Wed Aug 29, 2007 5:43 pm    Post subject: Reply with quote

I can't get lesson 6 and above to work. When I start the EBOOT it just exits to XMB. (Except for lesson 10, which shuts down the psp.)
The lessons compile just fine and I have no problem running lesson 1-5.
Back to top
View user's profile Send private message
tabularasa



Joined: 22 Nov 2006
Posts: 13

PostPosted: Mon Oct 08, 2007 7:25 pm    Post subject: Reply with quote

i haven't tested the psp port but it's awesome.
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