Greetings Space,
I'm sorry to say I haven't progressed in my chosen method of implementing a marker ring for habitable zones. I tried all weekend. It seems there is another of those clipping limits in Celestia's code. This one stops you specifying a large ring stretching right across a solar system: as in more than 10,000,000 km across.
Your method seems to be to draw an orbit instead. This could work, but you need two orbits (one for inner and one for outer edges). I see you have benefited from Selden's syntax corrections to your proposed .scc, but there are still problems!
You may have a misconception that .ssc files are code. They're not. They are just 'data' files that are read by the Celestia program to be told what you want drawn. There's an analogy here between HMTL files and Webpage Browsers.
As a result, you can't put equations into .ssc files, you have to put the final answer in. So, you have to work out the numbers first on a calculator (and that includes the square rooting), and then type that number in right.
Also, you can't specify "Any Star", because Celestia expects a specific star to be named. Anyway, you'll have to do this, as each star has a different luminosity and the inner and outer edge distances change each time. I'm afraid it's work, work, work this way... To get Celestia to draw a Habitable Zone marker around all stars and be toggleable means a change to the Celestia code itself...
OK, let's carry on with with your current example as syntactically corrected by Selden (even though I fear you'll be a bit disillusioned now
).
Code: Select all
#Life Zone A
"Life Zone A" "Sol"
{
texture "lifezonea.png"
Mesh "empty.3ds" # an invisible place holder
radius 0.5
EllipticalOrbit
{
Epoch 20021013
Period 0.00000001 # thought it would look cool if the thing spun around Sol once a second
SemiMajorAxis 0.95
Eccentricity 0.0
Inclination 0.0
AscendingNode 0.0
ArgOfPericenter 0.95
MeanAnomaly 0.0
}
}
First, I think you are confusing a body with its orbit. The line "texture "lifezonea.png"" would try and paint this graphic image over the body, not the orbit. I mentioned the PNG graphic because I was trying to paint it onto a Ring object, but you are trying to make an Orbit object. If you are trying to make an orbit, not a ring, the texture isn't important.
Second, you apply this texture to the empty mesh. This can't work, because the mesh is empty, so the graphic can't be painted on anything. I think there is such a mesh as "empty.3ds", but even though I don't have it, Celestia drew the whole orbit and labelled where empty.3ds should have been as well. So leave that line, it's OK!
Third, you want the period to be very quick, but while bodies move in orbits, orbits do not rotate. You won't see the orbit spin around the sun every second. If you switch on the planet labels, then you would see the label spin around the sun. That also means the "Epoch 20021013" isn't necessary as well (because you don't care where the invisible body starts off). I found that setting "Period 0.00000001" made the label move so fast it too became invisible, so I set "Period 0.01" instead.
Fourth, you set "ArgOfPericenter 0.95" while "Eccentricity 0.0". Orbits with 0 eccentricity are perfect circles centred on what they orbit, so there is no angle where the argument of pericenter is set. It is also harmless to let "ArgOfPericenter 0.95" when "Eccentricity 0.0", but don't get the idea that this value has to be equal to that in "SemiMajorAxis 0.95"!
After all that, try this in your solarsys.scc. Paste it in at the top so you don't have to scroll all the way down to edit it when you experiment.
Code: Select all
#Life Zone Inner
"Life Zone Inner" "Sol"
{
Mesh "empty.3ds" # an invisible place holder
Radius 0.5
EllipticalOrbit
{
Period 0.01
SemiMajorAxis 0.95
Eccentricity 0.0
Inclination 0.0
AscendingNode 0.0
ArgOfPericenter 0.0
MeanAnomaly 0.0
}
}
#Life Zone Outer
"Life Zone Outer" "Sol"
{
Mesh "empty.3ds" # an invisible place holder
Radius 0.5
EllipticalOrbit
{
Period 0.01
SemiMajorAxis 1.85
Eccentricity 0.0
Inclination 0.0
AscendingNode 0.0
ArgOfPericenter 0.0
MeanAnomaly 0.0
}
}
If you do that, you'll find the orbits are invisible until you select them in the Solar System Browser. You can only select one of them at a time.
Well, it's not ideal, but it's a start.
Spiff.