
Show how to generate a random planet based on midplace displacement noise and
a simple height map color ramp. Note that you typically want to add some cloud
cover for the best effect.
Press Space / A to generate a new planet.
Press Backspace / B to view the height map.
Press Y / Y to view the color map.
Released into the public domain by Jon Watte. You may freely use this in your
own projects, but you must take responsibiltiy for your such use on your own --
the author explicitly disclaims any warranty, including any implied warranty
such as merchantability or fitness for a particular purpose.
http://www.enchantedage.com/xna-planet
2009-04-07
| Attachment | Size |
|---|---|
| ProceduralPlanet.zip | 24.34 KB |
Comments
beautiful, nice job
beautiful, nice job
Nice,
Thanks for the demo, nicely done!
Very Nice! Thank you for this
Very Nice!
Thank you for this nifty little tool.
A Question - Please excuse my 'Noobness'
I would like to know whether this code generates terrain or just terrain colours?
Thanks
BTW - the program is very beautiful.
This program generates
This program generates terrain elevation data that it turns into color data. While it generates height data, it does not render that height data. The reason is that even the tallest mountain is as good as invisible against the silhouette of the planet when viewed from space.
Adding code to handle zooming "from space to your face" would add an order of magnitude more complexity to the current code, but it's mostly a matter of elbow grease; how to do it is fairly well known. See for example http://www.interopworld.org/ptf