Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Landscape FAQ
By darqSHADOW
Published: December 31, 2006
Print   

Affine defines the smoothing amount and the options are:

TV_AFFINE_HIGH = 2
TV_AFFINE_LOW = 1 (default setting)
TV_AFFINE_NO = 0

The number of vertices on one side of a chunk is calculated as 256 / Precision which is one of the following:

TV_PRECISION_ULTRA= 2
TV_PRECISION_BEST = 4
TV_PRECISION_HIGH = 8
TV_PRECISION_AVERAGE = 16
TV_PRECISION_LOW = 32
TV_PRECISION_VERY_LOW = 64
TV_PRECISION_ULTRA_LOW = 128

To represent every heightmap pixel fully in the terrain we would need to map one pixel to one vertex and so make a terrain that is sized like this:

If the heightmap is 512 x 768 in size and we are using TV_PRECISION_BEST:

Width = (512 * TV_PRECISION_BEST) / 256 = (512 * 4) / 256
Length = (768 * TV_PRECISION_BEST) / 256 = (768* 4) / 256

Based upon JohnnyC's original TV3D Landscape FAQ.