
Jon Valdés
Post
-
i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOON -
i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOONWord of caution about calculating these things on the GPU: implementations of trigonometric functions on the GPU are less accurate than you'd hope, and if you calculate a bunch of sin() and cos() for your view direction per pixel, they turn out not to be accurate enough for stable movement across a 60° fov on a 4K screen. Particularly Intel, which seems to barely pass the D3D precision requirements there...
-
i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOON@aeva perhaps the easiest way would be to look at how other programs do it. I spent a bunch of time reading code for Stellarium, for example. Perhaps that, or a website like this could help you?
https://eyes.nasa.gov/apps/orrery/#/moon?time=2025-09-10T04:57:12.041+00:00 -
i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOON@aeva what I found is most methods for calculating these things are approximations that break down if you deviate from the year 2000 by more than 5 millenia or something. It just depends on what you consider a "useful" approximation
-
i nerd sniped myself tonight and i imagine the NSA operative who is assigned to me is very confused by the increasingly erratic and frustrated google searches for HOW DO I CALCULATE THE MOON WHERE IS THE MOON@aeva oh boy. I went down the rabbit hole of calculating star positions a few years ago, and the whole thing is... convoluted. Step one was calculating the Earth Rotation Angle, and that was... urgg