# Material stretching

**URL:** <https://forums.unrealengine.com/t/material-stretching/472794>\
**Category:** Rendering\
**Tags:** matrix, Script, unreal-engine, Blueprint, question, vectors\
**Created:** [October 11, 2020, 11:57pm UTC](https://forums.unrealengine.com/t/material-stretching/472794 "2020-10-11T23:57:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_32e79795](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32e79795](https://forums.unrealengine.com/u/anonymous_user_32e79795)\
**Post date:** [October 11, 2020, 11:57pm UTC](https://forums.unrealengine.com/t/material-stretching/472794/1 "2020-10-11T23:57:40Z")

</div>

Hi everyone!

Hou could I stretch blue dots to the entire texture (to all corners of the texture)  
I saw similar functionality in the Photoshop program

 ![318317-безымянныи.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/e/84edffc958bfb0a1745dd399ed13a06ab237106d.png)

I have the coordinates of all 4 blue points.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32e79795](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32e79795](https://forums.unrealengine.com/u/anonymous_user_32e79795)\
**Post date:** [October 12, 2020, 12:01am UTC](https://forums.unrealengine.com/t/material-stretching/472794/2 "2020-10-12T00:01:07Z")

</div>

(I need to convert the whole texture just to the part, that looks like trapezoid)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 12, 2020, 7:54am UTC](https://forums.unrealengine.com/t/material-stretching/472794/3 "2020-10-12T07:54:27Z")

</div>

If you mean ‘make the image fit my texture’ you need to make a new asset with the texture the correct size. If you mean ‘stretch the texture in the material’, then you need to use the TextureCoordinate node.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32e79795](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32e79795](https://forums.unrealengine.com/u/anonymous_user_32e79795)\
**Post date:** [October 12, 2020, 11:44am UTC](https://forums.unrealengine.com/t/material-stretching/472794/4 "2020-10-12T11:44:33Z")

</div>

Yes, "Stretch the texture in the material.

From first picture to second, but I am bad at the material nodes, so I really dont get, how I could do it. If you could show me your material nodes, it would be great

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 12, 2020, 11:57am UTC](https://forums.unrealengine.com/t/material-stretching/472794/5 "2020-10-12T11:57:58Z")

</div>

Ok, these are just texture pictures, do you have a material? Are you putting it on a mesh?

Are you trying to fix the texture inside the material? It would be easier to just start with the correct texture.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32e79795](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32e79795](https://forums.unrealengine.com/u/anonymous_user_32e79795)\
**Post date:** [October 12, 2020, 12:06pm UTC](https://forums.unrealengine.com/t/material-stretching/472794/6 "2020-10-12T12:06:33Z")

</div>

I need correctly mapping this picture, I am trying to do “Coyote effect” like here: [Wile E. Coyote Effect | Matt Stark’s Game Development Portfolio](https://matt.stark.scot/2019/11/06/wile-e-coyote-effect.html)

But I don`t know, how to use matrices for texture, so I am trying to stretch texture

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 12, 2020, 12:14pm UTC](https://forums.unrealengine.com/t/material-stretching/472794/7 "2020-10-12T12:14:25Z")

</div>

He isn’t stretching the texture. The texture is just applied to the wall, the perspective in the engine does the stretching.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32e79795](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32e79795](https://forums.unrealengine.com/u/anonymous_user_32e79795)\
**Post date:** [October 12, 2020, 12:51pm UTC](https://forums.unrealengine.com/t/material-stretching/472794/8 "2020-10-12T12:51:16Z")

</div>

![318377-снимок-экрана-2020-10-12-154939.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/c/88c95e4ecd4a863e0e23a49a8131704ffef9a50a.jpeg)

I tried to do the same code for material, but nothing happens… where did i go wrong?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 12, 2020, 1:37pm UTC](https://forums.unrealengine.com/t/material-stretching/472794/9 "2020-10-12T13:37:34Z")

</div>

Like I say, I think the texture is just placed directly on the mesh ( just an albedo plugged into the color ). The perspective is handled by the engine.
