Page 1 of 1

Oblate planets not rendered properly over poles

Posted: 14.07.2006, 13:48
by bdm
When a planet has an appreciable oblateness, hovering over a pole of the planet and zooming in will eventually cause the planet to render with segments missing.

Code: Select all

"Test 1" "Toliman A"
{
    Radius 4000

    EllipticalOrbit
    {
        Period            1
        SemiMajorAxis     1
        Eccentricity      0
        Inclination       0
        AscendingNode     0
        LongOfPericenter  0
        MeanLongitude     0
    }

    Obliquity            0
    EquatorAscendingNode 0
    RotationOffset       0
    RotationPeriod       5
    Oblateness           0.2

    Albedo               0.25
}

"Test 2" "Toliman A"
{
    Radius 4000

    EllipticalOrbit
    {
        Period            2.828
        SemiMajorAxis     2
        Eccentricity      0
        Inclination       0
        AscendingNode     0
        LongOfPericenter  0
        MeanLongitude     0
    }

    Obliquity            0
    EquatorAscendingNode 0
    RotationOffset       0
    RotationPeriod       25
    Oblateness           0.0

    Albedo               0.25
}

Hovering over the pole of "Test 1" (oblate planet) and approaching the surface eventually results in missing parts of the planet. It appears the missing segments begin when the distance to the centre is less than the radius of the planet.
Image