# VectorTools v1.1

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Erwan Leroy
A suite of tools for creating and manipulating Vectors, UV maps and Normal maps. Includes a UV generator, UV to Vector convertions, Normals generator, and more. (updated)
Requirements:
10.0, 9.0, 8.0 or later
Linux, Mac, Windows
14 May 2016
2519

A full breakdown of each tool and tutorials are available here: http://erwanleroy.com/vector-tools-for-nuke-tutorials-and-math/

Tools included:

Luma_to_Normals: Converts any image to normals, using it's Luma Channel. Provides most accurate results used on displacement maps or Zdepth passes.

UV_Map_Generator: Generates a default UV map at any resolution. Can be used to run through a lens distortion in another software or any sort of distorion that can then be re-applied with an STMap node.

UV_MAP_Layer: Similar to UV_Map_Generator, but adds the UV map in a layer to an input image.

UV_to_Vectors: Converts a distorted UV map to motion vectors.

Vectors_to_UV: Converts Motion Vectors to an UV map.

VectorTransform: Like Nuke's default transform, but will rotate vectors and scale them accordingly.

vector3DMathExpression: A NoOp node with expressions to calculate a 3D vector between 2 3D points, as well as it's magnitude.

Vectors_Direction: An utility to rotate 2D vectors such as motion vectors, and flip them if necessary.

Vectors_Magnitude: An utility to see the magnitude of motion vectors, usually simply as information for the artist.

Vectors_Normalize: Will scale every vector in a vector pass so that each vctor's magnitude is 1, while keeping the direction. Works on 2D and 3D vectors.

Vector_to_Degrees: Gives you an angle value (0-360) for a given channel. Can be used to generate Anisotropy maps from vectors for CG.

Update 2016/05/14:

-Fixed Vectors_Normalize to normalize every vector, not only the ones too long.

0 # iMan Javaherypour 2016-05-02 08:14
Thanks!

0 # Caleb Clark 2018-01-26 00:39
Thanks for posting this Erwan. I keep using your tools all the time and end up redownloading them at every studio i am at.

0 # yun-ling WANG 2019-06-02 15:02
Thank you!

0 # Erwan Leroy 2019-09-19 22:31
Most of these tools and more are now part of: https://github.com/mapoga/nuke-vector-matrix (except Luma to normals, which I should add soon).

You have no rights to post comments

We have 4278 guests and 152 members online