Which Terrain?
by Barry Gallagher · in Torque Game Engine Advanced · 01/08/2008 (12:26 am) · 28 replies
Basically I am making a racing game that requires terrain that has normal maps and fairly high resolution terrain for smooth slopes and such. Say with a sqauresize of 4 or less.
Which terrain should I use?
-Legacy
-Atlas
-Atlas2
Which terrain should I use?
-Legacy
-Atlas
-Atlas2
About the author
#22
@JC
TerrainBlock is painfully slow because it was designed for the original generation of 3d acceleration. When 3D cards just did rasterization and you wanted to process the fewest triangles possible. In the end TerrainBlock on each frame packs up individual triangles into a dynamic vertex buffer and sends them off to the card to be rendered. The process of selecting and packing the triangles is extremely CPU intensive.
The 'patch' i'm working on goes about it using the realities of modern 3D cards. Modern cards love triangles... tons of triangles in huge batches. The GForce 7 series of cards can process more than 7 million triangles per frame at 30fps. It is extremely rare to find a game to be triangle bound... its always fillrate or draw calls.
With this in mind my change keeps things simple. All the geometry is packed in the biggest possible static vertex buffers and we do no geometric LOD. This works surprisingly well... you remove all the CPU overhead and put the work squarely on the back of the card.
I'll post more as i get the changes merged in and tune up the clipmap code.
03/22/2008 (10:40 am)
@DaveQuote:1) If the new mega terrain does all this stuff does that mean Atlas2 is effectively dead?Not at all. Its great if you need massive amounts of high detailed, high performance, paging terrain. It just has the downside of larger data files and longer turn around time in editing.
@JC
TerrainBlock is painfully slow because it was designed for the original generation of 3d acceleration. When 3D cards just did rasterization and you wanted to process the fewest triangles possible. In the end TerrainBlock on each frame packs up individual triangles into a dynamic vertex buffer and sends them off to the card to be rendered. The process of selecting and packing the triangles is extremely CPU intensive.
The 'patch' i'm working on goes about it using the realities of modern 3D cards. Modern cards love triangles... tons of triangles in huge batches. The GForce 7 series of cards can process more than 7 million triangles per frame at 30fps. It is extremely rare to find a game to be triangle bound... its always fillrate or draw calls.
With this in mind my change keeps things simple. All the geometry is packed in the biggest possible static vertex buffers and we do no geometric LOD. This works surprisingly well... you remove all the CPU overhead and put the work squarely on the back of the card.
I'll post more as i get the changes merged in and tune up the clipmap code.
#23
Best,
Dave.
03/23/2008 (5:47 am)
JC and Tom, thank you both very much. Very useful info, I'll keep an eye out for that patch. I guess it will appear in the next Beta?Best,
Dave.
#24
03/23/2008 (1:42 pm)
@Dave - I don't think it will be in the next beta... but it will be out sometime after that.
#25
Tom , i would like to hear your opinion about this. If making the game to run on Xbox360 it's better to use Atlas/Atlas2?Is this right?
03/24/2008 (3:30 am)
I still haven't worked much with terrains but this thread is quite interesting. As I read everything above,Tom , i would like to hear your opinion about this. If making the game to run on Xbox360 it's better to use Atlas/Atlas2?Is this right?
#26
03/24/2008 (3:37 am)
OK thanks Tom.
#27
03/24/2008 (4:49 am)
@Picasso - I don't think there are any hard and fast rules. As of this time i don't think Atlas has been shipped in a game on the 360, but TerrainBlock has (at least in ThinkTanks). Both should work fine... i would choose based on your needs.
#28
03/24/2008 (5:21 am)
I see, Thanks ,Tom
Torque 3D Owner J.C. Smith