Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: ErV on October 19, 2006, 03:43:58 PM
-
Hello.
How can I control actor(3D) transparency? (for example - disappearing ghot) I need to set transparency to a specific value, calculated in script. Is this functionality supported?
-
it would be hard to do this since you can't access texture sprite directly. But what you can do very easily is to create an overlay
without an actor which you set initially to full transparent (invisible) and then animate it over by gradually adding alpha value.
This will achieve this effect you need. Another way how to do this is not use 3d actor for this particular animation but a sprite.
Maybe you can try also changing actors' texture to animated sprite, but this is untested.
-
it would be hard to do this since you can't access texture sprite directly. But what you can do very easily is to create an overlay
without an actor which you set initially to full transparent (invisible) and then animate it over by gradually adding alpha value.
This will achieve this effect you need. Another way how to do this is not use 3d actor for this particular animation but a sprite.
Maybe you can try also changing actors' texture to animated sprite, but this is untested.
Thanks, but that's not what I need, since I was going to use a several transparent 3D actors at once, and those actors were required to overlap 3d geometry of other actors.
-
Wouldn't a semi-transparent texture with an alpha channel be enough for your cause?
-
Wouldn't a semi-transparent texture with an alpha channel be enough for your cause?
No, becuase transparency should be controlled by script.