L3DT users' community
Large 3D terrain generator

geometryErrorThreshold - what is this for?

Got a problem or need advice?

geometryErrorThreshold - what is this for?

Postby arcanor » Thu Oct 18, 2007 6:03 pm

Where can I find documentation on the geometryErrorThreshold field in the Atlas advanced export options dialog?

I've done a search of these forums, the entire site, and the wiki searchbar, but not found anything. Is there somewhere else I should be looking?

Thanks in advance!
www.arcanoria.com - Arcanoria - Medieval Fantasy MMORPG
arcanor
New member
 
Posts: 3
Joined: Thu Oct 18, 2007 2:30 pm

Postby Aaron » Thu Oct 18, 2007 9:58 pm

Hi Arcanor,

I think geometryErrorThreshold is the same thing as the HEIGHT_ERROR argument in the atlasOldGenerateChunkFileFromRaw16 function. When Atlas is merging geometry to generate the optimised LOD mesh, the geometryErrorThreshold value sets the maximum acceptable height deviation between the shared vertex in the original geometry and the average mid-point height in the merged geometry. For a better explanation, I suggest you look into error metrics for terrain level-of-detail algorithms (geoclipmapping, ROAM, etc.)

Anyway, the upshot is that - in theory - a smaller geometryErrorThreshold will give you a more detailed and accurate terrain mesh, but with a larger file size. In reality, I'm not sure that part of GarageGames' plugin was ever wired up, so it might be using a hard-coded value. I'll see if I can find out from the developer.

To experiment with changing the height error metric, I'd suggest trying TGEA console/script functions. There is a tutorial on this in the wiki here:

http://www.bundysoft.com/wiki/doku.php?id=tutorials:torque:madcowthomas

(thanks to MadCowThomas for thew tutorial)

Cheerio,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia


Return to Help and support

Who is online

Users browsing this forum: No registered users and 50 guests