Page 1 of 1

sol texture location

Posted: 23.10.2009, 20:00
by FCVPI99
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

Re: sol texture location

Posted: 23.10.2009, 21:24
by selden
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

Re: sol texture location

Posted: 23.10.2009, 21:54
by FCVPI99
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

Re: sol texture location

Posted: 24.10.2009, 17:11
by FCVPI99
ok i finialy figured it out about the planets but i still dont know where the star list is

Re: sol texture location

Posted: 24.10.2009, 21:56
by Hungry4info
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.

Re: sol texture location

Posted: 25.10.2009, 17:14
by FCVPI99
i dont have a stars.STC i have a Stars.DAT which shows up as a nero movie that cant be opened

Re: sol texture location

Posted: 25.10.2009, 20:51
by selden
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/

Re: sol texture location

Posted: 27.10.2009, 15:05
by Hungry4info
selden wrote:Hungry made a typo.
Ah yes. My mistake.

Re: sol texture location

Posted: 03.06.2010, 00:09
by W0RLDBUILDER
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