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 

TextureUpload and TextureSet (gsLib 0.51)

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



Joined: 25 Mar 2004
Posts: 1

PostPosted: Thu Mar 25, 2004 9:20 pm    Post subject: TextureUpload and TextureSet (gsLib 0.51) Reply with quote

I have a slight problem trying to get two textures uploaded into the texture memory. The TextureUpload function takes the base adress of the texture buffert and the offset in the texture buffert (among other). Now to the real problem, I haven't been able to figure out how this realy works. The TextureSet function only takes the base adress of the buffert not the offset, or is it just me wo have mixed together the concept of texture memory and texture buffer, where texture buffert is a "space" inside the memory area, and the base adress is nothing more than the absolute possition of this buffert inside the texture memory?
To simplify everything: how the heck do I use the TextureUpload and TextureSet functions to use more than one texture? All my knowledge so far comes only from the texture example program that comes with gslib (gsLib 0.51), and some reading of the gsLib pdf file.
Back to top
View user's profile Send private message
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Fri Mar 26, 2004 10:29 am    Post subject: Reply with quote

texture buffer offset is usually the offset within GS ram. Within GS ram you have your screen buffers (usually 2 if you're doing double buffering), following by a Z buffer (if you're using one) and then your texture buffer.

try feeding textureSet the same address/offset as you feed textureUpload. It's been a little while since I used gslib but I think this is correct.

If you have probs, feel free to give me a shout on #ps2dev and I'll help you as best I can.

Raizor
Back to top
View user's profile Send private message
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