Scalar to Vector: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
jrfconvert import
 
Redmaw (talk | contribs)
Updated descriptions and added example images.
 
(4 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]]
__NOTOC__
 
<!-- imported from file: module_109.html-->
 
== 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 :
<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.