[SOLVED] Render Object Over Another Objects

ScreenShot

As in the example image, I want to show an object continuously even when it is behind other objects in the scene. Any ideas on how I can do it on Playcanvas?

Hey, I guess you can achieve a similar effect using a stencil shader. The following topic may help achieve it:

3 Likes

Very nice shader example, thank you. But I just want to draw the back object after the front object.

https://forum.playcanvas.com/t/how-to-display-object-always-over-other-objects/5354/6

There is an example forum question here, but it was not helpful for me to show the object in the back. I’m looking for a much simpler solution. The object behind can be seen directly.

The look I want is like the direction arrows in the editor appear in front of the object even though it is in the center.

ScreenShot

Something like this?

https://developer.playcanvas.com/en/tutorials/camera-model-masking/

Editor:

Runtime:

If so, you can do this via Render Layers and Camera stacking

Some docs and material here:

https://developer.playcanvas.com/en/user-manual/graphics/layers/

2 Likes

Yeah! This is exactly what I was looking for. Thanks @yaustar