- Home /
Procedual Terrain
I know that I am going to get hate for this post ("oh why didn't you search google?") well don't ask that question because I already have. I've been out of coding unity javascript for several months so please don't hate me if I am a little slow.
Now that that is out of the way: I would like to create a procedurally generated planet. And I want to do it from scratch. I know that I should use the new perlin function in unity, but I don't know how. The end goal hopefully being something with a base ocean level, hills mountains and such. Any kind of help would be appreciated if you can offer it. Remember that I am a javascript programmer, so any resources that you find/provide (if you fell necessary) will be best in javascript. Thanks in advance!
First off: a big sphere with features like mountains and water generally is a planet the main goal being to randomly generate these features Secondly: I know that there is a terrain tool but it does not work for this idea.
it's almost impossible to help you unless you LOST AN I$$anonymous$$AGE of, very generally, what sort of game you are trying to make.
Please refer to the video I linked in my answer. Because $$anonymous$$ajor said 'Perlin-Noise', the video should be somewhat accurate in its representation of his goal. It would be very helpful if you would tell $$anonymous$$ajor how to generate Perlin-Noise inside Unity and apply it to an object.
Answer by Hyperion · Oct 05, 2013 at 12:15 AM
(Sorry, I don't know how to use perlin, but:) I would suggest storing many objects inside an array and at game start create a planet through script. That is the 'base ocean' would be the sphere, then you could have mountain objects and so on. It's not a convenient way of generating a planet, but it's the only way I could think of.
OOOOHHHHHH! I just saw a planet made of perlin noise and now I understand the concept. Create a basic sphere and give it a texture of perlin noise. Perlin noise cannot generate a planet on it's own. Then you can create a displacement map based on that noise and in short, you have yourself a basic planet. I saw this video:
http://www.youtube.com/watch?v=1RqzuhWPwe8
I'm sure you already saw this, but on the top left corner.... There are multiple applications, not just for a planet.
I'll give it a try tomorrow. I'll post an update down here then. :)
Your answer
Follow this Question
Related Questions
Creating random planet textures 3 Answers
How to create a terrain in a sphere with Perlin Noise 0 Answers
Procedural Island Terrain Generation 2 Answers
Attempting terrain generation 1 Answer
Changing terrain texture at runtime 1 Answer