Development

Gravitational Waves & Universe Sandbox ²

A black hole in Universe Sandbox ². Researchers have concluded the gravitational waves they detected were the result of two black holes colliding.

A black hole in Universe Sandbox ². Researchers concluded the detected gravitational waves resulted from two black holes colliding.

What’s the significance of discovering gravitational waves?

This announcement is a huge deal.  It is on par with the discovery of the Higgs Boson particle which provided the missing evidence for a prediction of the Standard Model of particle physics. Gravitational waves are a century-old (almost exactly) prediction now confirmed by a huge number of relentless, and brilliant people after many years of hard work. It is the first direct confirmation of the prediction from Einstein’s General Relativity that matter and energy determine the motion of bodies by warping the fabric of spacetime itself, and in so doing, emanate ripples when massive bodies are accelerated through that space.

It is not only confirmation of general relativity, though. It is also the first of many future observations that will look at the universe in a completely new way. Up until now we’ve used only photons (telescopes all along the electromagnetic spectrum) and sometimes neutrinos. Now we can add listening to the fabric of space to our list of tools. This will allow us to see the dark and the obscured parts of the universe: the early universe, centers of galaxies, things blocked by dust clouds, and so on, by listening for changes in space itself. It is the start of a new age in astronomy.

In addition to this detection being the first direct proof that the predictions of general relativity that matter and energy warp space time are true, and some of the strongest evidence for the reality of black holes, this is also a new kind of astronomy.  Though gravity is the weakest force and gravitational waves are very hard to detect, they do have a few advantages over observations of photons.

  • First, gravitational waves are practically impervious to matter in their path. This means we can see into regions of space that are blocked to optical observatories, such as inside dense clouds of dust, the centers of galaxies, behind large or close bodies.
  • Second, this is an observation of the warping of space itself, meaning we can detect things that have mass but might not produce observable light, such as black holes, dense sources of dark matter (if such were to exist), cosmic string breaks, etc. 
  • Third, gravitational waves fall off in amplitude much more slowly than light. This means that we can receive signals from very far away that we might not notice optically.
  •  And fourth, because gravitational waves also travel at the speed of light and don’t have to bounce off intervening matter, and begin to be potentially detectable from bodies getting close rather than just after the moment of collision, this means that we can work with other telescopes and tell them “Look over there! You’re probably going to see something exciting!”

This all of means that this detection means the beginning of a new kind of observational astronomy, as well as a better understanding of of of the fundamental forces of the universe, gravity.

 

What role did Jenn, astrophysicist and Universe Sandbox ² developer, play in the discovery?

While I was in the field I ran super-computer simulations to make predictions about the gravitational wave signals that would be produced by binary black hole mergers. Those waveforms are used as templates in the detector pipeline. The detector matches the template banks against the incoming data to find real signals amidst the noise of the detector, while also doing searches for large burst signals (how this one was found). Those waveforms are then used again to determine where the signal came from, what it was (two black holes, a neutron star and a black hole, two neutron stars, etc), and the properties of the bodies that created the signal (spins, masses, separation, etc.). I also worked on developing the analytical formulas to determine those spins and masses from those signals.

Here’s one of the scientific papers on the process of determining the properties of the source of the signal, with three papers cited on which Jenn Seiler was an author:

https://dcc.ligo.org/public/0122/P1500218/012/GW150914_parameter_estimation_v13.pdf

The Einstein equations for general relativity are ten highly non-linear partial differential equations. This means that it is only possible to obtain exact solutions for astrophysical situations for some very idealized conditions (such as spherical symmetry and a single body). In order to predict the gravitational waveforms produced by compact multi-body systems, or stellar collapse, it is necessary to solve the equations numerically (computationally). This means formulating initial data for spacetimes of interest (such as two in-spiralling black holes of various spins and mass ratios) and evolving them by integrating the solutions of the Einstein equations stepping forward in time by discrete steps. To prove that these computer simulations approximate reality more than just by equations on paper we would run these simulations at multiple resolutions for our discrete spacetimes and show that our solutions converged to a single solution as we approach infinite resolution (that would represent real continuous space) at the rate we expect for the method we were using. 

