Hello !
I don’t understand how can I use away3d.materials.utils.MultipleMaterials with a cube.
The only solution it’s to create a custom Cube class with 6 planes ?
Use MultipleMaterials with a cubeSoftware: Away3D 4.x |
||
soso, Newbie
Posted: 19 July 2012 03:45 PM Total Posts: 6 Hello ! I don’t understand how can I use away3d.materials.utils.MultipleMaterials with a cube. The only solution it’s to create a custom Cube class with 6 planes ? |
||
Richard Olsson, Administrator
Posted: 19 July 2012 04:34 PM Total Posts: 1192 [ # 1 ] The MultipleMaterials class is not actually used anywhere in the engine, and cannot be used with a mesh and CubeGeometry to automatically map different materials to different sides of the cubes. To be honest I think it’s just legacy. If you want different materials on all sides of a cube you have to create six planes, correct. If you just want different textures, lay them out into a single texture as described in the documentation for the CubeGeometry.tile6 property, and set that property to true. Then use that texture in a texture material for the cube. |
||
|