Quick question for Fabrice-

Software: Away3D 4.x

alpoman, Jr. Member
Posted: 25 April 2016 07:40 PM   Total Posts: 40

Hello, this is probably easy but I’m having
trouble.

If I merge a bunch of cubes with the same material using a 3dcontainer,
how can I then apply a differnent material to ‘stretch’ over the merged result without it tiling?

var merge:Merge = new Merge(true,true,false);
merge.applyToContainer(a,a3dcontainer);


thanks in advance!!!

andy

   

Avatar
Fabrice Closier, Administrator
Posted: 28 April 2016 10:40 AM   Total Posts: 1265   [ # 1 ]

Use the tools.utis.projector class. pick of of the projection constants.
Projector.project(Projector.FRONT, myMergedMesh);

   

alpoman, Jr. Member
Posted: 28 April 2016 01:39 PM   Total Posts: 40   [ # 2 ]

Wow!  that is incredibly useful and easy!!  Huge thanks Fabrice, great class!!

andy

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X