CubeGeometry with different textatures

Software: Away3D 4.x

BMo, Newbie
Posted: 06 April 2014 02:51 PM   Total Posts: 2

Hi,

I’m new with away 3d and have some problems setting up the textature for a 3:1:1 cube. I found some examlpes how to use scaleUV on a 1:1:1 cube. But I can not figure out how to correctly set a textrue to a 2:1:1 or 3:1:1 cube.

I created a 512x512 jpg that includes all sides, the 1:1 and teh 3:1 side.
How can I map on the texture on the right side?

Best regards Benedikt

   

Mr Margaret Scratcher, Sr. Member
Posted: 07 April 2014 05:44 PM   Total Posts: 344   [ # 1 ]

I made a class which puts together a cube from separate faces, which makes it easy to have a different material on each face:

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

However, this will count as 6 separate objects, so might not be suitable if you’re planning on having lots of these in the scene…

I’ve also attached a template which should help you figure out where your faces are on a cube..

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X