Hi,
I've run into a slight problem on the level map I'm working on.
I need to put a flare sprite inside a semi-transparent mesh cube in order to make a light fitting.
If the flare sprite is NOT contained within the mesh cube, then I can use the following code to manage visibility:
But, if the sprite's centre is inside a mesh - even a semi- transparent one (say alpha=0.5) then the EntityVisible() command treats the sprite as though it is hidden from the camera.
Is there a way around this?
I need to turn off the flares that are fully hidden to the camera, whilst allowing objects behind semi-transparent surfaces to be visible.
Regards,
Rogue Vector
I've run into a slight problem on the level map I'm working on.
I need to put a flare sprite inside a semi-transparent mesh cube in order to make a light fitting.
If the flare sprite is NOT contained within the mesh cube, then I can use the following code to manage visibility:
If EntityVisible(player\camera,flare\sprite) flare\alpha = 1.0 Else flare\alpha = 0.0 End If
But, if the sprite's centre is inside a mesh - even a semi- transparent one (say alpha=0.5) then the EntityVisible() command treats the sprite as though it is hidden from the camera.
Is there a way around this?
I need to turn off the flares that are fully hidden to the camera, whilst allowing objects behind semi-transparent surfaces to be visible.
Regards,
Rogue Vector