System Creation Problem

Post requests, images, descriptions and reports about work in progress here.
Topic author
Mr Noob
Posts: 78
Joined: 13.08.2007
With us: 17 years 3 months

System Creation Problem

Post #1by Mr Noob » 10.06.2009, 21:02

Hi everyone.

For the first time (in a long while) I have actually started work on a new system for the star Ross 128. However I have encountered a problem in Celestia and I think that numerous things in my SSC code are wrong. When I run Celestia and go to Ross 128, I see the first planet that I have created, rings and other textures can be seen with excellent results. I also defined a moon of that planet and gave it textures and settings... but here the problems begins...

The moon is not drawn in Celestia though it is defined as a name in the system. Not only can I see any textures, its the whole sphere thats missing. To support my problem I have a copy of the code shown below. Can anyone help me out as to why this moon isn't being drawn?

I have used no system generation software. This has been created from the ground up using notepad.

Code: Select all

"Zar'Kar" "Ross 128"
{
   Texture "Zar'Kar.jpg"
   NightTexture "Zar'Kar Night.jpg"
        Color [ 255 255 255 ]
   Radius 22913.8075194
   Oblateness 0.091837152
        EllipticalOrbit {
      Period            2.19054
      SemiMajorAxis     0.01139
      Eccentricity      0.1928
      Inclination       3.0739
      MeanAnomaly       97.3881
   }
   Rings {
      Inner   41907.542813
      Outer   104882.753941
      Texture "Zar'Kar Rings.dds"
      Color   [ 255 255 255 ]
   }
   RotationPeriod 12.9085
   Obliquity 21.08
   Albedo 0
}

"Ok'am" "Ross 128/Zar'Kar"
{
   Texture "Ok'am.jpg"
   BumpMap "Ok'am Bump.jpg"
   BumpHeight 5
   Color [ 255 255 255 ]
   Radius 909.1758
   EllipticalOrbit {
      Period            10.9895
      SemiMajorAxis     209117.5043
      Eccentricity      0
      Inclination       1.9038
      MeanAnomaly       223.5797
   }
   RotationPeriod 92.7715
   Obliquity -9.083514
   Albedo 0.1594
}




Thanks for any help

M.Noob
Acer Aspire One D250 Netbook
CPU: Intel Atom N270 1.66 GHz
Chipset: Intel 945GSE Express
Memory: 1GB DDR 2 533 SDRAM
HDD: 160GB 5400rpm
Graphics: Intergrated Intel 945GMA
OS: Genuine Windows XP
Running: Celestia 1.6.0 (Windows)

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

Re: System Creation Problem

Post #2by selden » 10.06.2009, 22:25

1. You should avoid punctuation marks in filenames: get rid of the apostrophes and spaces.
They cause problems for command-line utilities. Use underscores instead.

2. Color values go from 0 to 1, not 0 to 255.

After making those changes, it works fine for me.
Selden

Topic author
Mr Noob
Posts: 78
Joined: 13.08.2007
With us: 17 years 3 months

Re: System Creation Problem

Post #3by Mr Noob » 12.06.2009, 16:27

Selden,

I changed the colour values to their correct properties and also removed the apostrophes and spaces. I replaced the spaces with underscores however the moon still isn't being drawn in Celestia for me. The one thing I didn't mention in my previous post was the version of Celestia I am running which is 1.5.0. I will try and get the latest version for my laptop and see if that makes a difference.

Cheers

M.Noob
Acer Aspire One D250 Netbook
CPU: Intel Atom N270 1.66 GHz
Chipset: Intel 945GSE Express
Memory: 1GB DDR 2 533 SDRAM
HDD: 160GB 5400rpm
Graphics: Intergrated Intel 945GMA
OS: Genuine Windows XP
Running: Celestia 1.6.0 (Windows)

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: System Creation Problem

Post #4by Hungry4info » 12.06.2009, 18:41

Just checking, did you replace

Code: Select all

"Ok'am" "Ross 128/Zar'Kar"

with

Code: Select all

"Ok_am" "Ross 128/Zar_Kar"


It may be that you didn't change the name of the orbited body when you declared the moon.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Topic author
Mr Noob
Posts: 78
Joined: 13.08.2007
With us: 17 years 3 months

Re: System Creation Problem

Post #5by Mr Noob » 12.06.2009, 19:56

Hungry4Info,

Yes i did do that and it didn't let me see the Moon. I have just got 1.5.1 Celestia, so I am going to mess around with it in that.
Acer Aspire One D250 Netbook
CPU: Intel Atom N270 1.66 GHz
Chipset: Intel 945GSE Express
Memory: 1GB DDR 2 533 SDRAM
HDD: 160GB 5400rpm
Graphics: Intergrated Intel 945GMA
OS: Genuine Windows XP
Running: Celestia 1.6.0 (Windows)


Return to “Add-on development”