No Man’s Sky: Randomly generating a unique videogame universe

How A Seemingly Impossible Game Is Possible @ Kotaku

Rather than build every ship, plant or creature by hand, the developers of No Man’s Sky created an engine that randomly (within specified boundaries) creates the world for them.

Ream pulls up a blue-ish menu with lines of code written across the screen and quickly clicks across it to pull up a very specific menu within their engine. Before I know it, he’s selected an option for trees and I’m staring at one. There’s a blueprint for a fairly standard-looking tree off on the right. He clicks a button that says “view variants.” Dozens of new trees—of different shapes, sizes, and colors—pop up on the left.

“This is our toolset,” Murray says as we scroll through the trees. “We built our own engine. It’s super crappy, but it’s kind of like Unity or something like that. We’ve written it all around procedural generation. And that’s kind of what we spent the first year, when it was just four of us, what we spent our time doing. And then the last month before the VGXs we built the trailer using that.”

We go through a few other objects that are procedurally generated in the game. Rhinos, space ships. Ream clicks “view variants” on all of them. And then he keeps clicking them and, sure enough, new variants keep showing up.

“You’re building a blueprint,” Murray said. “And that’s true of everything in the game. So say one of our artists will build something and that will take say a week. But what they get from that is every possible variant of that. So if you build a cat, you also get a lion and a tiger and a panther and things that you’ve never seen—kind of mutations beyond that.”

“Why we’re doing it is because it’s interesting to us. My attitude has been, ‘Let’s just do something crazy and go bankrupt doing it.’ That’s what I’ve always said. But I don’t wanna just make games at the same scale as Joe Danger and still be doing that in 10 years. I just want to try one big thing. So that was the attitude and that was really freeing. As a genuine thing, not like we went into it like, ‘Sure! We’ll try this and this with the mindset of and it will probably go horribly wrong but we’ll go out with a bang,’ which we still might.”

Read the whole interview here.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.