SFML community forums
General => SFML projects => Topic started 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
-
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
-
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
-
Impressing,
So is there any SFML involved in the making?
-
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.
-
Great job! Looking awesome. :)
-
hi elias :)
good to see you, welcome back
-
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
-
update:
testing LOD tree Rendering
https://www.youtube.com/watch?v=udb0w9s6DjM