Texturing plane primitive

Software: Away3D 3.x

MustHave, Newbie
Posted: 24 August 2011 07:30 AM   Total Posts: 6

Hi!
I’m using Away3D 3.6.0 and I’m really need your help. I have a Plane primitive on the scene and I need to texture it both back and front sides with different images. What I have now is image which can be visually divided into two parts - left & right. Left part is for the backside of the Plane, right part is for the front side of the Plane. But when I use it as a material it doesn’t work this way. How can i make a Plane with different images for back and fron sides?

   

fsand, Newbie
Posted: 24 August 2011 08:13 AM   Total Posts: 5   [ # 1 ]

You can define different materials for all sides of a Cube, so use a Cube primitive instead (with the same width and height as your plane), and set the depth to something very small.
For those sides you are not interested in you can use for example a black ColorMaterial.

   

MustHave, Newbie
Posted: 24 August 2011 08:21 AM   Total Posts: 6   [ # 2 ]

o_0 and there is no way to define different materials for both sides of the Plane?

   

fsand, Newbie
Posted: 24 August 2011 08:43 AM   Total Posts: 5   [ # 3 ]

I have not tried it myself, but check this post: http://groups.google.com/group/away3d-dev/browse_thread/thread/988ecdc54b988e0f

   

MustHave, Newbie
Posted: 24 August 2011 08:57 AM   Total Posts: 6   [ # 4 ]

Thank you, it works! I’ve already done this using cubes but this solution is much better.

   

Richard Olsson, Administrator
Posted: 24 August 2011 08:57 AM   Total Posts: 1192   [ # 5 ]

You should be able to set the back material of the plane using the “back” property:

  myPlane.back = new ColorMaterial(0xffcc00);

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X