Jump to content

Looking at object makes it go Invisible


Recommended Posts

as the title states: when i look at a light(model + spotlight), with the default FPS controller, it goes invisible. I have no idea why. Probarly something to do with the rendering, and the vision.

 

The model consist of 6 lights, 5 of which are Child objects of the sixth. Only when i look at the Child objects and can't see the parent object do the objects go invisable, I don't know if the parent goes invis but all the Child objects do, and i suspect the parent does aswell(they only go invis when i don't look at the parent so).

 

I'll post the switch, which turns the lights on and the lights themselves in a Prefab. I have now added the script, I'm not sure if it has any part in this.

 

Ok, just tested unchecking occlusion culling, and they stopped going invis. So the problem had to do with this. If I'm to have loths of these in my game it will cause lagg i suspect, so I'm still interested in finding a solution.

SwitchandLight.zip

Lights_Script.rar

  • Upvote 1
Link to comment
Share on other sites

Okay, this was caused by the light's occlusion volume not encompassing the child objects so occlusion culling was causing the children to get skipped. I will have an update out tomorrow on the beta branch that fixes this.

 

Thanks for reporting this! cool.png

  • Upvote 2

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...