planet code problem

The place to discuss creating, porting and modifying Celestia's source code.
Guest

planet code problem

Post #1by Guest » 25.02.2003, 09:26

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

billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

planet code problem

Post #2by billybob884 » 25.02.2003, 12:29

Code: Select all

      Atmosphere {

should be:

Code: Select all

      Atmosphere
{

Code: Select all

      EllipticalOrbit {   

should be:

Code: Select all

      EllipticalOrbit
{
Mike M.

TacoTopia!

Calculus
Posts: 216
Joined: 19.10.2002
With us: 22 years 1 month
Location: NY

Post #3by Calculus » 25.02.2003, 14:35

you misspelled Rotation 2 times
---Paul
My Gallery of Celestial Phenomena:
http://www.celestiaproject.net/gallery/view_al ... e=Calculus

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #4by selden » 25.02.2003, 16:01

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.
Selden

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #5by granthutchison » 25.02.2003, 17:06

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


Return to “Development”