| View previous topic :: View next topic |
| Author |
Message |
masterlodi
Joined: 04 Mar 2006 Posts: 11
|
Posted: Thu Jun 29, 2006 5:46 am Post subject: Drawing interleaved arrays with multiple textures |
|
|
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 |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Thu Jun 29, 2006 5:54 am Post subject: |
|
|
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 |
|
 |
masterlodi
Joined: 04 Mar 2006 Posts: 11
|
Posted: Thu Jun 29, 2006 8:57 am Post subject: |
|
|
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 |
|
 |
|