Gif & Gs From EE

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

Moderators: cheriff, Herben

Post Reply
tumnes
Posts: 23
Joined: Fri Sep 17, 2004 12:02 pm
Contact:

Gif & Gs From EE

Post 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.
apache37
Posts: 76
Joined: Fri Jun 04, 2004 3:13 pm

Post by apache37 »

take a look at gslib or GsKit. GsKit is in the cvs here: http://cvs.ps2dev.org/gsKit/
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post 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 !
- TiTAN Art Division -
http://www.titandemo.org
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post 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.
Kung VU
tumnes
Posts: 23
Joined: Fri Sep 17, 2004 12:02 pm
Contact:

Post by tumnes »

Awesome, thanks guys!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post 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
- TiTAN Art Division -
http://www.titandemo.org
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

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.
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post 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 ?
- TiTAN Art Division -
http://www.titandemo.org
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
Post Reply