There were many obstacles in creating these simulations: vast amounts of computational power required for accuracy; the fact that we needed to run tons of these large, slow, computationally intensive simulations in order to cover the parameter space (spins, masses, orientations, etc) of potential sources of gravitational waves; and so on. For black holes, one major challenge was the fact that they contain a singularity. A singularity means an infinity, and computers don’t like to simulate infinities. Numerical relativity researchers had to find a way to simulate black holes without having the singularity point in the slicing of the spacetime integrated in the simulation. The first successful simulation of this kind didn’t happen until 2005 (http://journals.aps.org/prl/abstract/10.1103/PhysRevLett.95.121101).

Once we had working simulations, groups around the world set to work on simulating the gamut of major potential gravitational wave signal sources. These simulation results were not just useful to the detectors to help identify signals, but also to the theorists to help formulate predictions about the results of such astrophysical events. Predictions such as: the resulting velocity of merged black holes from binaries of various spins, the amount of energy released by black hole mergers, the effect that black hole spins have on the spins and orbits of other bodies, etc.

When will you add gravitational waves into Universe Sandbox ²?

We really can’t do gravitational waves in an n-body simulation, which is the method Universe Sandbox ² uses to simulate gravity. N-body simulations look at the effect that each body has on each other body in a system at small discrete time steps.

General relativity requires simulating the spacetime itself. That is, taking your simulation space, discretizing it to a hi-res 3-D grid and checking the effect that each and every point in that grid has on all neighboring points at every timestep. Instead of simulating N number of bodies, you are simulating a huge number of points. You start with some initial data of the shape of your spacetime and then see how it evolves according to the Einstein equations, which are 10 highly non-linear partial differential equations. Accurate general relativity simulations require supercomputers.

There are some effects and features related to relativity that would be possible to add to Universe Sandbox ², however. Here are a few we are discussing:

  • Gravity travelling at the speed of light.

    • Currently if you delete a body in a simulation, the paths of all other bodies instantly respond to the change. The reality is that it would not be instantaneous; it would take time for that information about the altered gravitational landscape to reach a distant object.

  • Spinning black holes.

    • Most black holes are very highly spinning. If you imagine a spinning star collapsing it is easy to understand why. This is the same effect as when a spinning figure skater pulls in their arms; because of conservation of angular momentum, they spin faster. A consequence of this spin is that, while the event horizon would remain spherical, there would be an oblate spheroid (squished ball) around the black hole called an ergosphere. This ergosphere twists up the spacetime contained within it and accelerates bodies that enter this region (as well as affecting their spins). Because it is outside of the event horizon, this means one can slingshot away from this region and even steal energy from the rotation of that black hole.

  • Corrections to the motions of bodies to approximate general relativity.

    • Loss of momentum due to the emission of gravitational waves causes close massive bodies to inspiral. With this you could recreate the decaying orbits of binary pulsars.

    • Spins of close bodies affect each other’s motion and spins (see above). This would give you things like spun up accretion disks around black holes.

    • These corrections would be made by adding post-newtonian corrections to body velocities.

 

Learn more

Bad Astronomy article: LIGO Sees First Ever Gravitational Waves as Two Black Holes Eat Each Other

Video and Comic Explaining Gravitational Waves

Reddit AMA (Ask Me Anything) by LIGO Scientists

Paper by LIGO Researchers: Observation of Gravitational Waves from a Binary Black Hole Merger

Universe Sandbox ² 2016 Roadmap

Happy New Year! 2015 was an exciting year for us. A few highlights: Universe Sandbox ² got a whole lot faster thanks to multiple physics refactorings, it was made a lot prettier thanks to a new user interface and a slew of eye candy upgrades, and we released on Steam Early Access with extremely positive reviews which haven’t stopped coming in.

The good news is that we don’t plan on slowing down. The following is a list of our hopes for Universe Sandbox ² in 2016.

It’s not necessarily a roadmap in the sense that we’ll get to these features in this order. But these are some of the big landmarks we are very excited to explore as we continue development through 2016 and beyond.

More Planetary Details & Interactions

A laser melting a frozen Earth.

Planets in Universe Sandbox ² will be visually more detailed and responsive to interactions, all part of a project which we are internally calling “automata.”

This works by increasing the spatial resolution of data. That is, instead of having one point of data for an object’s property, like temperature, there will now be a 2D grid of data. In the example of temperature, this means that collisions can impact values locally, so heat spreads from the impact site rather than just raising the overall temperature. In turn, this will make for much more dynamic visuals. This will eventually also factor in elevation, making possible more detailed surface deformation and a lot more. And along with the improved composition system mentioned below, this will form the groundwork for basic life simulation.

Oh, and there will also be lasers.

Improved Composition System

Currently we support four materials for a body’s composition: iron, silicate, water, and hydrogen. We’ve been discussing ways we can include additional materials to this list. We’d also like to improve the interactions between radii and compositions, as the results are sometimes a bit confusing right now. Another component we’ve discussed is atmospheric composition. This is a very tricky problem with no clear solution, but it’s often requested and we are working toward it.

Space Megastructures
a.k.a. The Feature No One Knew They Wanted Until They Had It

A megastructure around Earth. The green lines are the current, early rendering which will be improved.

A megastructure around Earth. The green lines are the current, early rendering which will be improved.

We’re not ready to give away too many details on this yet… but doesn’t “Space Megastructures” sound pretty cool? The answer is yes, they do sound pretty cool, because they are. Using physics based space tethers as the idea behind the basic building block, these structures can come in many shapes and sizes. We still have a lot of work to do on these, but you can start imagining things along the lines of space elevators, Dyson spheres, and ring worlds.

Virtual Reality

What more needs to be said? Internally we have basic support for this going already, but there’s still a lot of work to do in fine-tuning the experience of reaching out, grabbing the Moon, then hurling it toward Earth. Our initial efforts are directed at getting it to work with the upcoming Steam VR based HTC Vive and the Oculus Rift.

User Interface Rewrite

This is largely an under-the-hood rewrite, but it’s going to make it possible to scale the interface for larger and different-sized resolutions, and also allow for language localization down the road. Technically, we’re transitioning from our own internal system to the new native system in Unity (our 3D engine) that didn’t exist when we started on this project 4 years ago.

Language Localization

As mentioned above, the rewrite to the user interface will make it a lot easier for us to implement localization. Our next step, once we’re ready, is to start the crowd-sourced localization process so we can get Universe Sandbox ² running in as many languages as possible.

Stellar Evolution Rewrite

A Hertzsprung-Russell diagram in Universe Sandbox ² using the new stellar evolution model.

A Hertzsprung-Russell diagram in Universe Sandbox ² using the new stellar evolution model.

Universe Sandbox ² will support 16 evolutionary star types with the stellar evolution rewrite , versus the previous 5.  The improved evolution model, based on these papers, is primarily a function of mass and age or metallicity, and will work for evolutionary types outside of main-sequence stars.

The result will be more dynamic and accurate properties for stars, as well as smoother transitions from type to type. The model also will now account for mass loss from solar winds, and be able to differentiate envelope from core. As a whole, this is also a stepping stone toward being able to illustrate stellar nucleosynthesis in Universe Sandbox ². We’ve hit a few snags in fully implementing this, but Jenn, our astrophysicist, has been making good, steady progress.

Total Body Fragmentation

This feature was partially implemented before, but was removed during the physics rewrite. Now we’re about ready to add it back in, and once we add some nice visual flair, this will make collisions and explosions even more epic and realistic as planets get completely broken apart.

Improved Galaxies

We’ve been saying for a bit now that we’d like to give galaxies some love again, as they’ve been mostly overlooked recently while we work on other projects. Our plan includes completely reworking procedural galaxies, which tend to all look the same right now, and fixing a number of bugs which currently make galaxies a little difficult to interact with.

Atmospheric Scattering

We often see requests from users that the view from the surface (press “C” when focused on a body) could be improved. We completely agree. One big step toward this is accounting for the atmosphere (if the planet has one), resulting in nice colored skies, sunrises, and sunsets, all products of atmospheric scattering. This will greatly increase the immersion when looking up from one of your planets.

Steam Workshop

Once we get the save/load mechanics even more solid, we plan to add in support for Steam Workshop. This will allow users to easily share saved simulations and objects with each other, which will be a very cool way of seeing what everyone is creating with Universe Sandbox ².

Achievements

Steam Achievements are another common request for Universe Sandbox ². They can add a little incentive for exploring the simulation and trying things you wouldn’t normally try. Have any good ideas for Achievements? Let us know on the forum!

Expanded Climate Change Exploration

Our climate models for Earth and Mars have been successfully implemented in Universe Sandbox ² for a while. But we’d like to strengthen our focus on this component to further help educate users on one of the most pressing issues we face today as citizens of the Earth.

Mobile Version

Again, another common request for Universe Sandbox ². We haven’t yet moved beyond discussing this as a possibility, but we are very interested in a mobile version. Universe Sandbox ² could work extremely well with touch commands, and a mobile version would greatly increase the amount of people who could get their hands on it. With constant improvements to mobile technology, and Unity’s tools for building mobile apps (the 3D engine we use), this could be a reality sooner than we think.

Fixing Bugs

We’ve hired a dedicated tester whose job is to rigorously test Universe Sandbox ², helping us find and fix bugs as we continue development. We’re a small team, and the nature of a massive space sandbox means that there are an extraordinary amount of things to test. Our community has been super helpful to this end, but we’re happy to now have someone who’s devoted to this task and can help fill in the cracks.

 

The Future of Universe Sandbox ²

This roadmap may seem ambitious (and it is), but we’ve already gone pretty far into unexplored territory. We’re committed to making Universe Sandbox ² better and better as we continue to create something that’s never been done before. We hope you’re as excited as we are about the future.

Get instant access to Universe Sandbox ² on Steam Early Access:

store.steampowered.com/app/230290

universesandbox.com

Alpha 18.2 | Planet Nine | Now Available

Planet Nine

The discovery of a hypothetical ninth planet in our solar system was announced on January 20th, 2016 by researchers at the California Institute of Technology.

Universe Sandbox ² Alpha 18.2 features two simulations of Planet Nine. Run Steam to update, then check them out in Home -> Open -> Possible Planet Nine [and] Evidence of a Ninth Planet. 

Or buy now for instant access to Universe Sandbox ² on Steam Early Access:

http://store.steampowered.com/app/230290/

http://universesandbox.com

The announcement comes after years of research into explaining the peculiar, but very similar, orbits of six small bodies orbiting beyond Neptune. Many theories have been proposed, but none has been as compelling as a very distant ninth planet pulling these bodies into their highly elliptical orbits. Using mathematical modeling, the two researchers, Konstantin Batygin and Mike Brown, have shown that a ninth planet fits very well into the data we have about objects in the Kuiper Belt and beyond.

There's only a 1 in 15,000 chance that the clustering of the orbits on the left is coincidental. Another explanation is the gravitational influence of a ninth planet, whose orbit is represented by the yellow line on the right. (from Universe Sandbox ²)

There’s only a 1 in 15,000 chance that the clustering of the orbits on the left is coincidental. Another explanation is the gravitational influence of a ninth planet, whose orbit is represented by the yellow line on the right. (from Universe Sandbox ²)

Planet Nine has not been directly observed yet by telescope, which is why it is hypothetical. But the researchers say there is a very good chance of spotting it in the next five years. It is suspected to be about 10 times the mass of Earth, similar in size to Neptune, with an orbit that’ll take it around the Sun every 10,000 – 20,000 years. 

Of course, we don’t know how Planet Nine got there. Brown and Batygin propose that this planet was formed in the early days of the solar system, along with Jupiter, Saturn, Uranus, and Neptune. Then it could have been shot outward by one of the gas giants, and instead of leaving the solar system entirely, it may have been slowed down by gas in the Sun’s protoplanetary disk, enough to keep it in orbit.

Universe Sandbox ² - Planet Nine Alt Angle

Alternative angle of Planet Nine (yellow orbital line) and the six objects used in the analysis. (from Universe Sandbox ²)

If the ninth planet does exist, then it will be the second time our solar system will have claim to nine planets… After, of course, Pluto was demoted in 2006. But Brown says there’s no question that the hypothetical ninth planet is indeed a planet. It’s likely much bigger than Earth, and has a large influence on other bodies in the solar system. And besides, Brown would know — his discovery of Eris was the reason Pluto was voted out.

Here’s a great discussion of Planet Nine by Mike Merrifield, an astronomer and professor at the University of Nottingham:

We’re hope you’re as excited about this possible discovery as we are! Make sure you check out the new simulations in Universe Sandbox ²: Home -> Open -> Possible Planet Nine [and] Evidence of a Ninth Planet.

See the complete list of What’s New in Alpha 18.2:  What’s New

 

Additional links about Planet Nine:

Astronomers say a Neptune-sized planet lurks beyond Pluto 

Evidence grows for giant planet on fringes of Solar System

Evidence for a Distant Giant Planet in the Solar System (research paper)

Alpha 18 | Much Faster Physics | Now Available

Native Physics Computation

Alpha 18 should show significantly better performance for Windows users, thanks to Thomas, our physics programmer, who has implemented something called Native computation. As explained in a previous blog post, Native mode essentially removes a layer from the physics computation, making the whole process much faster. It is enabled by default and effectively replaces the old Managed computation mode.  Mac and Linux support for Native is coming in a future update.

Native-vs-Managed

The graph above compares the new Native computation mode with the older, slower Managed mode. The data is from running the “Solar System | All Planets & All Moons” simulation on a 2012 MacBook Pro.

As you can see, the physics computation by itself is heads and tails faster when run in Native mode — about 2.8 times faster, in fact. This raw difference in physics calculation speed doesn’t typically translate one-to-one for FPS (frames per second) gain, but in this instance there was still an increase of 17 FPS. This is a substantial difference which you will see and feel when using Universe Sandbox ². This new computation mode is essentially the only big change in this update, but we think you’ll agree that it’s a big change.

To see how much faster it is, you can switch back to the old Managed mode in Home > Settings > General tab > Computation Device > ManagedCPU.
You can also display the frames drawn per second by enabling FPS Info in Home > Settings > Debug tab or press Alt + F.

Wolf 1061

We’ve also added a simulation of the Wolf 1061 system, which contains a recently discovered potentially Earth-like exoplanet. At 14 light-years away, Wolf 1061c is the closest potentially habitable planet ever discovered.

Universe Sandbox ² - Wolf 1061

Maybe you’ve seen an image like the one above going around the internet. This is because the researchers who discovered Wolf 1061c used Universe Sandbox ² to create a visualization of the Wolf 1061 system. Very cool! You can check out their video on Youtube.

We’ve also been working hard on some other exciting projects and have made good progress. Read more about what we’ve got planned for upcoming updates: What Are We Working On? | Alpha 17 & Beyond.

Run Steam to update or buy Universe Sandbox ² now for instant access to Alpha 18 on Steam Early Access.

Check out the full list of new features, improvements, & bug fixes in What’s New.

And as always, let us know what you think about Alpha 18!

Universe Sandbox ² Alpha 17 Now Available

Universe Sandbox ² - Star Glow System

If you already own Universe Sandbox ², just run Steam to update to Alpha 17.

Or buy Universe Sandbox ² via our website or the Steam Store.

Alpha 17 | Star Glows & the Likelihood of Life

Alpha 17 introduces better looking star glows, a new Halley’s Comet simulation, and two values which show how similar a planet is to Earth and the speculative chance of it forming basic life. There’s also a “Make Pulsar” tool, better crash handling and reporting, and some bug fixes.

For a full list of what’s new in 17, please see our release notes.

You can read about some of the other features we are working on for future updates in our last post: What Are We Working On? | Alpha 17 & Beyond

Universe Sandbox ² - Earth-Life Indices
Let us know what you think of Universe Sandbox ² Alpha 17 using the in-game feedback or via…

universesandbox.com/forum

facebook.com/universesandbox

twitter.com/universesandbox

 

Signup to be notified every time there’s a major update for Universe Sandbox ²

What Are We Working On? | Alpha 17 & Beyond

Our past few updates have been relatively minor releases. They’ve focused on fixing bugs and stability issues, and aside from a few minor features, haven’t introduced anything new. Fixing these issues is extremely important, but for those users who hadn’t experienced any problems, these updates weren’t the most exciting.

But now we’re getting back up to speed after some good time off post-Steam release. Alpha 17 will be the first major release since Alpha 16 at the end of August, and we’re excited to begin showing off some of the bigger projects we’ve been working on.

At this time we can’t say for sure which features will make it into Alpha 17. Some will be implemented only in their early stages, and others will likely have to wait until later updates. These disclaimers aside, here are a few of the things which you can look forward to in Alpha 17 and beyond:

1. Rewritten Stellar Evolution & Classification

Previously there were 5 star types in Universe Sandbox ². Now, with the rewrite, there will be 16. The improved stellar evolution model is now primarily a function of metallicity, and will work for types outside of main-sequence stars.

The result will be more dynamic and accurate properties for stars, as well as smoother transitions from type to type. The model also will now account for mass loss from solar winds. It may take a bit of time to fully incorporate all of the changes, but now that Jenn has added in these new, robust evolution models, many new possibilities await.

2. More Planetary Details

Random planets in Universe Sandbox ² are going to be visually more detailed and responsive to interactions, all part a project which we are internally calling “automata.”

In the beginning, this will work alongside our climate component to increase the spatial resolution. That is, instead of having one point of data for an object’s property, like temperature, there will now be a 2D grid of data. In the example of temperature, this means that collisions can impact values locally, so heat spreads from the impact site rather than just raising the overall temperature. In turn, this will make for much more dynamic visuals.

This higher resolution of data will also apply to elevation, influencing water levels, pressure, and material states. Further down the line this could open up doors for better surface deformation and shaping, and even set up the groundwork for basic life evolution. It’s a very exciting project, but also highly experimental: it’ll be a work-in-progress for some time to come, even when it first shows up in an update, and we can’t say for sure what it’ll eventually be able to do.

3. Better Star Glows & Rendering

Universe Sandbox ² - Alpha 17 Star Glow

This one mostly speaks for itself. Star glows and rendering are going to look a whole lot better, with smoother fading and fewer clipping issues. Georg hopes to eventually add a little coronal animation, too.

4. Back-End Changes to the User Interface

Chris is busy porting over the current custom user interface to use Unity’s user interface system. At first this may fall into the category of “Not Too Exciting For Most Users,” as it won’t involve any design changes, but this rewrite of the user interface is going to make possible a handful of things for Universe Sandbox ² further down the line. Essentially, it’s future-proofing.

The biggest advantage of this is the support for multiple character sets and a scalable interface. This translates into support for languages using non-Roman characters, and an interface that works on non-standard resolutions, such as 4k or mobile. And while a mobile version of Universe Sandbox ² is not coming any time soon, should we eventually decide to take that path, this change will make it all the more feasible. Feel free to also use this as evidence that we are not planning on wrapping up development in the near future.

5. Native Physics Code

Alpha 15 introduced Thomas’s rewrite of the physics component in Universe Sandbox ², which made everything run a whole lot faster. That was only the first part. This second part is implemented as native code, versus the previously implemented managed code. Without getting too technical, this essentially removes a step from the process, making it run a bit faster. There will be more performance improvements to come after native implementation, but this one is a big step.

 

After all of this is firmly in place, then it’s time for VR… But that’s a blog post for another day.

Sign up to be notified whenever there’s a major update: Universe Sandbox ² Email List

Universe Sandbox ² Alpha 16 is Now on Steam Early Access

Universe Sandbox ²- Steam Art

Steam Early Access Release

After nearly 4 years of development, Universe Sandbox ² is now on Early Access and available for purchase directly through the Steam Store.

Buy Universe Sandbox ² on Steam.

Today also marks the release of another big update, Alpha 16. If you already own Universe Sandbox ², just run Steam to download the latest version.

What’s New in Alpha 16

What’s new in Alpha 16? We’ve re-enabled and improved saving and loading and completely rewrote the rendering backend to implement logarithmic z-buffering, which addresses graphical issues and paves the way for some big visual changes.

We also made further improvements to the interface and fixed a bunch of bugs and stability issues.

Universe-Sandbox-2-UI2

Let us know what you think of Alpha 16 using the in-game feedback or our forums, Facebook, or Twitter.

Or if you’ll be at PAX Prime later this week in Seattle, Washington, stop by the Indie MEGABOOTH to say hello. The whole team will be there showing off the latest and best Universe Sandbox ² and celebrating our release on Steam. We look forward to all that is still to come.

Universe-Sandbox-2-UI Universe-Sandbox-2-UI3

Logarithmic Z-Buffering in Universe Sandbox ²

The Z-Fighting Problem

Z-fighting is a graphical issue which occurs when a game tries to draw two layers at the same depth.

The results vary — sometimes one layer can appear to poke through another or they will flicker back and forth as they “fight” over which one should be drawn in front and which one in back.

Z-fighting demonstration from https://en.wikipedia.org/wiki/Z-fighting

Z-fighting demonstration from Wikipedia article

From the Teapot to the Milky Way

If you’re a gamer, you’ve probably seen z-fighting before. But this issue mostly affects games which are working with very large camera distances. For example, open-world games may try to draw mountains and clouds in the distance, but because they both are designated as “very far away,” they fight over which is drawn in front.

Universe Sandbox ² handles camera distances on a scale even larger than this. The camera may be a few meters away from a teapot, and lightyears away from a galaxy. And somewhere in between there may be a whole bunch of planets. The issue here would be distinguishing which planet should be drawn in front when, relatively, they’re much closer to each other than they are to either the teapot or the galaxy.

Log-Z

This is where logarithmic z-buffering comes in. In non-technical terms, log-z is a programming technique which opens up more “options” at which layers can be drawn. For example, instead of all planets being grouped together at depth 5, they can be drawn at 5 as well as 5.1 and 5.2 and so on. And with their own personal space, they no longer fight!

Here’s a great interactive example of logarithmic versus standard z-buffering: http://threejs.org/examples/webgl_camera_logarithmicdepthbuffer.html

Using this technique in Universe Sandbox ² has been a long time coming — its implementation had been held up by a bug in Unity (the engine we use for development), which has now been fixed.

It won’t be an obvious change for users, but now that Georg has added it in, we’re ready to move forward with a whole bunch of other visual improvements as well, not to mention the small performance increase we expect.

Thanks, Georg! Now there’ll be no more of this:

Pluto-Z-Fighting

You can buy Universe Sandbox ² now for instant access to the alpha via our website: universesandbox.com/2 

Universe Sandbox ² will be on Steam Early Access later this summer.

 

Simulating the World of Game of Thrones in Universe Sandbox ²

Universe Sandbox ² - 20150707-140519 UI

An Unpredictably Long Winter is Coming

Fans of George R. R. Martin’s fantasy series A Song of Ice and Fire or the television series, Game of Thrones, know well the often repeated warning, “Winter is coming.” 

For those living on the continent of Westeros in this fantasy world, summers can be long, and so can the winters. But some winters are especially cold and last for several years, while others are relatively mild and short.

What causes this variance in seasons?  Martin doesn’t offer an explanation, so we’re free to speculate.

One research paper (“Winter is coming”) proposes that perhaps there’s a natural explanation: Westeros is on a circumbinary planet, meaning its orbit extends around a binary star system.

Simulating  Westeros in Universe Sandbox ²

The paper may be tongue-in-cheek, but that doesn’t mean we can’t use its parameters to try simulating it in Universe Sandbox ². Like the paper, we were unable to find stable orbital parameters that would create the level of unpredictability discussed in the books or the show.

We could, however, create a system that has variable winter and summer intensities on regular predictable intervals with a large northern polar ice region. Though our results didn’t exactly match those in the paper, we managed to recreate similar seasonal patterns to what the authors describe in their paper.

If you own Universe Sandbox ², you can see this simulation for yourself in Alpha 15: Home -> Open -> Fiction -> Lands of Ice & Fire | Game of Thrones.

To open the temperature graph, open the Westeros planet’s Properties, select the Climate tab, hover over the Surface Temperature icon and click the Graph button.

If you don’t own Universe Sandbox ², you can buy it now to get instant access to the alpha via Steam code: http://universesandbox.com/2

Universe Sandbox ² Alpha 15.2 | The Pluto Encounter Update

Universe Sandbox ² - New Horizons Pluto 2

If you already own Universe Sandbox ², just run Steam to update to the latest version.

Or you can buy Universe Sandbox ² here:
http://universesandbox.com/buy/

New Horizons

We’ve just released Alpha 15.2, which features a simulation of NASA’s New Horizons trip past Pluto and its moons. The spacecraft will be closest to the icy dwarf planet next Tuesday, July 14th. You can find the simulation in Home -> Open.

We will be updating Pluto’s and its moons’ textures as data is received from the New Horizons spacecraft.

If you keep the simulation running to 2019, you will see New Horizons approach its second target, 2014 MU69 (or PT1), an object with a diameter of 30-45 km orbiting in the Kuiper belt. New Horizons will likely be closer to PT1 than our simulation reflects, though, as NASA will be using a portion of its remaining fuel to get closer to its target.

You can also check out NASA’s own New Horizons simulation.

Recent Updates & Changes

In this update we’ve also made it possible to draw trails relative to a body and made additional tweaks and fixes.

In Alpha 15.1, released on June 26th, we updated the look of Ceres based on the latest photos from NASA, added a random asteroid feature, new moons of Pluto, pulsar jets, and improved the look of brown dwarfs. We also re-introduced the ability to customize launch bodies: Hover over bodies in the Add panel then press a number key to assign the body to that launch slot.

Full list of What’s New