Page 1 of 1
3D Midpoint-displacement Terrain Generator
Posted: Mon Oct 01, 2012 4:59 pm
by GijsB
Nothing really special, but it show's you how the midpoint displacement algorithm works. And you change some values with 'q,w,e,a,s,d,z,c' and you can generate an heightmap with 'space'.
Edit : Optimisation! Got rid of some unneccesary average calculating 4-10-2012
Re: 3D Midpoint-displacement Terrain Generator
Posted: Wed Oct 03, 2012 11:07 am
by mode7
Cool thing, but slooow. Maybe you should use a shader?
Re: 3D Midpoint-displacement Terrain Generator
Posted: Wed Oct 03, 2012 3:05 pm
by GijsB
mode7 wrote:Cool thing, but slooow. Maybe you should use a shader?
I should but i don't know how the whole shader thing works
So can somebody please give me some tutorial link xd?
Re: 3D Midpoint-displacement Terrain Generator
Posted: Thu Oct 04, 2012 8:21 pm
by mode7
Same here!
Re: 3D Midpoint-displacement Terrain Generator
Posted: Thu Oct 04, 2012 9:33 pm
by Santos
I also have no idea how it works, but
this article by Twofold Secret might be helpful.
Re: 3D Midpoint-displacement Terrain Generator
Posted: Fri Oct 05, 2012 1:51 am
by Ensayia
Sadly there's no current 'tutorial' for using shaders to any extent. The largest issue being that shaders have to be coded in the GLSL language which is nothing like Lua. You also have to dig though Google for the GLSL documentation on how the many enumerated datatypes work.
Re: 3D Midpoint-displacement Terrain Generator
Posted: Sat Oct 06, 2012 1:30 pm
by GijsB
Ensayia wrote:Sadly there's no current 'tutorial' for using shaders to any extent. The largest issue being that shaders have to be coded in the GLSL language which is nothing like Lua. You also have to dig though Google for the GLSL documentation on how the many enumerated datatypes work.
Damn that's pretty sad D: , but siriously i have no idea how this 'language' even works :/