Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Author Topic: Water Rendering  (Read 9793 times)

knackered

  • Jr. Member
  • *
  • Posts: 26
Water Rendering
« on: February 22, 2011, 04:31:33 am »

Hi guys,
something I haven't been able to figure out from your blog - are you maintaining a separate mesh quadtree for the water?
I'm guessing your logic is if the min height of the main quadtree is below sea level, consider the water quadnode valid. If the waterquad node needs splitting, split and apply the same logic to the children. Otherwise just draw it.
In other words, you maintain two mesh quadtrees - you don't hijack the main height quadtree to draw water patches?
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Water Rendering
« Reply #1 on: February 22, 2011, 05:45:53 am »

Actually, we are using both - the terrain quad-tree if there's one suitable for the required water surface LOD, and a virtual quad-tree otherwise.
Terrain based one is used to retrieve water depth, what is used as parameter in wave shaping functions.
Logged