3D graphics samples

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
TracerH
Posts: 5
Joined: Sun Feb 24, 2008 8:55 pm

3D graphics samples

Post by TracerH »

The noob story:
Somebody gave me a slim PS2 for X-mas. I've really been enjoying it. I then found out about homebrew programming, and have stopped playing games in favor of researching the libraries.

The noob questions:
I have been through the ps2sdk examples and the gsKit examples and have managed to modify the source to create my own lists of triangles using math, sinf, cosf, etc. I have spend days reading all the material I could find (procedural rendering on PS2, etc) on graphics programming for the PS2 and have a fairly descent idea of what is going on in these libraries. Now I'm looking for some examples that are a little more in depth to give me an idea of more complicated graphics.

I see the differences in how ps2sdk and gsKit handle primitive lists, and have read that everybody suggests using the gsKit. So far I have managed to get further with 3D graphics in ps2sdk, but would like to try more with gsKit. I am fascinated by some the demos, like d136b. Is there anywhere I can find more example source code for 3D rendering?

The noob disclaimer:
I am a total noob to PS2 programming and 3Dgraphics programming. I am (don't laugh) a windoz dot net programmer and now mostly work with asp.net. I have played with directX programming, but not much. I used to program PLC's and have some low level programming experience, but haven't worked much in c or c++. Now that I've said all that, I'm not afraid to read everything I can find to try to better enjoy my PS2 experience.

The noob dilemma:
I've been enjoying the ps2dev forums and have learned a lot by reading through the posts and searching for various topics. It really looks like interest in PS2 developement has dropped off and you guys are remaining gurus. I feel I'm on the verge of purchasing a new MS console (names withheld to protect the guilty) but fear that will displace my PS2 to the back of the closet, never to be heard from again. So, how many of you guys still enjoy working on the PS2 platform? It seems to be a great system to learn the basics of pipeline rendering, and everybody has done such a great job with the various libraries. Is it still alive at all, or time to give it up? Has anybody considered any way to refresh the interest in PS2 developement? I know that means a lot of noobs with a lot of noobs questions........

In Conclusion:
If you know of any other 3D graphics examples for ps2sdk or gsKit, or other/better library, please let me know where to look. Thanks!

Tracer
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

Instead of repeating myself, you can read my introduction to PS2DEV and my take on why there are not really any 3D libraries for the PS2.

http://lukasz.dk/playstation-2-programm ... to-ps2dev/

I'd say the best source code references for PS2 3D programming are the Aura For Laura demo ( www.soopadoopa.dk ), Funslower demo ( http://ps2dev.org/ps2/Code/Demonstratio ... WER_SOURCE , also by Soopa Doopa) and the BPDemoHarness (available in Subversion, checkout code with: "svn co svn://svn.ps2dev.org/ps2ware/trunk/BPDemoHarness")
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

These are a few open sources experiments I've done on ps2.

The last one is pure 3D fun... Lets you rotate a .3ds textured mesh.
(based on modified saotome's vulib and standard neovangelist's gsKit)

http://home.tele2.fr/~fr-51785/ps2_pktdrv.zip (GPL packet driver source for PS2)
http://home.tele2.fr/~fr-51785/ps2_afl_pktdrv.zip (AFL packet driver source for PS2)
http://home.tele2.fr/~fr-51785/ps2_pong.zip (Hardware accelerated Pong)
http://home.tele2.fr/~fr-51785/ps2_qbert.zip (AntiAliased Q*Bert)
http://home.tele2.fr/~fr-51785/ps2_initial_fantasy.zip (250000 v/f 3D rendering loop)
Last edited by ps2devman on Thu Mar 27, 2008 4:40 pm, edited 1 time in total.
Wraggster
Posts: 121
Joined: Fri Aug 26, 2005 7:40 am
Contact:

Post by Wraggster »

are the Pong and Qbert files actually playable games ?
Webmaster of http://www.dcemu.co.uk

DCEMU The Worlds Only Homebrew & Gaming Network of Sites.
TracerH
Posts: 5
Joined: Sun Feb 24, 2008 8:55 pm

Post by TracerH »

Thanks for the info and links! I'm really enjoying this.

Tracer
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

@Wraggster: Yep
Wraggster
Posts: 121
Joined: Fri Aug 26, 2005 7:40 am
Contact:

Post by Wraggster »

awesome ill get newsposting then :)
Webmaster of http://www.dcemu.co.uk

DCEMU The Worlds Only Homebrew & Gaming Network of Sites.
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

Thanks but be aware it's very old (I published these last year in this forum). Also Pong is Pong. Not so exciting. Actually its interest is in the indirect control of paddle by wiimote (wiimote -> pc -> ps2 through pings)
Initial Fantasy should become a RPG but for now is just a rendering loop.
I'm lacking free time and trying to progress on too many platform at the same time (360 is giving me hard time).
Post Reply