Live data from Hacker News

Realistic terrain in 130 lines of JavaScript

playfuljs.com

21–30 of 57 posts

Re: Realistic terrain in 130 lines of JavaScript

#25
post #18
post #3

Don't miss the demo: http://www.playfuljs.com/demos/terrain/

Is there any way to control the demo? It doesnt seem to respond to mouse or keyboard input.

I made a jsfiddle and added dat.gui http://workshop.chromeexperiments.com/examples/gui/#1--Basic... so you can modify the "detail" parameter to change the terrain without requiring a page refresh http://jsfiddle.net/kachhalimbu/br8Xd/1/ Full screen result here http://jsfiddle.net/kachhalimbu/br8Xd/1/embedded/result/

Re: Realistic terrain in 130 lines of JavaScript

#27

Just a small note, not to sound snooty, just to educate people on what realistic terrain looks like... This is what midpoint displacement looks like as a heightmap: http://imgur.com/ksETpO0,7gykFEV#0 This is what realistic terrain looks like (this is based on real-world heightmap data): http://imgur.com/ksETpO0,7gykFEV#1 That said, midpoint displacement, perlin/simplex noise, etc are good for modeling terrain at a le…

Is this the same algorithm for the cloud filter from Adobe Photoshop?

Re: Realistic terrain in 130 lines of JavaScript

#28
post #27

Just a small note, not to sound snooty, just to educate people on what realistic terrain looks like... This is what midpoint displacement looks like as a heightmap: http://imgur.com/ksETpO0,7gykFEV#0 This is what realistic terrain looks like (this is based on real-world heightmap data): http://imgur.com/ksETpO0,7gykFEV#1 That said, midpoint displacement, perlin/simplex noise, etc are good for modeling terrain at a le…

Is this the same algorithm for the cloud filter from Adobe Photoshop?

I believe photoshop uses Perlin noise (could be wrong)

Re: Realistic terrain in 130 lines of JavaScript

#30

Just a small note, not to sound snooty, just to educate people on what realistic terrain looks like... This is what midpoint displacement looks like as a heightmap: http://imgur.com/ksETpO0,7gykFEV#0 This is what realistic terrain looks like (this is based on real-world heightmap data): http://imgur.com/ksETpO0,7gykFEV#1 That said, midpoint displacement, perlin/simplex noise, etc are good for modeling terrain at a le…

this looks more like perlin noise to me...
Post reply on HN