3D z-index

Hi,

I wonder if it is possible to draw a 3d object on the foreground even if it is actually behind an other object.
I tried to mess around with layers, but no results…
Any ideas ?

Thanks

2nd camera which clears only the depth buffer and then draws the objects on top using layers

Another option could be to draw such objects with a shader that uses ZTest (eg. with GEqual), but it pretty much depends on your requirements. There are multiple options to achieve that effect, but one might work better than another depending on your setup.

Thanks for your answers. I’ll try both.