QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

PSPGL Example - MasterPiece3D for OpenGL

This is a discussion on PSPGL Example - MasterPiece3D for OpenGL within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; This is a nice example of how to write a Makefile to compile a glut application for psp-g++ and g++ ...

Reply
 
LinkBack Thread Tools
Old 02-11-2006, 02:48 PM   #1

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default PSPGL Example - MasterPiece3D for OpenGL

This is a nice example of how to write a Makefile to compile a glut application for psp-g++ and g++ the game is very simple stripped down version of Mp3d so not to over complicate the source code. Heres how you build the source.


type at the command prompt in the mpgl directory

$ make

thats it.. it will build it for PSP and the current platform your on. You must have the required librarys for it to work (that means PSPGL and OpenGL/freeglut)



http://www.lostsidedead.biz/software/mpgl.rar
__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-11-2006, 03:09 PM   #2

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default Picture of game

Heres it runnin on my 1.5 PSP

__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-11-2006, 04:11 PM   #3
 
Join Date: Jan 2006
Posts: 112
Trader Feedback: 0
Default

****ing sweet......
teknogeek1300 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-11-2006, 04:26 PM   #4

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default

I really want to give some props to the people behind PSPSDK and PSPGL i mean they made it really easy to port. **mad props**

Quote:
Jared@TheVaio /cygdrive/c/mpgl
$ make
rm -f *.o
echo "#define FOR_PSP" > platform.h
make -f pspmake
make[1]: Entering directory `/cygdrive/c/mpgl'
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I/usr/local/pspde
v/psp/sdk/../include -fsingle-precision-constant -g -Wall -O2 -I. -I/usr/local
/pspdev/psp/sdk/include -O2 -G0 -Wall -I/usr/local/pspdev/psp/sdk/../include -f
single-precision-constant -g -Wall -O2 -fno-exceptions -fno-rtti -c -o main.o
main.cpp
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I/usr/local/pspde
v/psp/sdk/../include -fsingle-precision-constant -g -Wall -O2 -L. -L/usr/loca
l/pspdev/psp/sdk/lib -DMODULE_NAME="mpgl" psp-setup.c main.o -lglut -lGLU -lGL
-lm -lc -lpsputility -lpspdebug -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpspvfp
u -lpsplibc -lpspuser -lpspkernel -lpsprtc -lpsppower -lstdc++ -lpspdebug -lpspd
isplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lps
pnet_resolver -lpsputility -lpspuser -lpspkernel -o mpgl.elf
psp-fixup-imports mpgl.elf
psp-strip mpgl.elf -o mpgl_strip.elf
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL mpgl_strip.elf NULL
rm -f mpgl_strip.elf
make[1]: Leaving directory `/cygdrive/c/mpgl'
echo "" > platform.h
g++ main.cpp -I/usr/X11R6/include -L/usr/X11R6/lib -o mp3d -lGLUT -lGL -lGLU

Jared@TheVaio /cygdrive/c/mpgl
$
__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-12-2006, 09:53 AM   #5

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default

Heres another example with Fog.

http://www.lostsidedead.biz/software/glfog.rar
__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-12-2006, 01:13 PM   #6

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default

it seems the implementations of OpenGL and PSPGL arent exactly the same, so it might take some tweaking to get the programs to run the same. Check out the fog example, to see this ..
__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-13-2006, 02:07 PM   #7
 
framerate's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 389
Trader Feedback: 0
Default

thanks for this jared. I've been working with openGL quite a bit recently and I hope to port some of it over to PSP in the near future.
__________________
[URL=http://www.framerate.info/psp][IMG]http://www.framerate.info/_hosted/imageupload/signature.gif[/IMG][/URL]
framerate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-13-2006, 08:21 PM   #8

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default

your welcome
__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-13-2006, 09:00 PM   #9
 
framerate's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 389
Trader Feedback: 0
Default

Quote:
Originally Posted by lostjared
your welcome
Do you have any suggestions to what in particular makes pspGL different than openGL?

I mean, do I still have full access to glUT? is the origin still upper left corner for a 2-D plane?

People keep saying it's "weird" or "incomplete".. What do they mean?
__________________
[URL=http://www.framerate.info/psp][IMG]http://www.framerate.info/_hosted/imageupload/signature.gif[/IMG][/URL]
framerate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-23-2006, 02:19 AM   #10

Developer
 
Join Date: Jan 2006
Location: California
Posts: 285
Trader Feedback: 0
Default

A Example of the differences is posted above.. Like for example no QUADS
__________________
http://lostsidedead.info
lostjared is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
masterpiece3d , opengl , pspgl

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 05:57 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us