@Thorsten, I have a working version of the spherical tiles loading in earthview.nas. I am trying to crash it now, and that seems to work fine to my surprise. At some point, I'll be brave enough to share it, but for the time being I would appreciate of bit of help to understand these:
- Code: Select all
var R1 = 5800000.0;
var R2 = 58000.0;
var altitude1 = getprop("/position/altitude-ft");
var altitude2 = R2/R1 * altitude1;
var model_alt = altitude1 - altitude2 - R2 * m_to_ft;
I have added some new method in geo.nas, and from the very beginning, as one of the inputs, I need the altitude of the Shuttle above a spherical Earth and I don't know what to take here? I can see 3 spheres in the code, in addition to geo.ERAD:
R1=5800km
R2=58km
and the one in earth.xml (rendered?) which has a radius of 58030km!
Would you mind to explain, as far as you can, the magic tricks here?
Thanks!!
Cheers,
chris.