| View previous topic :: View next topic |
| Author |
Message |
Edorul
Joined: 27 May 2006 Posts: 7 Location: France
|
Posted: Sun May 28, 2006 7:45 pm Post subject: Portage of Nehe tutorials 1 to 10 for PSPGL (v0.1) |
|
|
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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Sun May 28, 2006 8:34 pm Post subject: |
|
|
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 |
|
 |
JesusXP
Joined: 17 Jan 2006 Posts: 80 Location: Ontario, Canada
|
Posted: Mon May 29, 2006 1:17 am Post subject: |
|
|
| great job, thanks!! |
|
| Back to top |
|
 |
Energy
Joined: 26 Mar 2005 Posts: 133 Location: uk/beds/flitwick
|
Posted: Mon May 29, 2006 3:34 am Post subject: |
|
|
| Come to my pub and I'll buy you a drink :) |
|
| Back to top |
|
 |
Gary13579
Joined: 15 Aug 2005 Posts: 93
|
Posted: Mon May 29, 2006 2:28 pm Post subject: |
|
|
Someone actually did it, heh... Good job :D
Now, someone get display lists working! |
|
| Back to top |
|
 |
Arwin
Joined: 12 Jul 2005 Posts: 426
|
Posted: Mon May 29, 2006 10:16 pm Post subject: |
|
|
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 |
|
 |
Edorul
Joined: 27 May 2006 Posts: 7 Location: France
|
Posted: Tue May 30, 2006 1:43 am Post subject: |
|
|
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 |
|
 |
lokust

Joined: 28 May 2006 Posts: 22
|
Posted: Tue May 30, 2006 7:16 am Post subject: |
|
|
| Is PSPGL a replacement for the drawing routines in the SDK? |
|
| Back to top |
|
 |
Arwin
Joined: 12 Jul 2005 Posts: 426
|
Posted: Tue May 30, 2006 6:15 pm Post subject: |
|
|
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 |
|
 |
thomas_fogh
Joined: 20 Jul 2007 Posts: 21 Location: Denmark
|
Posted: Wed Aug 29, 2007 5:43 pm Post subject: |
|
|
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 |
|
 |
tabularasa
Joined: 22 Nov 2006 Posts: 13
|
Posted: Mon Oct 08, 2007 7:25 pm Post subject: |
|
|
| i haven't tested the psp port but it's awesome. |
|
| Back to top |
|
 |
|