Empty focus for Locus

Post requests, images, descriptions and reports about work in progress here.
Topic author
eburacum45
Posts: 691
Joined: 13.11.2003
With us: 21 years

Empty focus for Locus

Post #1by eburacum45 » 14.11.2011, 18:09

Hi!
I've got a little request for help; it may or may not be straightforward enough, but I can't quite figure out how to do it.
Recently I've created a world for Orion's Arm which is both tidally locked and high;ly eccentric. Among other things this means the planet receives sunlight all over its surface to varying degrees, as the sunward hemisphere points more-or-less directly at the empty focus of the orbit. (This is a phenomenon mentioned over at Bautforum a year or two ago).

I've made a reasonably successful texture for this world, and it can be seen on the OA site here
http://www.orionsarm.com/eg-article/4eb9314768886
but I wonder if anyone can figure out how to align this planet so that it faces the empty focus of its orbit.

Code: Select all

"locus" "JD 9044191"
{
Texture "locus3.*"
SpecularTexture "locus3spec.*"
BumpMap "locus3bump.*"
BumpHeight 3
NightTexture "locusnight.*"
Radius 5832

Color [ 0.85 0.85 1.0 ]
SpecularColor [ 0.5 0.5 0.55 ]
   SpecularPower 25.0


   

   Atmosphere {
      Height 60
      Lower [ 0.43 0.52 0.65 ]
      Upper [ 0.26 0.47 0.84 ]
      Sky [ 0.40 0.6 1.0 ]
      Sunset [ 1.0 0.6 0.2 ]
      CloudHeight 7
      CloudSpeed 65
      CloudMap   "locusclouds.png"

      Mie 0.01
      MieAsymmetry -0.25
      Rayleigh [ 0.002 0.004 0.01 ]
      MieScaleHeight 12
   }
EllipticalOrbit
   {
   Period         0.199
   SemiMajorAxis  0.271
Inclination 0.04
Eccentricity 0.75
ArgOfPericenter 320
MeanAnomaly     100
   
   }


RotationPeriod   0.0
   Obliquity        19
Albedo 0.37
}

Any help would be appreciated...

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

Re: Empty focus for Locus

Post #2by selden » 14.11.2011, 18:50

Well, you could force it: place an invisible, unmoving object at the secondary focus and use a two-vector frame which points its primary axis at the unmoving object for the BodyFrame for the orbiting object.
Selden

Topic author
eburacum45
Posts: 691
Joined: 13.11.2003
With us: 21 years

Re: Empty focus for Locus

Post #3by eburacum45 » 14.11.2011, 19:03

That is more-or-less the method I was thinking of, except how do I define the location of the invisible object?

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

Re: Empty focus for Locus

Post #4by selden » 14.11.2011, 20:45

Here's what I came up with, after reviewing the definition of the position of a focus in the Wikipedia article on ellipses.

Code: Select all

"locus" "JD 9044191"
{
   Texture "locus3.*"
   SpecularTexture "locus3spec.*"
   BumpMap "locus3bump.*"
   BumpHeight 3
   NightTexture "locusnight.*"
   Radius 5832

   Color [ 0.85 0.85 1.0 ]
   SpecularColor [ 0.5 0.5 0.55 ]
   SpecularPower 25.0

   Atmosphere {
      Height 60
      Lower [ 0.43 0.52 0.65 ]
      Upper [ 0.26 0.47 0.84 ]
      Sky [ 0.40 0.6 1.0 ]
      Sunset [ 1.0 0.6 0.2 ]
      CloudHeight 7
      CloudSpeed 65
      CloudMap   "locusclouds.png"

      Mie 0.01
      MieAsymmetry -0.25
      Rayleigh [ 0.002 0.004 0.01 ]
      MieScaleHeight 12
   }
   EllipticalOrbit
     {
       Period         0.199
       SemiMajorAxis  0.271
       Inclination 0.04
       Eccentricity 0.75
       ArgOfPericenter 320
       MeanAnomaly     100
     }

   BodyFrame { EclipticJ2000 {Center "JD 9044191"} }  # gets replaced
   FixedRotation {} # required to prevent locus from pointing toward the star

Albedo 0.37
}


"focus" "JD 9044191"
{
  Radius 1000000
  EllipticalOrbit
   {
     Period         1e32  #close enough to infinity to prevent focus from moving much
     SemiMajorAxis  0.4065 # 2ae = 2.0*0.271*0.75 = 0.4065
     Inclination 0.04        # same as locus
     ArgOfPericenter 320  # same as locus
     MeanAnomaly     180  # at apocenter
     Eccentricity 0              # perfect circle: a distance
   }
}

Modify "locus" "JD 9044191"
{
  BodyFrame {
    TwoVector {
        Center "JD 9044191/locus" 
        Primary {
            Axis "y"
            RelativePosition { Target "JD 9044191/focus" }
        }
        Secondary {
            Axis "x"
            RelativeVelocity { Target "JD 9044191"}
        }
    }
  }

}


I made the focus object large enough to see from a distance, and selected wireframes (Ctrl-W) and body axes (RMB --> Reference Marks --> Show Body Axes) to see where Locus was pointing.

insert
Class "invisible"
in the definition of focus when you've convinced yourself the BodyFrame is doing the right thing.
Selden

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

Re: Empty focus for Locus

Post #5by selden » 14.11.2011, 21:07

Here's the diagram that I devised to help determine what to do. I added comments afterward.
Selden

Topic author
eburacum45
Posts: 691
Joined: 13.11.2003
With us: 21 years

Re: Empty focus for Locus

Post #6by eburacum45 » 14.11.2011, 22:55

Thank you very much. I still need to align the texture correctly- the Warm Pole seems to be misaligned by 90 degrees, for some reason- but I feet confident that I can work that out for myself.

Topic author
eburacum45
Posts: 691
Joined: 13.11.2003
With us: 21 years

Re: Empty focus for Locus

Post #7by eburacum45 » 14.11.2011, 23:42

Now that the texture is properly aligned, the peculiar characteristics of these system can be clearly seen; the short season of Hotness at Periaston is followed by the longer season of Falling, the long, slow, cold season of Coolness and the increasingly warm season of Rising. As seen from the surface at the Warm Pole the sun goes across the sky from horizon to horizon without actually setting. Nearly as confusing as the seasons on Mercury.

Avatar
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Re: Empty focus for Locus

Post #8by Tegmine » 15.11.2011, 12:28

Looks good! Now that it's aligned properly, will it be available?

-M-

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Re: Empty focus for Locus

Post #9by ajtribick » 15.11.2011, 12:36

If the planet's orbit is highly eccentric then it may end up in either pseudo-synchronisation (for planets without a permanent asymmetry, e.g. gas/ice giants) or higher-order spin:orbit resonances (for solid planets, e.g. Mercury), rather than a 1:1 lock.

Topic author
eburacum45
Posts: 691
Joined: 13.11.2003
With us: 21 years

Re: Empty focus for Locus

Post #10by eburacum45 » 15.11.2011, 19:31

That is another option I intend to explore; thanks!

Here's Locus, by the way
http://www.orionsarm.com/fm_store/Locus.zip

the extremes of hot and cold on this planet would make it uninhabitable by humans, so (as mentioned in the write-up) I've decided to use J Storrs Hall's concept of the 'weather machine' to ameliorate the climate. Tiny airborne diamonoid spheres, filled with hydrogen and helium, each have a mirror inside which can be oriented to reflect light back into space, or back toward the ground. They make quite good weapons, too.


Return to “Add-on development”