Page 1 of 1

How do I add a surfacefeature object?

Posted: 23.01.2012, 02:43
by PlutonianEmpire
I'm trying to add a surface feature object to Earth in celestia, but I can't find *anything* that shows ALL the parameters I need to put in the SurfaceObject portion of the SSC.

So far I've got this:

Code: Select all

SurfaceObject "Object" "Sol/Earth" {
   Radius 0.210475
   Mesh "none.cmod"
   LongLat [ -93.589856 45.558207 0 ]
}


But it's not working. The damn thing is zipping across the globe at supersonic speeds. And I'm getting increasingly frustrated at the lack of information available on this portion of SSC coding, and what exactly I need to put down, and it's not working at all like it's supposed to.

So can someone help me? :)

Re: How do I add a surfacefeature object?

Posted: 23.01.2012, 13:25
by selden
Longlat should be deprecated. It's not compatible with many of Celestia's newer SSC features -- in particular those which use Frames by default, as SurfaceObject does. I'll add a note to that effect in the Wikibook later today if it's not there already.

Instead use

Code: Select all

SurfaceObject "Object" "Sol/Earth" {
   Radius 0.210475
   Mesh "object.cmod"
   FixedPosition { Planetographic  [ -93.589856 45.558207 0 ] }
}

Re: How do I add a surfacefeature object?

Posted: 24.01.2012, 01:26
by PlutonianEmpire
selden wrote:Longlat should be deprecated. It's not compatible with many of Celestia's newer SSC features -- in particular those which use Frames by default, as SurfaceObject does. I'll add a note to that effect in the Wikibook later today if it's not there already.

Instead use

Code: Select all

SurfaceObject "Object" "Sol/Earth" {
   Radius 0.210475
   Mesh "object.cmod"
   FixedPosition { Planetographic  [ -93.589856 45.558207 0 ] }
}
Thank you, Selden. :)

I apologize for my attitude in the OP. I had been over-working myself learning to do VT's and planning for a video I wanted to make, and didn't take breaks, and got stressed, so yeah. Again, my apologies.

Re: How do I add a surfacefeature object?

Posted: 24.01.2012, 11:31
by selden
Not a problem. I also get frustrated when things don't work they way they're "supposed to."

I've updated the Wikibook in several places.