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 

3D graphics samples

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



Joined: 24 Feb 2008
Posts: 5

PostPosted: Wed Mar 26, 2008 6:19 am    Post subject: 3D graphics samples Reply with quote

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
Back to top
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Wed Mar 26, 2008 5:36 pm    Post subject: Reply with quote

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-programming/an-introduction-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/Demonstrations/FUNSLOWER_SOURCE , also by Soopa Doopa) and the BPDemoHarness (available in Subversion, checkout code with: "svn co svn://svn.ps2dev.org/ps2ware/trunk/BPDemoHarness")
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
ps2devman



Joined: 09 Oct 2006
Posts: 265

PostPosted: Wed Mar 26, 2008 5:36 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Wraggster



Joined: 26 Aug 2005
Posts: 121

PostPosted: Thu Mar 27, 2008 2:31 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
TracerH



Joined: 24 Feb 2008
Posts: 5

PostPosted: Thu Mar 27, 2008 11:03 am    Post subject: Reply with quote

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

Tracer
Back to top
View user's profile Send private message
ps2devman



Joined: 09 Oct 2006
Posts: 265

PostPosted: Thu Mar 27, 2008 4:37 pm    Post subject: Reply with quote

@Wraggster: Yep
Back to top
View user's profile Send private message
Wraggster



Joined: 26 Aug 2005
Posts: 121

PostPosted: Fri Mar 28, 2008 5:46 am    Post subject: Reply with quote

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

DCEMU The Worlds Only Homebrew & Gaming Network of Sites.
Back to top
View user's profile Send private message Visit poster's website
ps2devman



Joined: 09 Oct 2006
Posts: 265

PostPosted: Fri Mar 28, 2008 4:51 pm    Post subject: Reply with quote

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).
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 -> PS2 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