Planetside Software Forums

General => Terragen Discussion => Topic started by: mhaze on June 03, 2014, 03:15:28 AM

Title: Tex coords from XYZ
Post by: mhaze on June 03, 2014, 03:15:28 AM
How and more importantly why would you use a Tex coords from XYZ node?  An example would help me understand.
Title: Re: Tex coords from XYZ
Post by: Tangled-Universe on June 03, 2014, 07:39:34 AM
Hi Mick,

TEX coords from XYZ is part of the "compute" nodes present in TG.

Here's what these compute nodes are about:

Compute normal = compute the normals of the surface (allows for slope restriction/masking)
Compute terrain = compute the normals of the surface + compute texture coordinates (allows for slope + altitude restriction/masking)
TEX coords from XYZ = compute texture coordinates (allows for altitude restriction only, since it only gives a position of a surface and not its normal)

The reason you use compute terrain after creating your terrain and/or displacements is that you want to update the renderer with fresh info on the normals of each face, but also the coordinates of these faces for texturing, so that the textures align with the displacement.
Title: Re: Tex coords from XYZ
Post by: mhaze on June 03, 2014, 03:23:22 PM
Cheers TU,

Thanks for that - makes a bit more sense now. Still not entirely sure when or why I might use it :o But at least if the occasion arises I'll know to use it!