HomeProgrammingWhat the code of...

What the code of No Man’s Sky says about procedural generation

Greg of 3D Game Dev Blog took a few weeks to dig into the code of No Man’s Sky to try and figure out how the game engine created by Hello Games creates each element of an entirely procedurally generated game world. 

This blog post is definitely worth checking out if you’re a dev at all interested in the code that went into procedurally generating nearly every bit of content on a multi-planetary scale. 

The post splits its findings into three main categories: geometry, textures, and animation. The section on geometry is by far the most in-depth and talks mostly about how the game creates creatures, ships, and other models by combining multiple parts from assets with a predetermined chance value. 

A similar approach is used to procedurally generate the textures and color pallettes used for creatures and planets within the game. 

An example of randomly generated creatures using <i>No Man's Sky</i> assets in an external viewer.

“…except [for] designing different model parts, [the game artists] have also provided multiple different textures for each part. So traversing that file in the same fashion with the descriptor file, one can calculate the final diffuse texture of the procedural generated model,” he explains. “And here is the even better part. Even if two models are identical geometrywise, they can end up having completely different colors, marks, shapes, etc using those procedurally generated textures.”

The piece-by-piece way No Man’s Sky generates all its content leaves the door open for Hello Games or modders to add additional model parts post-release and exponentially increase the procedurally generated possibilities. While this might not say much about the current state of the game, Greg explains that this way of content generation speaks volumes about the game engine itself.

“The mindblowing thing about this generation procedure is that if they had double the number of [artists] working exclusively on [models], the game content (just for the creatures) would be hundreds of times larger,” he says. “And this fact alone shows me the capabilities and the potential that NMS game engine has.”

The full post, which includes models rendered in a viewer and a more in-depth explanation of the code behind No Man’s Sky, can be found over on the 3D Game Dev Blog.

Most Popular

LEAVE A REPLY

Please enter your comment!
Please enter your name here

More from Author

Valve unveils new SteamOS-based hardware

Valve is accelerating its jump into the hardware business. That's a...

Becoming One with Nature Takes Time and a Lot of Yoga says Pauline Jacobs

The increase in overall pollution that the planet has seen during...

Contributing to a Brighter Future by Volunterring For Environmental Societies

The increase in overall pollution that the planet has seen during...

Letting Loose and Having Fun in the Rural Villages Along the Seine in France

The increase in overall pollution that the planet has seen during...

Read Now

Valve unveils new SteamOS-based hardware

Valve is accelerating its jump into the hardware business. That's a takeaway many readers may get from today's three-in-one announcement of new Steam-branded hardware: the Steam Controller, the Steam Machine, and the Steam Frame. All three are optimized for Steam and SteamOS, but just like the Steam...

Becoming One with Nature Takes Time and a Lot of Yoga says Pauline Jacobs

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Contributing to a Brighter Future by Volunterring For Environmental Societies

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Letting Loose and Having Fun in the Rural Villages Along the Seine in France

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Exploring the Coral Reefs to Understand How Pollution Has Impacted Aquatic Life

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Cultivating an Entire Garden Over the Course of a Year and Growing it to Maturity

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Hitchhiking from one Side of the Country to the Other while on a Tight Schedule

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

What Happens when you Lose Yourself in an Unknown, Foreign Country? Advice and Tips

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Take a Deep Dive into the Alternate Lifestyle of Paris, France, with Kelly Laurence

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

A Photo Book with Andreea Martini Following her Trip from one Side of the US to the Other

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Discovering a Different Side of Laura Parks in a Beautiful Place Downtown, San Francisco

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...

Arts and Crafts – a Very Relaxing Hobby for the Kids Stuck at Home with Online Classes

The increase in overall pollution that the planet has seen during the past few years has impacted the planet in such a way that it caused a ripple effect to happen in various domains. This is exactly why right now is the moment in which all of...