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

Author Topic: practice exercises on 3D terrain - GPU Geometry Clipmaps  (Read 13037 times)

0 Members and 1 Guest are viewing this topic.

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
practice exercises on 3D terrain - GPU Geometry Clipmaps
« on: March 30, 2020, 03:48:08 pm »
Hello guys  :)

Still I'm working on my 3D OpenGL framework, this week I'm gonna focus on landscape;

There are many ways to make 3D terrains. The method that drew my attention most is GPU Geometry Clipmaps. It was introduced in GPU Gems 2: chapter 2, for nvidia. Here a link: https://developer.nvidia.com/gpugems/gpugems2/part-i-geometric-complexity/chapter-2-terrain-rendering-using-gpu-based-geometry .

I have implemented base blocks of their algorithm. It works fine for now, but still there is more to achieve the final result as shown in that chapter. For example, the height-map and normal-map ... etc.

Here the demo for the initial implementation:

« Last Edit: April 03, 2020, 09:06:02 pm by Mortal »

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #1 on: March 31, 2020, 11:25:13 am »
I added height-map to the terrain example. It wasn't easy for implementing height-map, especially for their terrain model, it needs other techniques to fill the crack and smooth the edges of every block level. But at the end of the road, it is achievable.


Here the latest update wireframe-demo for debugging:



« Last Edit: April 03, 2020, 09:06:21 pm by Mortal »

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #2 on: April 03, 2020, 08:40:44 pm »
The original demo from the gem 2 book, was using Puget Sound, It is located along the northwestern coast of the U.S. state of Washington. The texture has a resolution of 160kmx160km. It is a fairly big size map. I added a Puget Sound map to the final demo in this practice exercises-series. Also, I added simple gradient texture to the terrain as what the original demo has. The prototype isn't optimized at its current state right now but it is definitely a start for further improvements.


Here the final result as what was described in that chapter:



« Last Edit: April 04, 2020, 05:33:56 am by Mortal »

Power

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #3 on: April 20, 2020, 05:01:27 pm »
Impressing,
So is there any SFML involved in the making?

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #4 on: April 20, 2020, 08:15:48 pm »
thanks
Yes it is, I used the sfml window module for the window creation and UI. For the rendering, I used opengl in this project.

Elias Daler

  • Hero Member
  • *****
  • Posts: 599
    • View Profile
    • Blog
    • Email
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #5 on: April 24, 2020, 05:13:53 pm »
Great job! Looking awesome. :)
Tomb Painter, Re:creation dev (abandoned, doing other things) | edw.is | @EliasDaler

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #6 on: April 24, 2020, 07:35:51 pm »
hi elias  :)
good to see you, welcome back

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #7 on: April 03, 2021, 03:41:14 am »
re-visit old project

i added Detail-Texture & Cloud & Fog




i added simple & slow Trees & Grass Rendering

« Last Edit: April 03, 2021, 03:49:02 am by Mortal »

Mortal

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
« Reply #8 on: April 03, 2021, 03:52:58 am »
update:

testing LOD tree Rendering