Make a scene layer on top of another scene?

I’m sure this sounds very newb, because it is. :wink:

I have a spaceship. It won’t move much. The space around it will.

Is there a preferred method of layering scenes so that they don’t intermix? Reason: I don’t want my warp effect entering the bridge, nor do I want the illusion of a huge planet to be crushed when it enters the window (it could happen!). This does of course cause other issues, like lighting from one scene layer not interacting with the other, maybe.

Have you run into this type of challenge? I look forward to your awesome feedback.

Thanks in advance!

EDIT: Maybe I should mask and not layer?

Progress on general lighting… Should I just focus on making sure none of the effects collide with the ship, moving around the ship? Is layering of scenes and/or some type of masking not really a thing?

Thanks again for taking a look. :slight_smile:

Multiple cameras for this works well. One thing you can do if your “space” is largely decoration, is make it fairly small, it will keep rendering distances reasonable, and not require huge geometry.

Cool, so with multiple cameras, it looks like there is a depth property, with the highest depth camera rendering first. It looks like I might be able to have one camera render one “layer” (maybe the space scene first), with the other camera rendering another layer second, the bridge seems like a good start. Am I on the right track? I’ll experiment with that for sure.

Space will be mostly decoration, with lots of motion and scaling going on at the same time (e.g. flying from planet to planet). I had luck with this in Three.js/HTML/WebGL. However, Unity has me saying much faster, “WHOA THIS IS COOL I MUST LEARN ALL THE THINGS!”. :wink:

zombiegorilla, thanks for your feedback that has inspired further positive progress. :smile:

Success!!! We’re going to collide with the planet made entirely out of orange gelatin! AghghGHH!

My semi-transparent planet would be inside the window right now if I wasn’t using two cameras. Instead, now I can bring it in even closer to the background camera for increased illusion of scale. :smile:

I did have to set the background camera to a lower depth number than the foreground camera depth. I saw it mentioned oppositely elsewhere (but I think they were dealing in negative numbers).

Now to make a planet look like a planet…

Thanks again!

Looking good! I like the orange the planet. Your scaling really makes a nice atmosphere.

Good video on this if anyone else stumbles upon this thread: