# Object aligned textures how?

**URL:** <https://forums.unrealengine.com/t/object-aligned-textures-how/448635>\
**Category:** Rendering\
**Tags:** object, mapping, unreal-engine, question\
**Created:** [May 8, 2019, 4:57pm UTC](https://forums.unrealengine.com/t/object-aligned-textures-how/448635 "2019-05-08T16:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VKleinMP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VKleinMP](https://forums.unrealengine.com/u/VKleinMP)\
**Post date:** [May 8, 2019, 4:57pm UTC](https://forums.unrealengine.com/t/object-aligned-textures-how/448635/1 "2019-05-08T16:57:06Z")

</div>

I need object (NOT world) aligned texture mapping. It should take the size from object coordinates (LIKE world aligned from world), ignoring UVs and should live in local object space so it sticks on the objects (NOT LIKE world aligned where you move and rotate objects through the mapping).  
Pinning the position of the mapping onto the objects is easy:  
simply subtract ObjectPivotPoint from AbsoluteWorldPosition and you get object space, BUT  
rotation is very tricky. How to do it and get kind of 3samax “realworld” type mapping, sticking to the objects but scaled by object space?

Before you ask I’m getting a lot of runtime imported objects into the engine and need to assign aligned and real size scaled textures to them.  
.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11ffaa72](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11ffaa72](https://forums.unrealengine.com/u/anonymous_user_11ffaa72)\
**Post date:** [May 27, 2019, 11:56am UTC](https://forums.unrealengine.com/t/object-aligned-textures-how/448635/2 "2019-05-27T11:56:33Z")

</div>

You need to transform the result of your subtraction from world space into local space using the Transform node.

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [March 14, 2020, 3:33pm UTC](https://forums.unrealengine.com/t/object-aligned-textures-how/448635/3 "2020-03-14T15:33:06Z")

</div>

Leaving this here to not let other people lose time for nothing, its WorldAlignedTexture with small changes to make ObjectAlignedTexture, the only changes are in red.

 ![297872-asd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/4/86473f7952c8b84c90556e05731a02aad56b97d7.png)
