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 

What the heck is GS_PSM_CT24 ?

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



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Jun 04, 2007 8:44 am    Post subject: What the heck is GS_PSM_CT24 ? Reply with quote

Hi,

As a newbie to ps2 homebrewing after (finnaly) managed to build the toolchain (I had to install linux for this, cygwin s*cks) I started to explore the gsKit example : textures.c.

First attempt : Since I'm still using a usb pen to load the elfs I build with ulauchelf the textures demo didn't worked since the source was refering to host:. Changed to mass: and the hot girl is now on TV ;)

So, exploring the source :

the defined GS_MODE_NTSC is not mistery for me. I also changed to GS_MODE_PAL since I'm in Europe. No big deal.

But how about the meaning of GS_PSM_CT24 and GS_PSMZ_16S ? What the heck is this ? and the call to dmaKit_init : D_CTRL_RELE_OFF, D_CTRL_MFD_OFF ?

Where is it documented ? I want to know what i'm doing when I call dmaKit_init. No documentation on gsKit (although I can read on the README of gsKit :

    Project Layout
    -----------------------------------------------------------------------

    A source or binary release of gsKit will include the following
    directories:

    gsKit/lib - gsKit compiled libraries.
    gsKit/doc - gsKit documentation.
    gsKit/examples - Example projects demonstrating use of gsKit.
    gsKit/ee - ee root directory.
    gsKit/ee/gs - gsKit source root.
    gsKit/ee/gs/include - gsKit include files.
    gsKit/ee/gs/src - gsKit source files.
    gsKit/ee/dma - dmaKit source root.
    gsKit/ee/dma/include - dmaKit include files.
    gsKit/ee/dms/src - dmaKit source files.
    gsKit/vu1 - VU1 assembly files


gsKit documentation? yes, sure ...

OK maybe i'm a bit demanding, those guys made a great lib and no time for documentation, I can understand that... So, being more realistic what I ask is what are those defines (D_CTRL_RELE_OFF, etc) ? Will I need ever to change these ?
Back to top
View user's profile Send private message Visit poster's website
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Mon Jun 04, 2007 7:07 pm    Post subject: Reply with quote

What you need to get ahold of is, the PS2 manuals which come with the PS2 Linux kit, which can be bought from http://linuxplay.com/ .

These include:
Graphics Synthesizer Manual (GS)
Emotion Engine Manual (EE)
Vector Units Manual (VU)

The GS_PSM_* define is Graphics Synthesizer Pixel Storage Mode and PSMZ is Pixel Storage Mode Zbuffer. These values are all documented in the GS manual. gsKit is a very lowlevel graphics library which interacts with the hardware directly, so most of the parameters will make sense once you read the GS manual.

You can get the PS2Linux kit with only the DVD and monitor cable, and getting the DVD just for the manuals is definately worth it, and a must if you really hooked on PS2Dev.
_________________
Lukasz.dk


Last edited by Lukasz on Tue Jun 05, 2007 1:18 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Jun 04, 2007 10:43 pm    Post subject: Reply with quote

OK Lukasz, thx for the reply.
Back to top
View user's profile Send private message Visit poster's website
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