Snappy Space Trip - travel through 2.5 million stars in 3D

Hi everyone!

It’s a 3D planetarium that places about 2.5 million stars from the AT-HYG Database, along with photos of nebulae and galaxies taken by the Hubble Space Telescope and the James Webb Space Telescope, at their real positions in space.

You can get to any object in just 5 seconds​:smiling_face_with_sunglasses:

Feedback is welcome!

3 Likes

Very nice! I like the parallax of stars when doing interstellar travel. The nebulas also look really good, how did you make their volumetric representation?

I think the skybox is too bright for realism, but maybe it’s an artistic choice. Also right click for moving the camera is not super common, left click would be less surprising imo

You might also be suffering from floating point precision issues: stars flicker around SA*. Babylon has large world rendering features maybe they could help :slight_smile:

1 Like

Thanks for the reply! For the nebulae, I remove the stars from each photo and place it on a simple assumed shape: a curved wall for regions like the Orion Nebula, or an ellipsoid shell for nebulae like the Ring Nebula. Then I ray-march those layers.

Rotating the camera with the right mouse button is the standard convention across my website, but maybe it’s not that common in general? I’ve added support for left-button dragging too. Thanks for the advice!

1 Like

Interesting! I wonder if gaussian splats could be used also for nebulae rendering to avoid costly raymarching but your implementation seems fast enough.

I would say left click is more common but having both right and left is a good solution as well haha

1 Like

I love projects like this.
A few years ago, I developed an educational experience for a university based on exploring the Milky Way. It was quite an undertaking—we built an app in Unity, used a Leap Motion controller, three projectors, and additional stars fill projectors for the rest of the space.
Now, whenever I come across an experience like this, I always spend some time playing with it, as it brings back such fond memories.

1 Like

This is so cool, love it :slight_smile: