Hi,
what am I to do with Celestia to make it display alternate surface of my extrasolar planet Kvarta near Alfa Centauri A? The planet itself with it`s own surface displayes all right, but the right click of mouse on it gives not an item "Alternative surfaces" in the menu window... This is a structure and the content of files of my addon that I placed into the folder "extras" of Celestia:
folder "Babula" - file "Babula.ssc"
______________folder "textures" - folder "medres" - file "Babula.ctx"
_____________________________________________folder "Babula" - file "Babula.jpg"
"Babula.ssc":
AltSurface "Babula" "ALF Cen A/Kvarta"
{
Texture "Babula.jpg"
}
"Babula.ctx":
VirtualTexture
{
ImageDirectory "Babula"
TileType "jpg"
}
Thanks!
Alternate Surface problem
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
- Hungry4info
- Posts: 1133
- Joined: 11.09.2005
- With us: 19 years 2 months
- Location: Indiana, United States
Re: Alternate Surface problem
You toggle alt surfaces with the Keypad [+] (plus) key (by default).
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
- Chuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
Re: Alternate Surface problem
It looks as though you are getting confused between Alternate Surfaces and Virtual Textures.
Although an Alternate Surface may be a virtual texture made up of multiple levels of detail: http://www.lns.cornell.edu/~seb/celestia/brief_vt.html, it does not look as though that is what you intended here, as you make no mention of "levels" folders, etc..
It looks as though your alternate surface is represented by a single jpg image "Babula.jpg" rather than a VT.
If so, there is no need to deal with .ctx files, and you can just have a simple AltSurface declaration as below. You also need to move the file Babula.jpg into the medres folder.
You only need a CTX if your texture is a VT, so you can get rid of the CTX file.
You don't need the folder "Babula" either.
eg.
So, in summary:
Although an Alternate Surface may be a virtual texture made up of multiple levels of detail: http://www.lns.cornell.edu/~seb/celestia/brief_vt.html, it does not look as though that is what you intended here, as you make no mention of "levels" folders, etc..
It looks as though your alternate surface is represented by a single jpg image "Babula.jpg" rather than a VT.
If so, there is no need to deal with .ctx files, and you can just have a simple AltSurface declaration as below. You also need to move the file Babula.jpg into the medres folder.
You only need a CTX if your texture is a VT, so you can get rid of the CTX file.
You don't need the folder "Babula" either.
eg.
Code: Select all
AltSurface "Babula" "ALF Cen A/Kvarta"
{
Texture "Babula.jpg"
}
So, in summary:
- 1. Keep Babula.ssc
2. Move Babula.jpg into the medres folder.
3. Delete the empty folder Babula
4. Delete Babula.ctx
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
Re: Alternate Surface problem
Thank you very much for your patience, but the item Alternate surface in the menu (right click to planet) does not appear yet! If I try this addon for Sol/Earth it works (only change "ALF Cen A/Kvarta" for "Sol/Earth").
- Chuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
Re: Alternate Surface problem
What is the name of the .SSC file which defines the actual Planet Kvarta itself?
If it is named Kvarta.ssc and is in the same folder as Babula.ssc, then it's possible (nay, likely) that the AltSurface is being loaded BEFORE the planet, so it will be ignored as the planet it references has not yet been defined.
Celestia tends to load files and folders in approximate alphabetical order, so your choice is either to place the Altsurface statement in the Planet's SSC (after the planet specification), or devise a naming convention for your SSC's which ensures that the Planet is loaded first.
eg.
Prob. the reason it works for Earth is that the standard data and standard extras that ship with Celestia are always loaded first, before your own extras.
CC
If it is named Kvarta.ssc and is in the same folder as Babula.ssc, then it's possible (nay, likely) that the AltSurface is being loaded BEFORE the planet, so it will be ignored as the planet it references has not yet been defined.
Celestia tends to load files and folders in approximate alphabetical order, so your choice is either to place the Altsurface statement in the Planet's SSC (after the planet specification), or devise a naming convention for your SSC's which ensures that the Planet is loaded first.
eg.
- ALF-Cen-Planets.ssc
ALF-Cen-Surfaces.ssc
Prob. the reason it works for Earth is that the standard data and standard extras that ship with Celestia are always loaded first, before your own extras.
CC
Last edited by Chuft-Captain on 30.06.2010, 20:36, edited 5 times in total.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
Re: Alternate Surface problem
"It works fine for me!"
I used a single SSC file to ensure that things are loaded in the correct order.
I put babula.jpg in kvarta/textures/medres/
That's the same directory which contains Kvarta.jpg
I can see the babula alternate surface on both Kvarta and Earth.
(Of course, I'm using my own image files.)
I used a single SSC file to ensure that things are loaded in the correct order.
Code: Select all
"Kvarta" "Alf Cen A" {
Radius 6000
Texture "Kvarta.jpg"
EllipticalOrbit { SemiMajorAxis 1 Period 1 }
}
AltSurface "Babula" "ALF Cen A/Kvarta" { Texture "babula.jpg"}
AltSurface "Babula" "Sol/Earth" { Texture "babula.jpg"}
I put babula.jpg in kvarta/textures/medres/
That's the same directory which contains Kvarta.jpg
I can see the babula alternate surface on both Kvarta and Earth.
(Of course, I'm using my own image files.)
Selden
- Chuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
Re: Alternate Surface problem
Everything always works for you Selden.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
Re: Alternate Surface problem
But not always with the first try. Or even the tenth. You don't think I'd show them, do you?
Selden
- Chuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
Re: Alternate Surface problem
Aha! That might explain why you're not the first responder on this thread as usual.selden wrote:But not always with the first try. Or even the tenth. You don't think I'd show them, do you?
EDIT: At this point Selden you should claim timezone differences....
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
Re: Alternate Surface problem
Thank you all for your effort and willingness. Selden, your help is allways usefull and it works now too! Thank you! My planet Kvarta looks like this now, and its development is in progress: