Page 1 of 1

planet code problem

Posted: 25.02.2003, 09:26
by Guest

Code: Select all

"onrionnebview" "HD 37001"
{
   Texture "yanta.jpg"
   # Texture "venus.jpg"

   # SpecularTexture "yantaspec.jpg"
   Color [ 0.23 0.12 0.29 ]
   SpecularColor [ 0.1 0.54 0.21 ]
   Specular Power 21.0
   HazeColor [ 0.23 0.69 0.44 ]
   HazeDensity 0.3
   Radius 2894
   Oblateness 0.03
   
   Atmosphere {
      Height 13
      Lower [ 0.12 0.23 0.34 ]
      Upper [ 0.45 0.56 0.67 ]
      CloudHight 10
      CloudSpeed 123
      CloudMap "jupiter-clouds.png"
   }

   EllipticalOrbit {   
      Period            23.341248749
      SemiMajorAxis     29.79
      Eccentricity      3.4167
      Inclination       3.9997
      AscendingNode     24.79
      LongOfPericenter  102.947
           MeanLongitude     34.442
}

   RotaionPeriod   -25.992372
   RotaionOffset   150
   Obliquity       21.3
   Albedo          0.302

}


what is wrong with this

planet code problem

Posted: 25.02.2003, 12:29
by billybob884

Code: Select all

      Atmosphere {

should be:

Code: Select all

      Atmosphere
{

Code: Select all

      EllipticalOrbit {   

should be:

Code: Select all

      EllipticalOrbit
{

Posted: 25.02.2003, 14:35
by Calculus
you misspelled Rotation 2 times

Posted: 25.02.2003, 16:01
by selden
Mike,

(Un)fortunately, the corrections you made are just superficial. Celestia doesn't require any line breaks in any of its textual control files. They're just used to improve readability for us poor humans.

Posted: 25.02.2003, 17:06
by granthutchison
In addition to Calculus' comment, there are some more typos:

Code: Select all

   Specular Power 21.0


should read

Code: Select all

  SpecularPower 21.0


and

Code: Select all

       CloudHight 10


should read

Code: Select all

      CloudHeight 10


Grant