Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: ErV on October 19, 2006, 03:43:58 PM

Title: Controlling Actor3D transparency.
Post 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?
Title: Re: Controlling Actor3D transparency.
Post by: metamorphium on October 19, 2006, 04:16:47 PM
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.
Title: Re: Controlling Actor3D transparency.
Post by: ErV on October 19, 2006, 09:23:29 PM
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.
Title: Re: Controlling Actor3D transparency.
Post by: Mnemonic on October 20, 2006, 08:30:39 AM
Wouldn't a semi-transparent texture with an alpha channel be enough for your cause?
Title: Re: Controlling Actor3D transparency.
Post by: ErV on October 20, 2006, 10:57:45 AM
Wouldn't a semi-transparent texture with an alpha channel be enough for your cause?
No, becuase transparency should be controlled by script.