Scalar to Vector: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
Updated descriptions and added example images.
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:IMPORT]]
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Convert</categorytree></div>
='''Scalar to Vector'''=


[[Image:drex_module_109_image_0.png|485pxpx|Scalar to Vector]]
[[File:ScalarToVector_00_GUI.png|none|470px|Scalar to Vector]]


'''Node Description & Purpose: '''<br /> The Scalar to colour/vector nodes convert the Input scalar into a colour or vector, respectively. This conversion happens according to the node input type conversion rules which are described [[Node Input Type Conversion|here]].<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes have no other settings apart from the Input node.


__NOTOC__
== Overview ==
<!-- imported from file: module_109.html-->
The Scalar to vector node converts the Input scalar into a vector. This conversion happens according to the node input type conversion rules which are described in the [[Node Input Type Conversion]] documentation.
 
When converting a scalar to a vector, each component of the vector is simply set to the value of the scalar :
<ul>
vector.x becomes scalar <br /n>
vector.y becomes scalar <br /n>
vector.z becomes scalar <br /n>
</ul>
 
 
{|
|-
| [[File:ScalarToVector_02_SmoothVorToVecNodeNetwork.jpg|none|800px|Node network view of Smooth voronoi scalar function node assigned to Scalar to vector node, then displaced with Vector displacement shader.]]
|-
| [[File:ScalarToVector_01_SmoothVorToVecRender.jpg|none|800px|Render showing Smooth voronoi scalar function assigned to Scalar to vector node, then displaced with Vector displacement shader.]]
|}
 
 
These nodes have no other settings apart from the Input node.
 
 
'''Settings:'''
 
*'''Name: '''This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Scalar to Vector nodes in a project.
*'''Enable:''' When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.
 
<br /n>
 
 
[[Category:Convert]]

Latest revision as of 22:47, 16 March 2022

Scalar to Vector
Scalar to Vector


Overview

The Scalar to vector node converts the Input scalar into a vector. This conversion happens according to the node input type conversion rules which are described in the Node Input Type Conversion documentation.


When converting a scalar to a vector, each component of the vector is simply set to the value of the scalar :


Node network view of Smooth voronoi scalar function node assigned to Scalar to vector node, then displaced with Vector displacement shader.
Node network view of Smooth voronoi scalar function node assigned to Scalar to vector node, then displaced with Vector displacement shader.
Render showing Smooth voronoi scalar function assigned to Scalar to vector node, then displaced with Vector displacement shader.
Render showing Smooth voronoi scalar function assigned to Scalar to vector node, then displaced with Vector displacement shader.


These nodes have no other settings apart from the Input node.


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Scalar to Vector nodes in a project.
  • Enable: When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.