CELESTIA Y U NO LET ME DO THIS?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
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.
Topic author
W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 5 months

CELESTIA Y U NO LET ME DO THIS?

Post #1by W0RLDBUILDER » 01.07.2011, 06:46

I'm trying to make two very small spacecraft (actually just Wheatley and Space Core from Portal 2) orbiting each other, with their barycenter orbiting the moon. I've so far tried two methods, both obsolete (I can't wrap my brain around the frames stuff that's recommended right now) and neither worked. The first try involved using a Barycenter definition, but I ended up with both cores at the center of the moon. :( The second try was something I remember seeing somewhere but can't remember exactly how it's done, something about having something that's black, high albedo, and invisible. Epic fail, the whole thing was gone, the barycenter, plus both cores. I can't find any tutorials on how to do this anywhere, and i think it's safe to say it's almost impossible. Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: CELESTIA Y U NO LET ME DO THIS?

Post #2by selden » 01.07.2011, 10:32

The Barycenter and OrbitBarycenter keywords are usable only for Stars in STC files.
ReferencePoint is intended to be the equivalent of Barycenter in an SSC file.

When defining two objects revolving around a barycenter, it's easiest to start with their barycenter as an object itself. Then change the barycenter object's definition in some way to make it invisible. Each of the different ways of making an object invisible has different advantages.

-- add the prefix ReferencePoint to the barycenter's definition
-- inside the barycenter's definition add the keywords
Class "invisible"
-- give the barycenter object a Radius which makes it too small to see
-- use a Mesh which is completely transparent
With the latter two, you'll also have to specify a very low Albedo so that it doesn't glow when the viewpoint is distant from it.

Here's a starting point:

Code: Select all

"object00" "Sun/Earth/Moon" { Radius 0.001 Color [ 1 1 0 ]
 EllipticalOrbit { SemiMajorAxis 1760 Period 0.0833 }}
"Wheatley" "Sun/Earth/Moon/object00"  { Radius 0.001 Color [ 0 1 1 ]
 EllipticalOrbit { SemiMajorAxis 0.01 Period 0.0001 AscendingNode 270 }}
"Space Core" "Sun/Earth/Moon/object00"  { Radius 0.001 Color [ 0 0 1 ]
 EllipticalOrbit { SemiMajorAxis 0.01 Period 0.0001 AscendingNode 90 }}


Here's a viewpoint to see them:

cel://Follow/Sol:Earth:Moon:object00/20 ... rc=0&ver=3

And here's what that looks like:
twobodies.jpg


I'll leave it to you to try each of the different invisibility options.
Selden

Topic author
W0RLDBUILDER
Posts: 122
Joined: 02.06.2010
With us: 14 years 5 months

Re: CELESTIA Y U NO LET ME DO THIS?

Post #3by W0RLDBUILDER » 01.07.2011, 14:33

Thanks, setting my barycenter object as class invisible helped. Here's a screenshot of the two in spaaaaaaaaaaace, both cores about 2 feet across. The blue one is Wheatley and the yellow one is the Space Core. I also added Rick and the Fact Core in their own orbits around Earth; I'll post screenshots of both later.


Return to “Help Central”