MultipleMaterials on Cube

Software: Away3D 4.x

yyovchev, Newbie
Posted: 26 July 2012 06:53 PM   Total Posts: 29

How can I assign MultipleMaterials to cube?

   

Richard Olsson, Administrator
Posted: 27 July 2012 08:57 AM   Total Posts: 1192   [ # 1 ]

If you want different materials, you will have to create your own cube from six plane meshes.

If you want the same material (shading et c) but using different textures, draw all textures onto a single bitmap texture according to the layout described in the documentation for the tile6 property on CubeGeometry, and set that property to true.

   

Mr Margaret Scratcher, Sr. Member
Posted: 27 July 2012 01:53 PM   Total Posts: 344   [ # 2 ]

I’m about to make a class that makes a cube from 6 supplied materials, once I’m done I’ll post it up here.

   

Mr Margaret Scratcher, Sr. Member
Posted: 21 August 2012 02:34 PM   Total Posts: 344   [ # 3 ]

Here you go:

http://fromscratchmedia.co.uk/2012/08/multi-material-cube-class-for-away3d/

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X