Page 1 of 1
applying different textures to different sides of a cube [so
Posted: Mon Dec 31, 2007 2:58 am
by dearingj
Let's say I'm making a pair of dice, using the built in cube scene node. I have separate texture files for each side. Can I apply each texture separately, or do I have to combine them into one file first?
Posted: Mon Dec 31, 2007 8:33 am
by oldskoolPunk
I am also just a beginner, but I will try to help you with your question if I can.
I don't think the test cube scene node has the proper UV unwrapping to display a different texture on each side (I could be wrong). It might be best for you to create a cube in some kind of 3d graphics editor and apply the textures there. I can recommend Blender (it is free) but there are lots of others.
I have created a cube as an example to maybe help get you started.
Here is a UV layout of a cube.
I think it is best to always put all the textures for a mesh into a single image file. It will decrease load times and save space. You can use the UV layout as a template for painting or arranging your textures.
Here is an example image of the dice texture I "painted" using the above layout as a guide.
And just in case you are really bad off, here is a
link to download an .obj cube that you can apply the above texture to, or use your own.
Edit: Though..... Using separate, tiny images for each face of the cube would prevent all that wasted space in the UV layout.
Posted: Tue Jan 01, 2008 12:32 am
by dearingj
Thanks, that worked perfectly