# Camera tracking and UV unwrap techniques

**URL:** <https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880>\
**Category:** Flame Questions\
**Created:** [April 14, 2021, 9:00pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880 "2021-04-14T21:00:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [April 14, 2021, 9:00pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/1 "2021-04-14T21:00:31Z")

</div>

Checking out the new Camera Analysis now. Question for you @La_Flame. I’m really keen to reproduce the PFTrack Texture Extraction technique but in Flame.

So the Perspective Grid does what I want. Track something, set it to 2D, Invert, BOOM. You can paint on the texture of the perspective grid and un-invert downstream.

Question is, can you do this with the new Camera Analysis? I can make a Perspective Grid the child of the Flame 2022 Trackers Axis, and the Perspective Grid now moves on the same plane as the ground. Awesome. But when I go to hit the Invert button, nothing happens. Any idea how we can merge the 2 tools, or, how I can effectively paint on an extracted texture of a Perspective Grid or Geometry generated by Camera Analysis?

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [April 14, 2021, 9:10pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/2 "2021-04-14T21:10:59Z")

</div>

In the past the way I’ve gotten around this with flat surfaces has been to

1. Position an image correctly in 3D space to the surface you want to unwrap.

2. Project the scene on to that image with your preferred method.

3. parent a new camera with that image.

4. Switch render out camera to your new camera and position it so it records as much or as little as you want to work on.

5. Paint that output to your hearts content.

6. Duplicate your first action, adding your painted output as a layer.

7. Project painted output from the position of the camera parented under your correctly aligned image plane using your preferred method.

…guessing you know this already but figured I’d write it down anyway.

---

<div class="post-metadata">

**Author:** ![kirk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kirk/32/151_2.png) [@kirk](https://forum.logik.tv/u/kirk)\
**Post date:** [April 14, 2021, 9:42pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/3 "2021-04-14T21:42:53Z")

</div>

This _sounds_ like a much smarter version of what I do, which is to position spheres in space feeding the matte output and track those with a downstream perspective grid (set to 4 point), paint, invert grid, etc.

It felt smart, but I’ve always suspected there was a smarter way.

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [April 14, 2021, 10:03pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/4 "2021-04-14T22:03:12Z")

</div>

Like most things it’s whatever works. I like the projection technique since it take guess work out of things. You know it will go back correctly and you have control over texel density by virtue of your camera position and resolution @kirk

---

<div class="post-metadata">

**Author:** ![Josh\_Laurence](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/josh_laurence/32/1243_2.png) [@Josh\_Laurence](https://forum.logik.tv/u/Josh_Laurence)\
**Post date:** [April 14, 2021, 10:09pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/5 "2021-04-14T22:09:49Z")

</div>

Oh! That’s a cool other option. Nice tip. I’m totally going to try that if I get into a corner where the solve doesn’t work.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [April 14, 2021, 10:59pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/6 "2021-04-14T22:59:54Z")

</div>

So that’s how the FlamistsTM do it, eh?

Thanks for the notes @cnoellert. I’ve always _thought_ about doing it that way, but for some reason always got tripped up…UNTIL NOW. Thank you for that write up. I was neglecting a step and then…Law and Order dun dun…I was caught out by the Projector Default Z set to 500. Doh. Thank you for that!

So, I did precisely what you mentioned. And, I just need to get my head wrapped around manually a camera around to view something. I’ve always struggled with the Flame 3D system to bailed early on but the new Camera Analysis has me optimistic as there is now a way of generating actually helpful geometry.

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [April 15, 2021, 1:26am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/7 "2021-04-15T01:26:09Z")

</div>

@randy, there’s another method to do what you’re after based on a technique @DannyYoon adapted for flame some time back. It’s pretty clever but not for the faint of heart…

Here’s a demo setup I put together if you’re interested.

> **[UVunwrap.zip](https://www.dropbox.com/s/dqulashsuz0fvyg/UVunwrap.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [April 15, 2021, 1:41am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/8 "2021-04-15T01:41:04Z")

</div>

Ever since I saw that Jet Li Nuke Demo of UV unwrapping I’ve wanted it in flame. Such a powerful tool.

---

<div class="post-metadata">

**Author:** ![DannyYoon](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DannyYoon](https://forum.logik.tv/u/DannyYoon)\
**Post date:** [April 15, 2021, 2:27am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/9 "2021-04-15T02:27:27Z")

</div>

@cnoellert Funny, but I’ve never use the UV Unwrap that much. To give credit where it’s due…I started with a rig that Lewis Sanders made:

From Logik Facebook:

> Projection Map to UV Map Setup
> 
> Hey guys…there was a recent thread about UV unwrapping and Lewis Saunders reposted his awesome setup.
> 
> I improved it by increasing the UV texture resolution and adding a blur node to get rid of the artifacts in the original setup. Also, the action setup has examples of an image plane and the original Sphere (which is hidden). Just to show different scenarios of projecting onto an image plane or a 3d object. There’s also a Paint node in there as a starting place for you to fix the UV texture.
> 
> Why is this cool? Ever get stuck when you’re using a tracked 3d camera and Projection maps and then during the move, you start seeing nasty warps and or cropping? This setup might help! You can unwrap the projection texture and clone or paint the problem areas.
> 
> Thanks Lewis!

The key to the unwrap is you literally subtract the UV pass from a UV Gradient still. This is the “difference” vectors that will unwrap the footage via Pixel Spread vector mode. It’s simple math! That’s the genius of Lewis’ setup.

One type of shot this is good for is if the plane you’re fixing has smoke or moving shadows, but i guess you could just use the perspective grid trick for that.

Maybe if I have time, I will post a setup using the new 3d tracking in 2022, but you can just look at the UVUnwrap rig and it has an example of using Action 3D geo.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [April 15, 2021, 2:33am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/10 "2021-04-15T02:33:03Z")

</div>

I use it in PFTrack all…the…time…and its amazing. And its so simple and fast. I’ve downloaded the setup @DannyYoon and @cnoellert. I’m following along and must be doing something silly as my Pixelspread is yielding close but not quite correct results. I’ll check it out in the morning and the “extract the problem area with an image” part has me a little stumped. All you really need to do, I think, its select a damn part of the frame, right? Like roto, or key, or projection and output the UV and matte with then Subtracts from the UV Gradient, right?

Thanks for posting.

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [April 15, 2021, 3:04am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/11 "2021-04-15T03:04:53Z")

</div>

It’s interesting because I use unwrapping all the time in Nuke (scanline render wise that is) and almost never in Flame because it tends to be such a pain. Just throwing out a a camera and recording the image from the angle that makes the most sense and projecting that back on tends to have the most mileage for 3D solves but most of the time the mocha unwrap shot is the way. In Nuke the setup is so simple there’s no reason not to use it…

Different strokes…

---

<div class="post-metadata">

**Author:** ![kirk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kirk/32/151_2.png) [@kirk](https://forum.logik.tv/u/kirk)\
**Post date:** [April 15, 2021, 4:29am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/12 "2021-04-15T04:29:17Z")

</div>

Another fun thing I’ve done with putting 3D tracking markers in space is pin downstream bicubics to them, copy to uvs, and then warp/straighten things without a lot of hassle.

Well, once. I did this once. And it was only after scouring the internet for @john-geehreng ‘s tutorial on distort node stabilization. He’d shown a version of it a while back at a user group and I hadn’t had the presence of mind to take notes. It seems like that functionality has since crept into other tools, though.

More to the point, the new 3D tracker is super cool. I’m excited about it!

---

<div class="post-metadata">

**Author:** ![La\_Flame](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/la_flame/32/200_2.png) [@La\_Flame](https://forum.logik.tv/u/La_Flame)\
**Post date:** [April 15, 2021, 6:28am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/13 "2021-04-15T06:28:03Z")

</div>

Hi Randy,

The only change in that workflow is the Camera Tracker that puts out a tracked camera and Axis. Everything should be the same.

We would need to look at the workflow closer to see what is different.

But I see that others may have found your solution.

Thanks  
Grant

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [April 15, 2021, 6:32pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/14 "2021-04-15T18:32:04Z")

</div>

thanks @La_Flame! Yes, there are other solves, but the Perspective Grid 2D/Invert workflow is sooo slick…for some reason I can’t figure out how to make it work in a Camera tracked scene…any wisdom? I must be doing something wrong.

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [April 15, 2021, 8:29pm UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/15 "2021-04-15T20:29:22Z")

</div>

> [@randy](#):
>
> there are other solves,

_solutions_.

“solves” is a verb.

#prescrptivistgang  
#linguisticthreadderail

---

<div class="post-metadata">

**Author:** ![Los](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@Los](https://forum.logik.tv/u/Los)\
**Post date:** [April 16, 2021, 12:18am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/16 "2021-04-16T00:18:09Z")

</div>

Thanks for the demo Chris!

---

<div class="post-metadata">

**Author:** ![kirk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kirk/32/151_2.png) [@kirk](https://forum.logik.tv/u/kirk)\
**Post date:** [April 16, 2021, 12:33am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/17 "2021-04-16T00:33:44Z")

</div>

That’s funny, I didn’t realize RISD had an English program.

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [April 16, 2021, 1:36am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/18 "2021-04-16T01:36:13Z")

</div>

SINCE YOU ASKED:

They did!—and are the reason it took me 5.5 years to finish college—I failed those classes like it was my _ **job** _.

The language nerd bit came later, lying dormant until I saw “architect” used as a verb.

---

<div class="post-metadata">

**Author:** ![KuleshovEffect](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kuleshoveffect/32/4928_2.png) [@KuleshovEffect](https://forum.logik.tv/u/KuleshovEffect)\
**Post date:** [April 16, 2021, 2:28am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/19 "2021-04-16T02:28:16Z")

</div>

> [@andy\_dill](#):
>
> “solves” is a verb.

So no camera solves, only camera _solutions?_ 😉

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [April 16, 2021, 3:27am UTC](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880/20 "2021-04-16T03:27:55Z")

</div>

Correct.

[Next page](https://forum.logik.tv/t/camera-tracking-and-uv-unwrap-techniques/2880.md?page=2)
