Bob Hegwood wrote:Hello again...
I have a question concerning add-ons like Jupiter's Rings, and 3ds or
CMOD objects.
I MUST modify the solarsys.ssc file in order to display Jupiter's rings, must
I not?
Not any more! (see below)
I haven't been able to display the rings using alternate textures, so
is there another choice here?
Yes, starting with Celestia v1.3.2, there is another option. (see below)
Also, I have had a number of problems when trying to match up textures
with models which exist in their own directories under the extras directory.
If one is using this setup, the texture files must NOT exist in the main Celestia
textures directory should they?
Celestia uses the first texture it finds that has the name you specify, so it's best to use unique names for the textures provided with an Addon.
Thanks. Just trying to get a better handle on how to make a tour so that
it can reside in the extras directory.
Take care, Bob
Starting with Celestia v1.3.2, object definitions within an Addon's SSC files may have one of the three prefixes
Add
Replace
Modify
"Add" just adds this new object definition to Celestia's database. This is the default. It's the same as Celestia has always done.
"Replace" deletes the preexisting object that has the same name as this object and inserts this new definition in its place.
"Modify" replaces individual declarations within the existing object of the same name by whatever declarations are mentioned in this new object definition.
These three options all assume that only one object already exists with the same name. If more than one object with the same name have been created with Add, then the results of Replace and Modify are unpredictable.
In other words, you can use following Addon SSC definition to put rings around Jupiter:
Code: Select all
Modify "Jupiter" "Sol" {
Rings {
Inner 74500
Outer 140220
Texture "jupiter-rings-20040830.png"
}
}
Of course, you'd want to specify different values for Inner and Outer and Texture.