Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: experiment on Terrains  (Read 14555 times)

0 Members and 1 Guest are viewing this topic.

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: experiment on Terrains
« Reply #15 on: December 16, 2016, 02:23:59 am »
you welcome roccio, i really appreciate it.

but in term of performance, the demo wasn't efficient and algorithm is a bit buggy. when i start this project wasn't in my mind to optimize it, the main goal for me was to implement diamond square algorithm in CPU side because wasn't an easy to retrieve the values from GPU for the debugging propose. after i finished the demo i saw couple of places that obviously can be optimized. for instance, i send the height data which is one dimensional array twice to GPU every frame, once with pixel buffer in HeightMap class and once with array buffer in GroundMesh class. theoretically, this is inefficient since this data will be present for every active shader better to be sent only once. also pixel buffer wasn't really necessary, i just test how to implement it, like when i start learn c++ i was wondering how to use the various of STL containers and adapters, same thing with OpenGL many buffers and textures just to allocate and store data as one dimensional array or two dimensional array in GPU.

for diamond square algorithm, it has an ugly artifacts mountain tops appear pinched, this might be fixed by using filters like blur or smooth. and from where i read about this algorithm, it suggests the seed atleast for starting corners but i haven't seen any different when i tested it, may be  a personal choice. 

i will re-visit the project once again and implement these.
« Last Edit: December 16, 2016, 11:42:17 pm by Mortal »

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: experiment on Terrains
« Reply #16 on: December 18, 2016, 02:47:51 am »
minor update to fractal demo

i added mid point displacement algorithm based on Terrain Tutorial at Lighthouse3d.com. the result looks not bad. i believe with some help of morphing Filters and better texturing. it will looks awesome.

demo:

roccio

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • Email
Re: experiment on Terrains
« Reply #17 on: April 13, 2017, 12:19:08 am »
Getting really good. You should make some more mountain, but it's awesome

roccio

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • Email
Re: experiment on Terrains
« Reply #18 on: April 13, 2017, 12:43:48 pm »
Even better, but can you post some more infos?
How much is big the terrain? Are you using some sort of chunked lod?

I will follow your work with interest.