Flying through the sky to reach outerspace

Started by
4 comments, last by swiftcoder 9 years, 2 months ago

Hi guys,

I'm making an engine that can allow the user/player to travel from the planet surface into outerspace and beyond. My question is how do we deal with skyboxes in this case?

Does anything change? Will the skybox look weird as you fly through it, and if so, does the sky need to made of particles or several different planes instead? I am kind of new at this and was wondering if there are available techniques/algorithms or if people just roll their own when dealing with this situation?

Advertisement

how do we deal with skyboxes in this case?

If the skybox is rendered by positioning it at the eye-point (camera position), it will always appear the same. Because the skybox is always centered on the camera position, you'll never fly through it.

EDIT: A skybox is essentially just a box around the viewpoint. When you move the viewpoint, the box "moves" with it, so it's always the same distance away from the camera.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Ah, right. I was thinking it was just placed in world coord and once u hit it there would be a black void. If I wanted to transition to outerspace then I would jsut need to slowly transition the colours of the box.

Thanks for the help.

Hi guys,

I'm making an engine that can allow the user/player to travel from the planet surface into outerspace and beyond. My question is how do we deal with skyboxes in this case?

Does anything change? Will the skybox look weird as you fly through it, and if so, does the sky need to made of particles or several different planes instead? I am kind of new at this and was wondering if there are available techniques/algorithms or if people just roll their own when dealing with this situation?

Shores of Hazeron does this by simulating the full solar system, and creating the skybox by rending what should actually be there.

atmospheric scattering

atmospheric scattering

That's pretty much what I use.

The skybox has the stars, galaxies and whatever other background of space baked into it. The planet atmosphere is rendered using a shader-based approximation of atmospheric scattering, which obscures the stars during the daytime, and allows progressively more of the space skybox to show through during the night or as you rise through the atmosphere.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement