About (FreeEntity and EntityAlpha)

Blitz3D Forums/Blitz3D Programming/About (FreeEntity and EntityAlpha)

vinnicius(Posted 2014) [#1]
I would Like to know if when I set the alpha (entity) to 0 is the same of Free Entity. I'm talking about triangle limits.


stayne(Posted 2014) [#2]
EntityAlpha sets an entity's transparency (ex: .5 is 50% visible) - so 0 would be invisible but regardless it still exists.

FreeEntity deletes an entity from memory.

I am not sure if triangles are rendered at EntityAlpha 0 but HideEntity definitely prevents an entity's tris from rendering.


vinnicius(Posted 2014) [#3]
So, I can prevent it using simple logic anyway. I can HideEntity save the data into the array and load again at the moment of the entity has to appear again.

EntityAlpha could work...... to prevent spending some hours working on it. Lol! :D

LOL :)




Thanks!


Matty(Posted 2014) [#4]
Entity with alpha zero does not render but can still be iinvolvd in collisions whereas a hidden entity does not contribute to collision calculations.