How to change the transparency for objectcontainer3d quickly? 

Software: Away3D 4.x

glasses, Newbie
Posted: 21 March 2013 06:32 AM   Total Posts: 28

Hi, guys.

Now I want to fade in and fade out different parts of a model by different keyboard event handlers. There is thousands of meshes in this model and each of them has a unique colormaterial, thus I put them into different group, namely different objectcontainer3d, and then want to tween the transparency of the container.

Here is the problem. I do understand there is no alpha property for objectcontainer3d in away3d, but meanwhile I don’t want to change the material alpha one by one. Becuase it’s very time consuming and not elegant…

So any good idea?
P.S. I just want to make the fade in and fade out effect, so any other solutions are welcomed!

   

glasses, Newbie
Posted: 22 March 2013 09:41 AM   Total Posts: 28   [ # 1 ]

Reminder…
Anyone has good idea???
Thanks in advanced!

   

aeki, Member
Posted: 22 March 2013 10:40 AM   Total Posts: 73   [ # 2 ]

this alpha setter for ObjectContainer3D would anyway be a for loop setting the alpha property to all of its children, no?

   

glasses, Newbie
Posted: 25 March 2013 02:08 AM   Total Posts: 28   [ # 3 ]

I think so too. But if it would be implemented in that way, I am quite not sure about its efficiency, which is also one of the reasons why I asked help here.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X