Game Development Community

VisibilityLevel

by Will O-Reagan · in Torque X 2D · 05/24/2008 (12:53 pm) · 3 replies

Has this feature been moved?

About the author

I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.


#1
05/24/2008 (1:47 pm)
Do you mean it setting it doesn't affect opacity? There's a bug somewhere if I recall (can't find the post) but IsColorBlended needs to be true ... I forget if this needs to be added in you .txscene or if it was a suggested bugfix.
#2
05/24/2008 (2:19 pm)
Thanks scott. Setting it to true worked, all my objects have that property bug fix now...
#3
05/24/2008 (2:23 pm)
Heres a nice snippet for those of you who dont have the source code...


T2DStaticSprite _staticSprite = owner as T2DStaticSprite;
SimpleMaterial _renderMaterial = _staticSprite.Material as SimpleMaterial;
_renderMaterial.IsColorBlended = true;