# 3de -\> st maps

**URL:** <https://forum.logik.tv/t/3de-st-maps/9247>\
**Category:** Flame Questions\
**Tags:** batch\
**Created:** [October 2, 2023, 6:02am UTC](https://forum.logik.tv/t/3de-st-maps/9247 "2023-10-02T06:02:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [October 2, 2023, 6:02am UTC](https://forum.logik.tv/t/3de-st-maps/9247/1 "2023-10-02T06:02:15Z")

</div>

Is it possible to use matchbox to interpret 3de lens distortion files to make st maps in flame?

T@gging people I think might know the answer but please jump in if you know the answer:  
@cnoellert @lewis @ALan @Stefan @Slabrie @fredwarren

---

<div class="post-metadata">

**Author:** ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)\
**Post date:** [October 2, 2023, 6:39am UTC](https://forum.logik.tv/t/3de-st-maps/9247/2 "2023-10-02T06:39:37Z")

</div>

3de provides a matchbox to do distortion. If you put an stmap image through it you can “bake” the un/distorted stamp to use is without the matchbox. The Colour Source node works fine to create a source stmap… just make sure is 32bit.

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [October 2, 2023, 7:29am UTC](https://forum.logik.tv/t/3de-st-maps/9247/3 "2023-10-02T07:29:37Z")

</div>

I never thought of that. Thanks. I’ll give it a go. Do you just set the colour source to the uv setting?

---

<div class="post-metadata">

**Author:** ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)\
**Post date:** [October 2, 2023, 7:35am UTC](https://forum.logik.tv/t/3de-st-maps/9247/4 "2023-10-02T07:35:36Z")

</div>

Just set the color source to a quad gradient so in the red channel is a ramp that goes from 0 to 1 left to right across the width of the image and same for the green channel but bottom to top. Basically describing the 0,0 1,1 UV coordinates. Blue channel has no effect but sometime I like to color it solid blue to differentiate between changed and unchanged UVs.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/f/feb7c543d9004a79e846ad1bee51dd497d5faf9c.png)

---

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [October 2, 2023, 11:16am UTC](https://forum.logik.tv/t/3de-st-maps/9247/5 "2023-10-02T11:16:11Z")

</div>

You can also use their matchbox shader to output a STmap natively.

![Screenshot from 2023-10-02 13-12-18](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/3/3b76eaf6f556d5b9bd69ba3563b753bab0404943.png)

---

<div class="post-metadata">

**Author:** ![naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@naveen](https://forum.logik.tv/u/naveen)\
**Post date:** [October 2, 2023, 1:54pm UTC](https://forum.logik.tv/t/3de-st-maps/9247/6 "2023-10-02T13:54:50Z")

</div>

So… I have to say, I haven’t done it this way before. Our process for generating the STMaps always calls for Nuke to be brought in to the mix.

Are you saying that from 3de you can get a matchbox and/or STMap that allows for the overscan area needed to avoid losing data?

---

<div class="post-metadata">

**Author:** ![allklier](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/allklier/32/4309_2.png) [@allklier](https://forum.logik.tv/u/allklier)\
**Post date:** [October 2, 2023, 2:14pm UTC](https://forum.logik.tv/t/3de-st-maps/9247/7 "2023-10-02T14:14:49Z")

</div>

I believe that was discussed here: [Issue with STmaps from Hotsprings](https://forum.logik.tv/t/issue-with-stmaps-from-hotsprings/6870)

There’s a way of doing the overscan / bounding box in 3DE as well, but it involves a manual step. Don’t have it in front of me right now.

---

<div class="post-metadata">

**Author:** ![allklier](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/allklier/32/4309_2.png) [@allklier](https://forum.logik.tv/u/allklier)\
**Post date:** [October 2, 2023, 2:21pm UTC](https://forum.logik.tv/t/3de-st-maps/9247/8 "2023-10-02T14:21:58Z")

</div>

That’s the export screen in 3DE for Flame. Note the Overscan Margin entry which defaults to original size. You have to determine the bounding box (or use reasonable default %) and update these during export, then it should work.

![Screen Shot 2023-10-02 at 10.20.02 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/d/d981ce378b76158fc925b9da8653a1c62d9be0fa.png)

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [October 2, 2023, 2:36pm UTC](https://forum.logik.tv/t/3de-st-maps/9247/9 "2023-10-02T14:36:19Z")

</div>

With the 3de export in nuke you get a wisywig view. I’ve used the guesstimate step with the matchbox before. It’s not ideal. But it does work quite well.

---

<div class="post-metadata">

**Author:** ![allklier](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/allklier/32/4309_2.png) [@allklier](https://forum.logik.tv/u/allklier)\
**Post date:** [October 2, 2023, 2:52pm UTC](https://forum.logik.tv/t/3de-st-maps/9247/10 "2023-10-02T14:52:19Z")

</div>

Hadn’t notice this before, but in the calc menu there is a script to compute the overscan:

 ![Screen Shot 2023-10-02 at 10.51.14 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/6/6ab7d30029edb14b132473e7bbe223f09961ccd0.png)

In the overview menu you can also have it visualize it on screen, though it doesn’t have a read-out of the size in that view.

Would be nice if they had a button in the export dialog that just ran that script.
