Tex Coords From XYZ: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
Redmaw (talk | contribs)
Enhanced description for node and added example image.
Redmaw (talk | contribs)
m Added link to Render State wiki page
Line 7: Line 7:
That is, it returns the current altitude of a given sample point which more than likely has been modified by displacements, such as a Power fractal shader, from its original position on the planet’s smooth surface.   
That is, it returns the current altitude of a given sample point which more than likely has been modified by displacements, such as a Power fractal shader, from its original position on the planet’s smooth surface.   


Without this information, certain shaders within Terragen such as the Surface Layer shader, might not have the correct altitude values at render time.  Click here for more information about an item’s render state.
Without this information, certain shaders within Terragen such as the Surface Layer shader, might not have the correct altitude values at render time.  Click [[Render_State|here]] for more information about an item’s render state.


Taking the default Terragen project for example, if displacements occur after the Compute terrain node in the Terrain group then it’s possible that a Surface Layer shader providing colour information for the terrain might not have the correct altitudes to apply colour or constraints.
Taking the default Terragen project for example, if displacements occur after the Compute terrain node in the Terrain group then it’s possible that a Surface Layer shader providing colour information for the terrain might not have the correct altitudes to apply colour or constraints.

Revision as of 12:02, 15 June 2021

Tex Coords From XYZ
Tex Coords From XYZ


Overview

The Tex Coords from XYZ node generates world space texture coordinates for the shader or function nodes assigned its Main Input.

That is, it returns the current altitude of a given sample point which more than likely has been modified by displacements, such as a Power fractal shader, from its original position on the planet’s smooth surface.

Without this information, certain shaders within Terragen such as the Surface Layer shader, might not have the correct altitude values at render time. Click here for more information about an item’s render state.

Taking the default Terragen project for example, if displacements occur after the Compute terrain node in the Terrain group then it’s possible that a Surface Layer shader providing colour information for the terrain might not have the correct altitudes to apply colour or constraints.


Settings:

    • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Tex Coords from XYZ shader nodes in a project.
    • Enable: When checked, the node is active and the current world space texture coordinates will be calculated for the shader or function nodes assigned to the Main input. This includes all nodes upstream from the assigned shader node.


Workflow showing a displaced terrain with and without using a Tex Coord From XYZ node.
Workflow showing a displaced terrain with and without using a Tex Coord From XYZ node.