4.0 plane with material?

Software: Away3D 4.x

Manuel L., Member
Posted: 11 April 2012 06:36 AM   Total Posts: 99

Hey, just one simple question. what happened to the plane primitive? Now i can find just planegeometry, but i am not able to assign a material for this.
how can i create a plane with a material in away4.0?

   

Avatar
Fabrice Closier, Administrator
Posted: 11 April 2012 08:11 AM   Total Posts: 1265   [ # 1 ]

var myPlane:Mesh = new Mesh(new PlaneGeometry(params), new ColorMaterial(color) );

If you make more planes, simply reuse the instance PlaneGeometry.
Same applies to all primitives.

   

Manuel L., Member
Posted: 11 April 2012 08:31 AM   Total Posts: 99   [ # 2 ]

ah okay, good to know smile
thank you very much!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X