Jeff, Newbie Posted: 19 October 2011 10:15 AM Total Posts: 30
Hi all,
I’m looking for a solution to fade in / out objects without hidden faces visible. A classical “alpha” like on DisplayObjects.
I do not see a solution using materials methods and there is only a boolean
on ObjectContainer3D ( visible or not ).
Thanks
80prozent, Sr. Member Posted: 19 October 2011 11:46 AM Total Posts: 430
[ # 1 ]
hi
i use this code to set alpha of a material:
BitmapMaterial(yourObject.material).colorTransform = new ColorTransform(1, 1, 1, 0);
hope that helps
80
Jeff, Newbie Posted: 19 October 2011 12:02 PM Total Posts: 30
[ # 2 ]
Thank for your reply,
Using Colortransform on material with 0 / 1 alpha will work, but I want to tween that. For example using 0.5 you will see through the object, hidden faces will become visible.
I’m looking for an “alpha” ( or fake one that’s look real ) that do not display hidden faces.
Jeff, Newbie Posted: 19 October 2011 01:00 PM Total Posts: 30
[ # 3 ]
My bad 80prozent you are right, I had issue due to incorrect normals.
material.alpha / material.colortransform methods works fine but .... I suppose there will be issue with non convex models as hidden faces normals will face the camera.