Auuuuggggghhhhh!!!!

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
WildMoon
Posts: 217
Joined: 07.09.2005
With us: 19 years 2 months
Location: Everywhere, anywhere & nowhere, always and never.
Contact:

Post #21by WildMoon » 16.09.2005, 20:16

Ok, I will repeat my current problem.

The textures I drew (shown here thanks to FightSpit 8) ) will not show on the planet Copernicus and it's moon Helio. The text from the .ssc file of Copernicus and Helio is shown below.

Code: Select all

"Copernicus" "ALP Portal"
{
   Texture "Planet Class M #1.jpg"
   NightTexture "NightMap Planet Class M #1.jpg"
   
   # SpecularTexture "earth-spec.*"
   Color [ 0.85 0.85 1.0 ]
   SpecularColor [ 0.5 0.5 0.55 ]
   SpecularPower 25.0
   HazeColor [ 1 1 1 ]
   HazeDensity 0.3
   Radius 6378.140  # equatorial
   # Oblateness 0.0034

   Atmosphere {
      Height 60
      Lower [ 0.43 0.52 0.65 ]
      Upper [ 0.26 0.47 0.84 ]
      Sky [ 0.40 0.6 1.0 ]
      Sunset [ 1.0 0.6 0.2 ]
      Sunset [ 0.3 1.0 0.5 ]
      CloudHeight 7
      CloudSpeed 65
      CloudMap "earth-clouds.*"
   }

   EllipticalOrbit {   
      Period            1.0000
      SemiMajorAxis     0.7926
      Eccentricity      0.0167
      Inclination       0.0001
      AscendingNode   348.739
      LongOfPericenter 102.947
           MeanLongitude   100.464
   }

   RotationPeriod   24. # 23.93419
   Obliquity        -23.45
   RotationOffset   0.    # offset at default epoch J2000

   Albedo            0.30
}

"Helio" "ALP Portal/Copernicus"
{
   Texture "Planet Class M #2.jpg"
   NightTexture "NightMap Planet Class M #2.jpg"
   Radius   1737.53
   # Oblateness 0.002

   EllipticalOrbit {
      Period           0.50
      SemiMajorAxis    384400
      Eccentricity     0.054900
      Inclination      5.15
   }

   RotationPeriod      24.   
   Obliquity      23.45 # mean axis
   EquatorAscendingNode    0.0  # mean axis
   RotationOffset       38

   Albedo           0.25
}


Does anyone know why those four textures will not display on Copernicus and Helio?
Pi does not equal 3.14159265, it equals "yum!"

A world without Monty Python, gnomes, news crews that make a big deal out of a celebrity breathing, Star Trek, & Coca-Cola? That is impossible! IMPOSSIBLE!

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

Post #22by selden » 16.09.2005, 20:50

They work fine for me.

[edit] actually they don't, but I've gotta leave now. I'll try again shortly [/edit]

Did you put the images in the medres texture folder?

Exactly what are your symptoms?
Are the planet and moon visible as blank globes or do they not exist at all?
Selden

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #23by ajtribick » 16.09.2005, 21:04

The JPEG files you have supplied don't work. This appears to be because you are using some form of nonstandard compression which Celestia does not recognise - replacing your textures with one of the texture files supplied in the Celestia distribution (epimetheus.jpg from the medres folder, which is 512x256 pixels, like your image) works.

I don't have any tools which are capable of telling me what options you used to compress your JPEGs, so I can't tell you what it is you are doing wrong when saving as JPEG.

jestr
Posts: 612
Joined: 14.09.2003
With us: 21 years 2 months
Location: Bridgwater,UK

Post #24by jestr » 16.09.2005, 21:05

Hi Wildmoon,did you try taking the # sign out of the texture names,this might be causing problems,Jestr

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #25by ajtribick » 16.09.2005, 21:12

The spaces and the # sign do not appear to be causing problems (on WinXP), when I copied "epimetheus.jpg" into that folder and renamed it to "Planet Class M #1.jpg" it worked - the fault appears to be in the format of the JPEG file.

Though if you are planning to release this add-on at some stage, it is safest to use only alphanumeric characters (a-z, 0-9) and hyphens, no spaces, and only use the full stop (.) to separate name and extension. It is also best to stick to a single case (I prefer lowercase), as this avoids case-sensitivity problems on different systems.

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

Post #26by selden » 16.09.2005, 21:18

They're BMP files, not JPG files.
Celestia cannot use BMP files.

Changing the external name of a file does not change its internal structure.
You'll have to rename them properly (specify a BMP filetype) and create new copies that really are in JPG format.

One way to do this is to load them into the Windows Paint program and select "Save As..." in the File menu. Change the "Save As Type" field to JPEG.
Selden

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

Post #27by selden » 16.09.2005, 21:55

After translating the images into JPEG format, here's what I see:
Image

I couldn't resist adding some city lights to the night texture :)

Suggestion: make the night texture *much* darker before adding lights. This version looks much too bright to me.
Selden

Topic author
WildMoon
Posts: 217
Joined: 07.09.2005
With us: 19 years 2 months
Location: Everywhere, anywhere & nowhere, always and never.
Contact:

Post #28by WildMoon » 16.09.2005, 22:22

Wow...my sucky drawings look...awesome! Ok I'll try that. Thanks for all the suggestions everyone! Though I'll have to think if I'm going to make copernicus and helio primitive worlds or more advanced worlds. I also noticed that I accidentally made the deserts of Helio birghter on the night drawing than the day drawing. Oh well, makes it exotic and more diverse from the other textures where everything is darker. I'll just say the deserts are made of some special glow-in-the-dark mineral. 8)

selden by the way can you put the code for the star you put Copernicus in orbit of here (unless you just made a preexisting planet have that texture)? I like the red line in the background (what is that anyway?). 8)
Pi does not equal 3.14159265, it equals "yum!"



A world without Monty Python, gnomes, news crews that make a big deal out of a celebrity breathing, Star Trek, & Coca-Cola? That is impossible! IMPOSSIBLE!

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

Post #29by selden » 16.09.2005, 23:42

WildMoon,

Here's the quick STC (STar Catalog) I wrote to go with your SSC file.

Code: Select all

Star "ALP Portal" {
   RA 2
   Dec 2
   Distance 2
   SpectralType "G0"
   AppMag 4
}


However, I'm guessing you meant "ALP" to be an abbreviation for "Alpha." If so, it actually should be "ALF", the official IAU abbreviation. And, of course, there's no constellation named "Portal" :)

The red line is Copernicus' orbital path. To see it in Celestia, open the Render / View Options window and select planet orbits.
Selden


Return to “Development”