Are the 'Don't Clear' and 'Depth Only' camera flags inverted?

Hello,

I’ve noticed something here, that might be a small bug…

When playing with cameras and layers, I’ve noticed that the clear flags ‘Don’t Clear’ and ‘Depth Only’ seem to be inverted, that is, one is doing what the other should do…

Try it in scene… create 2 cameras, and 2 intersecting objects, place the objects each in separate layers, and have the cameras each render one of those layers…

The camera rendering the object farthest away should have the lowest depth, and clear to skybox (or solid color).

Now, play with the clear flags on the second camera… if you set it to Depth Only, you’ll see that no intersection is visible between the 2 objects, now, if you set it to Don’t Clear, the intersection will show.

That’s exactly the opposite of what should be expected of those flags.

Anyone else ever notice this?

Cheers

I’ve never had a problem with them, but I’ll try what you’re talking about if you attach a package instead of forcing me to try to understand your non-illustrated directions. :wink:

Don’t Clear doesn’t clear anything, and Depth Only only clears the depth buffer, as described in the docs, so I would say they aren’t inverted.

–Eric

Does it still the same in ver 5.x (5.4.0b23)? Can’t make “don’t clear” flag happen.

It works the same as always.

–Eric

Ok. I was just confuse that it has to be in play mode.