Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Huge terrains #467629
08/17/17 22:46
08/17/17 22:46
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Hi,
I freshly backed a terrain system for first person cameras I half developed some time ago.

It consists on an equilateral triangled grid that is moved and oriented in reference to a view so its whole mesh is potentially visible does not matter the direction you look at.



The grid is a 180 degrees hexagonal arc of triangles with four fixed LOD steps (12.5%-25%-50% of view range) in a single mesh. It is moved over a fixed grid measured by the size of the triangles of the last lod step (X:2xHeight, Y:Width) in a way that those vertex always fit certain positions so its background hexagonal structure remains unchanged even if the model is moved. Same happens when it is rotated in 60 degrees steps. This last fact encoureged me to try it out.

This model is generated procedurally in reference to the view fustrum and has certain tessellation control so it can be as detailed as desired (2K to 55K tris).

The terrain is created flat and its altitude is computed into its materials vertex shader. The geometry is backed in a volume texture (up to 4x2048x2048x16) that gives a good relative definition for the huge terrain it can be.

I use two vtex channels for world space normals, one for shadow map and altitude in the last. I sample the vtex in a 3x3 gaussian weighted manner so its low height resolution gets disimulated. The normal and shadow maps pixel rates get blurred by the same operation too.

The texture consists on a seamless horizontal sand detail map and a tricked triplanar projected texture for cliff details.

3dgs statisticss states that the most tessellated terrain runs in 0.1 ms in my not that bad nVidiaGTX660.

I built the vtex with an evaluation version of L3DT. Pretty good results but hard and long to learn. These things need hours of automatic and hand made processes. Render a 8K^2 terrain takes hours. The drawing tools are not very good. Bad things for a test&fail learning method. I finally built a 4K^2 texture for this demo (4x1024x1024x16) because I had no patience enough xP

DOWNLOAD DEMO
A bit boring (but awesome!) seamless circuit.
mouse -> look around
WSAD -> move around
RF -> camera height
shift -> run
space -> jump
1 -> show normalmap
2 -> show shadowmap
3 -> show cliff details
4 -> show heightmap




Re: Huge terrains [Re: txesmi] #467631
08/17/17 23:27
08/17/17 23:27
Joined: Feb 2011
Posts: 124
Germany Nrw Herford
HenWoll Offline
Member
HenWoll  Offline
Member

Joined: Feb 2011
Posts: 124
Germany Nrw Herford
There is not much to say ,It is simply beautiful and looks even up-to-date.
Here can you see really good the glossmap and in the first time i see the lod in realtime ,

Nice work !

Re: Huge terrains [Re: HenWoll] #467637
08/18/17 11:06
08/18/17 11:06
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
thanks! laugh

Re: Huge terrains [Re: txesmi] #467642
08/18/17 15:00
08/18/17 15:00
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
looks great txesmi! laugh


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Huge terrains [Re: painkiller] #467650
08/18/17 20:43
08/18/17 20:43
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
thank you!

Re: Huge terrains [Re: txesmi] #467759
08/27/17 20:04
08/27/17 20:04
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
I thought a multitexture shader based on a volume texture and a single channel mask could work but three-dimensinal linear interpolated samples kill the framerate frown


edited___
Much faster if I perform a two-dimensonal linear interpolation myself crazy

Last edited by txesmi; 08/27/17 20:09.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1