Authors: Dr. Megan, Vladimir, Jonathan, and Brendan
Note: you can view the full blog post on our website for an interactive image comparison and further reading.
[p align="start"]Hey folks!
The team is hard at work on the next major update for SpaceEngine: 0.992! With this update, users will see several big changes and improvements, which are targeted for open Beta early next year. As development continues and we get closer to that release, we’ll have more info to share, so stay tuned~
Today, we’re giving our community a sneak peek at one of those big changes: Roche surfaces and contact binaries!
A video demonstration of the new Roche shapes coming in 0.992.
What are Contact Binaries?
A binary star system consists of a pair of stars which are gravitationally bound to each other. These systems are also referred to as a binary star, or even just a binary. Depending on how closely the stars orbit each other, their gravitational pull can distort their surfaces, pulling them towards each other, and, in some cases, they even touch.
Around each star in the binary is a region where any orbiting material is gravitationally bound to that specific star. This region is called the Roche lobe. In binary systems where the stars are very close to each other, the gravitational pull of the opposing star, combined with the rotation of the system, can cause the surfaces of the stars to extend out to fill the Roche lobe. The resulting star shapes are referred to as Roche surfaces. Astronomers use the extent of the stellar surface material within the Roche lobe and the shape of the Roche surface to define three different classes of binary star systems: detached binaries, semi-detached binaries, and contact binaries (Koppal 1955).

Schematics of the Roche lobes for the detached case (left), semi-detached case (center), and contact case (right). The dashed lines show the extent of the Roche lobes. The mass ratio of these stars is M2/M1=0.38.
A binary system where the stars are each fully inside of their own Roche lobes is called a detached binary. In a detached binary, each star’s own gravity dominates itself, and the shapes of the stars do not deviate far from a tri-axial ellipsoid. Instead, they can lean towards each other. Most binary stars fall into this classification.
A binary system where one of the stars fills its Roche lobe and the other does not is called a semi-detached binary. The star filling its Roche lobe looks a bit like a teardrop, with one pointed end facing the other star. Stars in this configuration interact and matter can flow from the star filling its Roche lobe onto its partner.
When binary stars both fill their Roche lobes, the stars will actually touch. This is called a contact binary. The touching stars resemble peanuts or a figure eight, and some may even merge into a single star, if they are close enough.
Updated Binary Stars in SpaceEngine
Until now, SpaceEngine could generate a flattened or triaxial ellipsoid star, but those shapes did not follow the Roche shapes of a close binary system. We’re excited to announce that the upcoming 0.992 update adds Roche-shaped stellar surfaces, along with many other changes.
In the update, the terrain system will account for the deformed surface when selecting details and deciding which parts of the star are visible. Contact binaries will be rendered as two surfaces which meet and overlap at the neck. The neck will be shaped and shaded to appear as one connected pair rather than two stars simply pushed together.
An example binary star from before the change.
The same stars after the change, now a semi-detached binary. Other differences in rendering for star surfaces may appear. These are subject to change before release. See the full blog post on our website for an interactive comparison.
The Sheliak system in HDR exposure mode.
The contact binary from the MS Leonis system. MS Leonis, along with many other binary star systems, will be added to SpaceEngine's catalogs for the coming update.
Limitations
For semi-detached binaries, this update will show the shapes of the stars, but not streams of matter between stars. Similarly, for systems where the shared envelope would overflow the L2 Lagrange equipotential surface (systems that will eventually merge), mass loss will not be shown in SpaceEngine. For the overflow case, the renderer uses a finite, near-limit contact shape. This is a display fallback to keep the system explorable. In nature, these pairs would not remain stable.
These updates are aimed at achieving an accurate visual representation of close-binary systems. They do not simulate how energy circulates through a real contact binary, and they do not recalculate each star's total luminosity from a detailed atmosphere model.
