Snapshot rendered scene as skybox for another scene

My goal is to have 2 scenes, one with a boxing ring, and a second one with the whole environment around the boxing ring which might be very complex but static.

I want to render the environment outside the ring with webgpu and snapshot rendering to get extra performance.

I wanted to ask if it’s possible to somehow render this environment from the 2nd scene to something like a skybox or photodome (Babylon.js docs) that I can use in my 1st scene.

Would something like this even yield better results than just rendering the scene normally?

Have a look at this thread - Generate equirectangular 360 panorama from babylon.js scene

I doubt so.

If it is static, you do not even need snapshot just rendering it I guess.

You could use a ReflectionProbe to create a cube texture from it. The issue is more about reusing the probe in a second sceen.

I guess in this case you could rely on layerMask in the same scene to segment the background and foreground.

1 Like

Actually I noticed that the snapshot rendering property is bound to the engine not the scene, so I’d have to use smt like 2 stacked canvas with 2 engines to achieve something like this I think.

The ring would be highly interactive, just the complex background would be static.