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 

Drawing interleaved arrays with multiple textures

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



Joined: 04 Mar 2006
Posts: 11

PostPosted: Thu Jun 29, 2006 5:46 am    Post subject: Drawing interleaved arrays with multiple textures Reply with quote

I'm using interleaved arrays to draw a box (made of triangles) using sceGumDrawArray. It all works great.

I'm setting the texture with sceGuTexImage but I need to texture each side of the box using different texture images though, how can I do this?
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Jun 29, 2006 5:54 am    Post subject: Reply with quote

Order your triangles by texture, then set a texture and draw all triangles of that side, set the next texture and draw the next side, etc.

For this you might need to change your mesh structure though.
Back to top
View user's profile Send private message Visit poster's website
masterlodi



Joined: 04 Mar 2006
Posts: 11

PostPosted: Thu Jun 29, 2006 8:57 am    Post subject: Reply with quote

Right, that's simple enough.

Are there any samples of loading textures for use with sceGuTexImage? I don't want to export my textures to .raw or C strings?!
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 -> PSP 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