# How can I simulate affine texture mapping?

**URL:** <https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388>\
**Category:** Rendering\
**Tags:** uv-coordinates, unreal-engine, question\
**Created:** [June 2, 2016, 2:50pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388 "2016-06-02T14:50:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SFtheWolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SFtheWolf](https://forums.unrealengine.com/u/SFtheWolf)\
**Post date:** [June 2, 2016, 2:50pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/1 "2016-06-02T14:50:24Z")

</div>

![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/4/c4d41764307de4f22201aab9dab74a7f37f78b43.jpeg)

I would like to, for retro artistic effect, apply textures using the perspective-incorrect Affine method. The problem is I want to be able to do this in a material, and try as I might I can’t figure out a way to transform the UV coordinates such that they look like they were linearly interpolated with no knowledge of the depth buffer. I feel like this should be a small solution but I’m not finding it. Any ideas?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1aa296f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1aa296f](https://forums.unrealengine.com/u/anonymous_user_f1aa296f)\
**Post date:** [December 5, 2017, 8:21pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/2 "2017-12-05T20:21:06Z")

</div>

Bump? I would also like to know how to do this!

---

<div class="post-metadata">

**Author:** ![Roemmelito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roemmelito](https://forums.unrealengine.com/u/Roemmelito)\
**Post date:** [July 13, 2018, 6:55pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/3 "2018-07-13T18:55:18Z")

</div>

Bump again, seems no one knows how maybe? I would like to do this just to play around with!

---

<div class="post-metadata">

**Author:** ![SFtheWolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SFtheWolf](https://forums.unrealengine.com/u/SFtheWolf)\
**Post date:** [August 2, 2018, 11:24pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/4 "2018-08-02T23:24:01Z")

</div>

to answer my own question: it’s in the imminently incoming 2.0 update for my vfx package Oldskooler, and also here’s how it works:

 ![249301-affine-code.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/2/8a2c3e10a246756301220ff53bf0069acc537cd3.jpeg)

---

<div class="post-metadata">

**Author:** ![Roemmelito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roemmelito](https://forums.unrealengine.com/u/Roemmelito)\
**Post date:** [August 3, 2018, 12:55am UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/5 "2018-08-03T00:55:12Z")

</div>

Thanks man!

---

<div class="post-metadata">

**Author:** ![xcloudx01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcloudx01](https://forums.unrealengine.com/u/xcloudx01)\
**Post date:** [October 12, 2018, 1:20pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/6 "2018-10-12T13:20:41Z")

</div>

Any news on the 2.0 update?

---

<div class="post-metadata">

**Author:** ![SFtheWolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SFtheWolf](https://forums.unrealengine.com/u/SFtheWolf)\
**Post date:** [October 14, 2018, 11:54pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/7 "2018-10-14T23:54:10Z")

</div>

I’m still working on it as well as updates for my other products. the work is mostly finished but I’m disabled and have been going through another bad health stretch so it’s been hard to put myself together enough to work. I’m determined to get it done I just don’t know when

---

<div class="post-metadata">

**Author:** ![xcloudx01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcloudx01](https://forums.unrealengine.com/u/xcloudx01)\
**Post date:** [October 15, 2018, 6:34am UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/8 "2018-10-15T06:34:27Z")

</div>

That’s okay, thank you very much for the update. Get well soon man :3.  
I have one quick question if i may; Does the vertex lighting part of oldskooler support multiple light sources at once? I’m tempted to buy it but was curious if it does or not. Thanks

---

<div class="post-metadata">

**Author:** ![SFtheWolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SFtheWolf](https://forums.unrealengine.com/u/SFtheWolf)\
**Post date:** [October 15, 2018, 7:25am UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/9 "2018-10-15T07:25:59Z")

</div>

thank you! (girl actually) it doesn’t support multiple light sources currently but enough people have asked about it I should put it in the next one

---

<div class="post-metadata">

**Author:** ![xcloudx01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcloudx01](https://forums.unrealengine.com/u/xcloudx01)\
**Post date:** [October 15, 2018, 10:27am UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/10 "2018-10-15T10:27:53Z")

</div>

That would be awesome 😃 I’m looking forward to it if you can. The game i’m making atm i’m aiming to look like a psx game, so i’m excited to put oldskooler in it for more authentic era-appropriate effects. Really like what is shown in the demo, especially the transparency grid

---

<div class="post-metadata">

**Author:** ![PixelDough](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PixelDough](https://forums.unrealengine.com/u/PixelDough)\
**Post date:** [May 8, 2019, 4:58pm UTC](https://forums.unrealengine.com/t/how-can-i-simulate-affine-texture-mapping/359388/11 "2019-05-08T16:58:01Z")

</div>

Hope everything is going alright. I’m very tempted to buy your asset once this is in 🙂 Amazing work!
