[SOLVED] Selective rendering for entities inside opaque entities?

Hello, all.
I am trying to make an ice dude with someone trapped inside, I realized that first in block bench and then in playcanvas that the entity inside the opaque entity didn’t render.

Is there a way to render the entity that is inside the opaque one, with it still looking like it is inside?

I tried render layers but that didn’t work, maybe I implemented it wrong.

Here is my test project: PlayCanvas 3D HTML5 Game Engine

I forgot to put that the selective part is that it shouldn’t render through walls and other stuff.

This is how I would do it: https://playcanvas.com/project/1286645/overview/f-rendertest

Edited to remove the second camera. Only one camera is needed here

Can you please give steps on how to do that?

Have a look at my previous posts on the subject: Search results for 'Render layers @yaustar order:latest' - PlayCanvas Discussion

1 Like

You can achieve this by using render layers correctly. Check out yaustar’s project link for a working example: Render Test. If you need more help, try searching for ‘Render layers @yaustar’ in the forum for detailed steps.

I figured it out and haven’t gotten to change the name yet. Thanks for the advice though!