Hi,
I’m having problems with the occlusion culling in unity. It seems to cull out visible objects. I attached a screenshot from the editor with it on, off, and the settings.
A few things I’d like to note :
- The camera is inside the culled cells
- It is not close to the terrain (near clip plane isn’t causing anything to hide)
- The objects that disappear are further than the near clip plane.
- When I run my game, objects are very oftenly hidden. I tried changing the near clip plane size to something smaller, but had the exact same results.
Does anyone have any idea what can cause this and what might be the solution? Should I submit a bug?
try it in the game view, the editor view does not reflect reality in relation to culling as its view distance among other things are totally different to the game view.
what you posted screenshots there from is the editor view.
As I said, When I run my game, objects are very oftenly hidden. I can take my screenshots from there, but it will look the same, except that its in game mode…
Has anybody come up with a solution for this error? I’ve been experiencing the same results. I was using the following settings on my scene:
View cell size: 2
Near Clip Plane: 0.1
Far Clip Plane: 1000
Bake Quality: Production
Target Resolution: Extremely High
I have a city intersection with stop lights and signs and stuff. When I move the camera close, the pole for a traffic light disappears as well as part of the traffic light itself (even though both remain in within the camera’s field of view), but the rest of the traffic light as well as various signs and stuff remain drawn.
I then adjusted my near and far clip planes:
View cell size: 2
Near Clip Plane: 0.01
Far Clip Plane: 500
Bake Quality: Production
Target Resolution: Extremely High
And now as soon as I move the camera into the Occlusion boundary, all of the geometry in the occlusion boundary just disappears.
Finally I adjusted my settings to the following:
View cell size: 0.5
Near Clip Plane: 0.1
Far Clip Plane: 100
Bake Quality: Production
Target Resolution: High
And once again random objects that are still within the view frustum disappear.
I have tried so many different settings, but I can’t seem to get anything right here
Any ideas?