Giddierone
Senior Member.
SItrec question: I saw some discussion of eclipses elsewhere, but didn't see the answer, so was wondering if, if you go to the right location, date and time of an eclipse does Sitrec simulate the moon's shadow?
Not sure about Sitrec, I don't think it's set up for shadow casting, @Mick West will probably have to answer that.SItrec question: I saw some discussion of eclipses elsewhere, but didn't see the answer, so was wondering if, if you go to the right location, date and time of an eclipse does Sitrec simulate the moon's shadow?
It does not do the Moon shadow. Might be fun to add.Not sure about Sitrec, I don't think it's set up for shadow casting, @Mick West will probably have to answer that.
Always fun to add stuff, but if you want to get the accuracy as per the screenshot above, you'll need npm astronomy-engine (trust me, stuff of experienceIt does not do the Moon shadow. Might be fun to add.
That's what I currently use. e.g.Always fun to add stuff, but if you want to get the accuracy as per the screenshot above, you'll need npm astronomy-engine (trust me, stuff of experience)
// get a vector in ESU coordinates to a celestial body from a EUS position (like a camera or object)
// - body = (e.g "Sun", "Venus", "Moon", etc)
// - date = date of observation (Date object)
export function getCelestialDirection(body, date, pos) {
let LLA;
// if a position is provided, use that to calculate the LLA of the observer
// realistically this won't make any significant difference for the Sun,
// the biggest difference will be for the Moon, then nearby planets
if (pos !== undefined) {
LLA = EUSToLLA(pos);
} else {
// default to the local origin, should be fine for the sun.
LLA = V3(Sit.lat, Sit.lon, 0)
}
let observer = new Astronomy.Observer(LLA.x, LLA.y, LLA.z);
const celestialInfo = Astronomy.Equator(body, date, observer, false, true);
const ra = (celestialInfo.ra) / 24 * 2 * Math.PI; // Right Ascension NOTE, in hours, so 0..24 -> 0..2π
const dec = radians(celestialInfo.dec); // Declination
return getCelestialDirectionFromRaDec(ra, dec, date);
}
Why is your penumbra so small?But Orb Hunter does simulate the Moon's shadow; in fact, it's one of my "go-to" tests.
hmm... looks like the outer cone doesn't diverge correctly/enough... bug reportedWhy is your penumbra so small?