# Converting vectors to tangent or world space. (Explanation please?)

**URL:** <https://forums.unrealengine.com/t/converting-vectors-to-tangent-or-world-space-explanation-please/360280>\
**Category:** Rendering\
**Tags:** world, unreal-engine, transform, vector, question\
**Created:** [June 10, 2016, 6:13am UTC](https://forums.unrealengine.com/t/converting-vectors-to-tangent-or-world-space-explanation-please/360280 "2016-06-10T06:13:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheeplie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sheeplie](https://forums.unrealengine.com/u/Sheeplie)\
**Post date:** [June 10, 2016, 6:13am UTC](https://forums.unrealengine.com/t/converting-vectors-to-tangent-or-world-space-explanation-please/360280/1 "2016-06-10T06:13:17Z")

</div>

Hi, in the tutorial I’m watching, the Vector Transform node is used to change a vector from tangent to world space. I’ve taken a look at the documentation for this “Transform” node:

_“The Transform expression converts a three-channel vector value from one reference coordinate system to another.  
By default, all shader calculations in a material are done in tangent space. The vector constants, camera vector, light vector, etc are all transformed to tangent space before being used in a material. The Transform expression allows these vectors to be transformed from tangent space to world-space, local-space, or view-space coordinate systems. In addition, it allows world-space and local-space vectors to be transformed to any of the other reference coordinate systems.”_

Here’s the example picture that can be found on the wiki page.

[https://docs.unrealengine.com/latest/images/Engine/Rendering/Materials/ExpressionReference/VectorOps/TransformExample1.jpg](https://docs.unrealengine.com/latest/images/Engine/Rendering/Materials/ExpressionReference/VectorOps/TransformExample1.jpg)

Can anyone walk me through exactly what is going on here? I understand that tangent space is “up and down” while world space can be in any number of directions, but I don’t understand how it could be applied to something like a flat material. And I don’t understand how you could just take an arbitrary constant vector and convert it to world space- it seems like just a number, it doesn’t actually /exist/ anywhere. Are the “tangent / world” spaces based on the flat material themselves or the object instance they’re applied to?

Maybe someone could carefully walk me through exactly what is happening in this example. I don’t have a lot of experience with higher-level math terms so forgive me.
