two skybox

Hi all,

I am developing AR portal scene. the scene is a beach. I want to show sky when the user enter the portal instead of showing the camera feed.

Using stencil in the URP you can easily make portals :stuck_out_tongue:

Using multiple stencil values you can even have multiple portals in the same scene without overlapping graphics.

There are a handful of good guides on youtube

I already follow a tutorial and made the portal but all tutorial use indoor scene. my scene is a beach outdoor so when i show it the sky becomes the camera feeds. What I want is when I entered the scene I want to show a sky for example instead of camera feeds. I hope now my question is clear

Sorry I don’t quite understand what you want. Do you just want the physical sky to change into a digital sky?

no, when I start my unity application it shows the real world around me. When I enter the portal I go to the virtual world which is a beach. the beach is open door scene so instead of the sky the real world (my room for example) is shown.
I want to show a sky instead of the real world view.
is it clear now?

In the past I faked this by sticking a large sphere over my entire scene, and applying sky to the sphere

That way you can show/hide it whenever you’re in the portal our outside

1 Like

Hi newguy, yea I am thinking of this but it doesn’t work. because if the user looks righ or left or back he will see the real world. could you plz tell me the steps?

You can’t see outside of an inverted sphere. That’s how skyboxes work

i add a sphere and I added to it a meterial with skybox/panormaic. i added the stencil buffer. it works but it is 2d not 3d while I am looking to right or left it shows the real world