This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API Reference
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Matrix
Textures
Art Samples
Tutorials

Normalize Node


Description

This node is used to normalize an input vector, ensuring that it has a length of exactly 1 while maintaining its original direction. Normalization is crucial in various graphics and shading operations, as it prevents unintended scaling effects and ensures correct mathematical calculations involving vectors.

The Normalize node maintains vector calculation precision and visually consistency for:

  • Proper normal map shading by keeping normal vectors unit length.
  • Accurate reflection or refraction calculations
  • Directional effects, such as Fresnel or Parallax, etc.

Functionality

The Normalize node takes a vector as input and computes its unit vector:

Normalized Vector = Input / Length ( Input )

Usage Examples

Creating A Material Always Facing The Camera

Normalization is a crucial step when working with vectors. Skipping normalization can result in incorrect material behavior due to changes in camera vector length, leading to miscalculations.

For example, if we want to create an object always facing the camera, we need to construct a local coordinate system based on the camera's position relative to the object.

Since the Cross node calculates the perpendicular vector by multiplying two input vectors, without normalization, their varying lengths will cause unpredictable material transformation, making the object change in size depending on the camera position. To avoid this, always normalize vectors before performing such calculations.

The information on this page is valid for UNIGINE 2.20 SDK.

Last update: 2025-04-04
Build: ()