New class for Daytime

Tips for creating and manipulating planet textures for Celestia.
Topic author
Corvette
Posts: 1
Joined: 01.04.2005
With us: 19 years 7 months

New class for Daytime

Post #1by Corvette » 01.04.2005, 19:55

I'm trying to make an alternative surface for all my maps so that it always looks like day time. However, I want to make a new class for this. For instance, with one map I put

AltSurface"Ocean floor" "Sol/earth"
{
Class "day"
Texture "earth-ocfl.*"
NightTexture "earth-ocfl.*"
}


However, it doesn't want to make a new class. The only way I can get it to work is to change the name of, "Ocean floor" to something else (ex: "DOcean floor"). How do I make a new class for daytime only?

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

Post #2by selden » 02.04.2005, 12:50

Celestia's Class values are hardwired. You can't define new ones.

The recognized values are
"planet"
"moon"
"comet"
"asteroid"
"spacecraft"
"invisible"
else set to "unknown" flag value:

* if ssystem is a "body" and radius > .1 then moon else spacecraft
* else (if sys not body) if radius < 1000. then asteroid else planet
Selden

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Post #3by cpotting » 02.04.2005, 14:26

Would it not be easier to just set the ambient light level to 1?
Clive Pottinger
Victoria, BC Canada

Corvete
Posts: 2
Joined: 03.04.2005
With us: 19 years 7 months

Post #4by Corvete » 03.04.2005, 16:05

cpotting wrote:Would it not be easier to just set the ambient light level to 1?


How do I do that? I have the Windows version of Celestia and under Render and Ambient Light the only three options are None, Low, and Medium.
Thanks (btw, it won't let me log into corvette. When I typed in my E - Mail address it says the address doesn't match).

Corvete
Posts: 2
Joined: 03.04.2005
With us: 19 years 7 months

Post #5by Corvete » 03.04.2005, 16:09

N/m, I just figured it out. Thanks.


Return to “Textures”