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
3D Midpoint-displacement Terrain Generator
3D Midpoint-displacement Terrain Generator
- Attachments
-
- 3D midpoint displacement terrain generator.love
- (1.29 KiB) Downloaded 255 times
Last edited by GijsB on Thu Oct 04, 2012 7:42 pm, edited 1 time in total.
Re: 3D Midpoint-displacement Terrain Generator
Cool thing, but slooow. Maybe you should use a shader?
Re: 3D Midpoint-displacement Terrain Generator
I should but i don't know how the whole shader thing worksmode7 wrote:Cool thing, but slooow. Maybe you should use a shader?
So can somebody please give me some tutorial link xd?
Re: 3D Midpoint-displacement Terrain Generator
I also have no idea how it works, but this article by Twofold Secret might be helpful.
Re: 3D Midpoint-displacement Terrain Generator
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
Damn that's pretty sad D: , but siriously i have no idea how this 'language' even works :/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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 236 guests