Page 1 of 1

Create a zero orbit planet

Posted: 09.08.2005, 00:53
by buggs_moran
I want to create a zero orbit planet with a large atmosphere to add haze around a 3ds object I built. I searched the forums for a while till I was sufficiently frustrated.

Code: Select all

"Fake" "hol1"
{
   HazeColor [ .5 .3 .41 ]
   HazeDensity 0.45
   Radius 50
   Oblateness 0.69

   Atmosphere {
      Height 30000000
      Lower [ 0.8 0.6 0.6 ]
      Upper [ 0.7 0.3 0.3 ]
      Sky [ 0.83 0.75 0.65 ]
                   }

   EllipticalOrbit
{
Period 9E12
SemiMajorAxis 1E-12
}

RotationPeriod 0.10}



Can someone give me a clue...

Re: Create a zero orbit planet

Posted: 09.08.2005, 01:15
by rthorvald
buggs_moran wrote:I want to create a zero orbit planet with a large atmosphere to add haze around a 3ds object



Well, your fake can orbit the 3ds model, at a zero - or low semimajoraxis. Two things are important:

- the fake must have a significantly smaller radius than the model it orbits. Just define the atmosphere high enough that it sticks out.

- it needs to have a surface defined, or you wil get a gray ball. Use a 100% transparent 3ds model without any texture definition for this.

The fake does??nt have to orbit the model, as long as the two objects have an identical orbit, both can orbit something else. Remember then that Celestia draws the first entry in the SSC file on-screen first, and this will affect depht sorting.

If you take a look in the Ran or JTPS addons of mine, you will find working examples of this. Or Titan, where the blue haze layer is produced by the atmosphere of an invisible moon enveloping the real one.


-rthorvald

Posted: 10.08.2005, 03:22
by buggs_moran
Thanks Runar,

Works great but I am getting some funky moire patterns on my disk, guess I'll have to play with the settings for a bit.