My First Raytracer!!! THE THUMBNAIL WAS RENDERED IN TURBOWARP IN REALTIME (WOOHOO)!!! Controls - Fly Mode: WASDEQ to move Click and drag / arrow keys to look Features: Realtime raytraced Earth Three cubemap textures: day surface, night side with city lights, cloud layer (360² source, bilinear filtered and 3x upscaled to 1080² effective) Cloud parallax (clouds float above the surface, real 3D separation) Cloud shadows cast onto the surface Stylized atmospheric scattering (cinematic look, not physically accurate Rayleigh) Aurora at the poles Specular sun glint on oceans Lens flare with real geometric occlusion (disappears when the sun is blocked by the planet) Day/night terminator with smooth city light emergence Normal mapping for 3D terrain effect Mipmapping Controls - Orbit Mode: W/S to zoom Click and drag / arrow keys / EQ to orbit Must view in Turbowarp: https://turbowarp.org/1321162444/fullscreen?fps=60&hqpen THIS IS FULLY OPTIMISED (its still slow tho) ANY FURTHER OPTIMISATIONS ARE NEGLIGIBLE TO PERFORMANCE This the best and most popular project I've ever made so I am pretty happy to be honest. I have tried to fake Rayleigh (atmospheric) scattering as much as possible without actually doing it (since it would be way to expensive to compute). I think this project is done, if I am to add more planets or anything like that, I'll probably make a v2. Let me know if you got any suggestions.
Inspired by: The “Blue Marble” NASA photograph (Apollo 17, 1972) Video Copilot’s Orb plugin for After Effects @cc386283’s planet renderer: https://scratch.mit.edu/projects/1284999546/ Credits: Texture scanner by @griffpatch Lens flare costumes by @SpinningCube atan2 block by @raucket Framerate independence code by Music: “Eternity” by Stellardrone (YouTube) Everyone who loved and faved this project.