What the heck is GS_PSM_CT24 ?

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

Moderators: cheriff, Herben

Post Reply
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

What the heck is GS_PSM_CT24 ?

Post by cosmito »

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 ?
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

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.
Last edited by Lukasz on Tue Jun 05, 2007 1:18 am, edited 1 time in total.
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Post by cosmito »

OK Lukasz, thx for the reply.
Post Reply