Page 1 of 1
Gif & Gs From EE
Posted: Tue Sep 21, 2004 2:30 pm
by tumnes
I was wondering how you get access to gif registers from the EE. I know that they are mapped into the memory of the ps2. If i were to just change a value at the memory location of one of these registers is that the proper way to do it? Also I am unclear as to how data is transfered from the EE to the Gif. If anyone could clear it up I would appreciate it. Is there any open source code i could look at that involves this? Thanks in advance.
Posted: Tue Sep 21, 2004 3:11 pm
by apache37
take a look at gslib or GsKit. GsKit is in the cvs here:
http://cvs.ps2dev.org/gsKit/
Posted: Tue Sep 21, 2004 5:27 pm
by Shazz
Or look at Dreamtime's tutorials, you'll understand mostly all about GS registers you can access from the EE directly and DMA packets you need to send to the GIF
http://ps2dev.org/kb.x?T=714
And after you can have a lookt to the Questiosn & answers forum and look for gfxpipe, it explains how to improve communication performance between the DMA the GIF and the EE...
Have fun !
Posted: Tue Sep 21, 2004 7:33 pm
by blackdroid
Privileged GS registers can be read and/or written to from EE, the other registers ( general purpose registers ) are written to with the help of gif packets that you tell dmac to send, and most example code (dreamtime's tutorials, gskit, itolib, gslib, pbdemolib) shows how to send a gif packet via dma channel 2.
Posted: Tue Sep 21, 2004 11:21 pm
by tumnes
Awesome, thanks guys!
Posted: Wed Sep 22, 2004 1:45 am
by ooPo
Posted: Fri Sep 24, 2004 12:08 am
by Shazz
DEfinitively the last version of the gsLib, 0.51, seems to be THE solution, well described & documented, provide gfxPipe support, source code provided, examples...
I don't know what could prevent me to use it !
http://ps2dev.org/kb.x?T=977
Posted: Fri Sep 24, 2004 12:35 am
by pixel
I think Drakonite has some feedback about that code... :p
Posted: Fri Sep 24, 2004 2:41 am
by Shazz
Pixel, really ???
Hum interesting, please keep me awaaaaare (comme dirait JCVD) before I modifiy my current lib based on gfxPipe...
So maybe is it the good time to ask the question, which gfx libn seems the more interesting to use :
- based Dreamtime sources (from his tutorial)
- Vrzzzn's gfxPipe
- GsLib
- Libito
- GsKit (seems not mature yet)
- homemade lib :D (Raizor ? Pixel ? Napalm ?...)
- DreamGL (who wants to really use OpenGL ??? :D)
- other ?
Posted: Fri Sep 24, 2004 3:27 am
by Drakonite
The main thing with gslib is just the whole c vs c++ debate...
If converting from gfxpipe, gslib is a pretty good choice, a lot of stuff is a command for command replacement. Beware though, ignoring the problems I've had building gslib because of it being in c++, it also seems to have problem building with ps2sdk and the newest toolchain. Hopefully Hiryu will get that fixed soon.