sol texture location

Tips for creating and manipulating planet textures for Celestia.
Topic author
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

sol texture location

Post #1by FCVPI99 » 23.10.2009, 20:00

does anybody know where i can change the sol texture? im guessing its in data somewhere i cant open the stars files its says its a nero movie?
i looked in solsystem but thats just the planets

what i want to do is integrate the addons AKA have them be in there respective folders not in addons

thanks Brian

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

Re: sol texture location

Post #2by selden » 23.10.2009, 21:24

Brian,

You don't need to manually edit any file to change the texture used for a star: use the Modify prefix in an STC catalog file.

Create a directory in /extras/ named
mysun
In the directory extras/mysun create a file named
mysun.stc
which contains the text

Code: Select all

Modify Sol { Texture "mysun.jpg" }

In the directory extras/mysun create a directory named
textures
In the directory extras/mysun/textures create a directory named
medres
In the directory extras/mysun/textures/medres create the image file named
mysun.jpg
Selden

Topic author
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

Re: sol texture location

Post #3by FCVPI99 » 23.10.2009, 21:54

thats is how it is now what im wanting to do is download and install over whats there now to keep file size down

last time i did this was about 4 years ago i did everything in extras but celestia grew from 25 MB to almost 10 GB


for example mercury

fresh install from data/solarsys
"Mercury" "Sol"
{
Texture "mercury.*"
Radius 2440

CustomOrbit "vsop87-mercury"

# Overridden by CustomOrbit
# EllipticalOrbit {
# Period 0.2408
# SemiMajorAxis 0.3871
# Eccentricity 0.2056
# Inclination 7.0049
# AscendingNode 48.33167
# LongOfPericenter 77.456
# MeanLongitude 252.251
# }

BodyFrame { EquatorJ2000 {} }
CustomRotation "iau-mercury"

# Overridden by CustomRotation
# UniformRotation
# {
# Period 1407.509405
# Inclination 28.55
# AscendingNode 11.01
# MeridianAngle 329.548
# }

Albedo 0.06
}

i have a addon thats says this in a SSC file
Modify "Mercury" "Sol"
{
Texture "Mercury.7.08.ctx"

}
AltSurface "limit of knowledge" "Sol/Mercury"
{
Texture "Mercury.7.08.ctx"
OverlayTexture "MercuryLOK.7.08.png"
}
and this in a CTX file in Hires
VirtualTexture
{
ImageDirectory "Mercury.7.08"
BaseSplit 0
TileSize 256
TileType "png"
}
what i want to do is delete all mercury (photos) that came with celestia and put the new ones in its place and have it referance the new data from the soloarsys file i tryed replacing mercury.* with Mercury.7.08.ctx but i still get the old stock mercury

i figured this would work but it didnt
"Mercury" "Sol"
{
Texture "Mercury.7.08.ctx*"
Radius 2440

CustomOrbit "vsop87-mercury"

# Overridden by CustomOrbit
# EllipticalOrbit {
# Period 0.2408
# SemiMajorAxis 0.3871
# Eccentricity 0.2056
# Inclination 7.0049
# AscendingNode 48.33167
# LongOfPericenter 77.456
# MeanLongitude 252.251
# }

BodyFrame { EquatorJ2000 {} }
CustomRotation "iau-mercury"

# Overridden by CustomRotation
# UniformRotation
# {
# Period 1407.509405
# Inclination 28.55
# AscendingNode 11.01
# MeridianAngle 329.548
# }

Albedo 0.06
}
AltSurface "limit of knowledge" "Sol/Mercury"
{
Texture "Mercury.7.08.ctx"
OverlayTexture "MercuryLOK.7.08.png"
}

im trying to give a quick crash course in celestia cuz my buddy and I came up with a nice sol sun addon it would downlaod like 6 hour old photos of sunspots and put into celestia but i fig i better get into the planets first

Topic author
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

Re: sol texture location

Post #4by FCVPI99 » 24.10.2009, 17:11

ok i finialy figured it out about the planets but i still dont know where the star list is

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

Re: sol texture location

Post #5by Hungry4info » 24.10.2009, 21:56

FCVPI99 wrote:ok i finialy figured it out about the planets but i still dont know where the star list is

Celestia's default stars are located in Stars.stc, in the data folder. For an add-on, any stars defined there will also be in an .stc file.
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
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

Re: sol texture location

Post #6by FCVPI99 » 25.10.2009, 17:14

i dont have a stars.STC i have a Stars.DAT which shows up as a nero movie that cant be opened

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

Re: sol texture location

Post #7by selden » 25.10.2009, 20:51

Hungry made a typo.



stars.dat is a binary file containing information about most of the stars that Celestia knows about. The text file that it is created from is not an STC file. stars.txt and the program which translates it into binary are both available on SourceForge. There's also a program which claims to translate the stars.dat binary file into a text file. If you don't want to write STC files, you'll have to learn C++ programming and how to compile and run programs written in that language

See http://celestia.svn.sourceforge.net/vie ... ls/stardb/
Selden

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

Re: sol texture location

Post #8by Hungry4info » 27.10.2009, 15:05

selden wrote:Hungry made a typo.
Ah yes. My mistake.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 6 months

Re: sol texture location

Post #9by W0RLDBUILDER » 03.06.2010, 00:09

Open nearstars.stc in a plain-text editor like Notepad. Add the following line after the last line in Sol's definition but before the }:

Code: Select all

Texture "your-texture-here.jpg" #replace jpg with png, bmp, or dds


Return to “Textures”