How To Put Different Textures On Different Sides Of A Box?

Started by darkvai, December 24, 2011, 09:03:51 PM

Previous topic - Next topic

darkvai

How Do I Put Different Textures On Different Sides Of A Box?
Sorry If this already exists, but i just started.
Also, its for android  (jPCT-AE).
Thanks,
Me  :)

EgonOlsen

Either use the PolygonManager, create the cube in a modeller that way or in code. You can use this as a starting point: http://www.jpct.net/wiki/index.php/Create_a_cube

Just keep in mind that its better in terms of performance to limit the number of texture/object to one per stage. If possible, bake all textures into one larger one. For a single cube, it doesn't matter though.

AGP

Which begs the question: does the Skybox class internally bake the textures?

EgonOlsen

No, it doesn't. As said: For a single cube, it doesn't matter. It only matter if you are going to render dozens of them...but you usually don't do this with sky boxes... ;)