SFML community forums

General => SFML projects => Topic started by: Mortal on March 30, 2020, 03:48:08 pm

Title: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal 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:
https://www.youtube.com/watch?v=KmRS-wCcUvc
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal 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:


https://www.youtube.com/watch?v=j_PRxegKuJg
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal 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:


https://www.youtube.com/watch?v=VFIvYI5TeII
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Power on April 20, 2020, 05:01:27 pm
Impressing,
So is there any SFML involved in the making?
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal 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.
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Elias Daler on April 24, 2020, 05:13:53 pm
Great job! Looking awesome. :)
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal on April 24, 2020, 07:35:51 pm
hi elias  :)
good to see you, welcome back
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal on April 03, 2021, 03:41:14 am
re-visit old project

i added Detail-Texture & Cloud & Fog


https://www.youtube.com/watch?v=-sbXmwtAn7I

i added simple & slow Trees & Grass Rendering

https://www.youtube.com/watch?v=sASnUMldedo
Title: Re: practice exercises on 3D terrain - GPU Geometry Clipmaps
Post by: Mortal on April 03, 2021, 03:52:58 am
update:

testing LOD tree Rendering

https://www.youtube.com/watch?v=udb0w9s6DjM