Page 1 of 1

.XYZ editor issues

Posted: 14.06.2006, 05:48
by Hungry4info
I'm creating a fictional solar system for fun, and decided I wanted to make a spacecraft for it.

I downloaded a .xyz file editor, and I started to try to plot a small course for a lunar reconaissance spacecraft. I set the points from a planet past its moon, and I ensure that the time is different on each of the points. Now I write the .ssc file for the spacecraft, open Celestia 1.4.0 and check it out. The spacecraft is 2,349 light years away. It still follows the same course though, it's just bloated up to interstellar travel rather than solar travel.

So I looked that the spacecraft.ssc file for some inspiration. It all looked like what I had, so I just copied the whole thing and pasted it at the bottem of the file. I changed the "beginning" line to the first julian date on the new .xyz file I made, and where it had "sampleorbit" I put in the name of my .xyz file. Quite satisfied and hoping it would work, I opened Celestia again, and the spacecraft was, once again, 2,349 lght years away.

I'm rather confused, but I think that it might be kinda like when you tell a planet to orbit 400,000 AU from the star. I think that maybe the .xyz editor is accidentally telling my computer to write the distance in AU when it's actually killometers in Celestia. I tried to put it in orbit of the planet ("Kaladria/Skathi"), but then the spacecraft was no longer in Celestia.

"Explorer1" "Kaladria"
{
Class "spacecraft"
Mesh "new_horizons_jpg.cmod"
Radius 0.011

Beginning 2453898.56422620314

SampledOrbit "explorer1.xyz"

RotationPeriod 1e9
}

Not sure if it will help any, but I pasted the .ssc part of the spacecraft. Maybe somebody can spot something. The .xyz and the .ssc files are both in the "data" folder in Celestia.

Any suggestions would be greatly appreciated.

Posted: 14.06.2006, 10:56
by selden
What xyz file editor are you talking about?
It's probably generating the wrong values.

Posted: 15.06.2006, 23:16
by Hungry4info
The .xyz file editor/generator I am reffering to can be downloaded at the http://www.celestiamotherlode.net/catalog/scripts.php. It is the "XYZ Trajectory Builder" file.

Posted: 16.06.2006, 07:57
by jestr
OK Hungry,I think the answer lies in adapting the XYZ Builder.celx file (you can open it with notepad or wordpad) and change the line

Code: Select all


gHELIOFRAME  = celestia:newframe("Planetographic", celestia:find("Sol"), 2451545.0)



entering the name of your fictional star "Kaladria"? in place of Sol.
It's probably a good idea to plot the xyz file in Celestia 1.3.2 and then transfer it to 1.4.2 if you can as I seem to remember having problems with the positions when I used 1.4.0,but this was within our solar system.
Hope this helps,Jestr

Posted: 19.06.2006, 03:08
by Hungry4info
This was indeed helpful! Thank you very much.

Posted: 19.06.2006, 10:44
by Don. Edwards
Whats this got to do with textures?

Shouldn't this be in the add-ons section?

?
?

Don. Edwards

Posted: 22.06.2006, 21:27
by Hungry4info
Don. Edwards wrote:Whats this got to do with textures?
Absolutely nothing.

Don. Edwards wrote:Shouldn't this be in the add-ons section?
Don. Edwards

Nope, this is/was a bug.

Posted: 22.06.2006, 21:37
by selden
I've moved this thread to the Bugs forum.

Posted: 28.06.2006, 08:20
by Hungry4info
Sorry if I did not post it into the appropriate forum.