www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: darkvai on December 24, 2011, 09:03:51 pm

Title: How To Put Different Textures On Different Sides Of A Box?
Post by: darkvai on December 24, 2011, 09:03:51 pm
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  :)
Title: Re: How To Put Different Textures On Different Sides Of A Box?
Post by: EgonOlsen on December 25, 2011, 11:38:20 am
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 (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.
Title: Re: How To Put Different Textures On Different Sides Of A Box?
Post by: AGP on December 27, 2011, 07:40:01 pm
Which begs the question: does the Skybox class internally bake the textures?
Title: Re: How To Put Different Textures On Different Sides Of A Box?
Post by: EgonOlsen on December 27, 2011, 08:08:42 pm
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... ;)