Archive 17/01/2023.

Debug occlusion?

nergal

I’ve set SetOcclude(true) and SetOccluder(true) on my objects since they can be both. Is there a way to see that it actually works? Somehow debug the occlusion?

Using the Debug HUD (SHOW_STATS) it just shows number of occluders visible. And SHOW_ALL doesn’t really give me the answer?

It would be nice to draw like a box or line where the occlusion occurs so that I can see that it happens. Right now I’m not really sure it happens since my triangle count seems pretty much the same.

Modanung

Using Camera::SetFillMode(FILL_WIREFRAME) you can see through your occluders. Would that be enough?

nergal

No, it doesn’t really help, or perhaps it did. Because I can still see my other objects behind the in-front-objects. So I guess my occluding is not working?

I guess it’s possible for an object (custom geometry) to be both occluder and occludee, right?

nergal

I doubt that my occlusion works. I’ve tested to use OcclusionBuffer() manually without success. I just don’t get it. What’s supposed to be needed to make things work. An occlusion example would be great! :slight_smile: