Jump to content


discreet lod terrain engine


4 replies to this topic

#1 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 353 posts

Posted 17 February 2010 - 03:00 PM

Posted Image


Description
Hi everyone this is a terrain engine i am working on since a month or so, it based on
discreet meshes with different level of detail, actually they are 3 , 100% , 50% ,20%
the color coding is , red, green blue in order of percentage , i still have cracks here and there
and i am thinking to a way to solve this problem.
The algorithm takes a bitmap , chops it by 32x32 patches and for each patch computes the level of detail, then during rendering time the distance from the observer is computed and the corresponding lod is selected for every patch, the patches are rendered using vertex arrays, soon to be converted in vbo.
I get about 800 fps with a 256x256 terrain divided into 64 patches of 32x32 surfaces
All the level of detail is computed off line and is quite intensive it took 3 mins to create the terrain from a 256x256 bitmap
Bye.

#2 Sol_HSA

    Senior Member

  • Members
  • PipPipPipPip
  • 510 posts
  • LocationNowhere whenever

Posted 18 February 2010 - 07:11 PM

3 minutes to turn 64k samples into a heightfield?
What kind of processing are you doing?
http://iki.fi/sol - my schtuphh

#3 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 353 posts

Posted 18 February 2010 - 08:14 PM

Its not a simple grid division, once the bitmap is acquired , each patch is converted into a polygonal mesh , and for this mesh, 3 different levels of detail are computed, 100%, 50%,20% , red, green and blue , in the screenshot , its not a simple level of detail algorithm, it tries to mantain the shape of the current mesh, lowering the number of surfaces, at a required percentage, after that, a function for refinement of normals at border is executed, in fact without that , patches of terrain would be clearly visible.
I am working of making cracks disappearing.
i just loaded a 512x512 bitmap and it took 12 mins , but it is a big map to wander in it
Obviously, after the bitmap is processed i load the file containing processed meshes, i don't wait 12 mins to see modificiations
each time i run the program

#4 roel

    Senior Member

  • Members
  • PipPipPipPip
  • 698 posts

Posted 18 February 2010 - 11:07 PM

What is your LOD algorithm? Collapsing edges shared by faces with a similar normal?

#5 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 353 posts

Posted 18 February 2010 - 11:30 PM

It is based on quadric error metric , vertices are collapsed , nod edges.
I am reading that dx11 will support hardware tessellation, my algorithm is already obsolete :-/
that was fast damn it...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users