×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
8

Raytracing the April 8th, 2024 solar eclipse

submitted by chrimony to FlattardClassroom 1 weekApr 24, 2024 14:25:36 ago (+10/-2)     (files.catbox.moe)

https://files.catbox.moe/wnycnh.mp4

Inspired by: Simulating the solar system with 70 lines of Python code

and: Introduction to raytracing

I modified the code from the above article to raytrace the solar eclipse by simulating the motion of Earth/Moon/Sun system, and casting light from the Sun onto the Earth.

Inputs to program:
o Position, velocity, mass, and radius of E/M/S on April 8th, 14:00 UTC.
o Rotation rate of Earth.
o Axial tilt of Earth.
o Date and time of Spring Equinox.
o Force = mass x acceleration
o Force = Gravity-constant x mass1 x mass2 / radius^2
o "Blue Marble" map from https://ian.macky.net/pat/bmarbl/index.html

Start position and velocity data was from: https://ssd.jpl.nasa.gov/horizons/

After initialization, position and velocity data was updated every second for 9 hours using the above Newton force laws. Images were recorded once a minute. Final video was compiled at 60 frames per second, yielding one hour of real time per second of video.

You can compare the raytraced path with this version: https://nso.edu/for-public/eclipse-map-2024/


10 comments block

It is

That's all you need to know. You swollow the cgi so deeply, like kike dicks.

Werner von Braun said it was impossible to go the moon, you dickless moron. He was also a flat earther, so kys you kike worshipping double nigger. Same with Neil Armstrong.