images on a cube faces away3d 4

Software: Away3D 4.x

felfla, Newbie
Posted: 04 April 2012 02:52 PM   Total Posts: 2

hello,

i’m trying to use different images on a cube faces in away3d 4. i creat the cube with CubeGeometry and apply it on a Mesh, but i don’t know how to set
TextureMaterial on the 6 faces.

can you help me?
thanks

   

Avatar
kurono, Sr. Member
Posted: 04 April 2012 03:49 PM   Total Posts: 103   [ # 1 ]

Create model of a cube in your favourite 3d editor and set individual UVs for each of 6 faces. Then xport it for one of supported formats and load in Away3D.

   

ASWC, Member
Posted: 04 April 2012 06:08 PM   Total Posts: 76   [ # 2 ]

or create 6 planes, put them in a ObjectContainer3D in the correct position (rotationX,Y,Z) and voila you got yourself a cube with different faces.

   

felfla, Newbie
Posted: 04 April 2012 06:26 PM   Total Posts: 2   [ # 3 ]

thanks for suggestion.
i forgot to say that i want the images to be dynamically loaded. that is why i didn’t import a cube with UVs. the cube will rotate and show a set of images.

in away3d 3.x was easier to do this. i don’t understand why now is so complicated.

   

Avatar
kurono, Sr. Member
Posted: 04 April 2012 06:53 PM   Total Posts: 103   [ # 4 ]

That’s why the solution provided by ASWC is the best way in this case.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X