Gif & Gs From EE
Gif & Gs From EE
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.
take a look at gslib or GsKit. GsKit is in the cvs here: http://cvs.ps2dev.org/gsKit/
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 !
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 !
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact:
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.
Kung VU
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
I don't know what could prevent me to use it !
http://ps2dev.org/kb.x?T=977
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org
I think Drakonite has some feedback about that code... :p
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
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 ?
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 ?
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org
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.
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.
Shoot Pixels Not People!
Makeshift Development
Makeshift Development