lookAt: questions about how it behaves

Hi,

I’m a vvvv noob. I have question about the results I get from the lookAt patch: it doesn’t seem to behave the way I expect at all. I attached a patch to illustrate what I am seeing.

I noticed in another thread that someone thought it was only for cameras (?), but wouldn’t the transform output work with anything that takes a transform input?

My goal is to make a target camera/projector. Thnx

lookat_problem.v4p (19.8 kB)

without looking into your patch, i think you need an Inverse (Transform) after the LookAt, as camera and object space are inverse to each other.

Thnx Tonfilm.

I tried that, but it didn’t seem to correct the output. Perhaps I am making some basic error that I am blind to. I inserted the inverse node after the lookAt.

Is there a more detailed description of nodes posted somewhere? I have been checking the node help files and the vvvv.org links.

make sure that you use the Source input pin, that might be confusing when using Inverse.

I’ve also seen that you are using the Decompose, which doesn’t seem to work with LookAt…

in general, select a node and press F1 to see it’s help patch, there are no more detailed explanations. but you might find helpful stuff at the Documentation page.

i think you want to do something like this:

lookat_problem2.v4p (17.4 kB)

That’s it. Thank you. I greatly appreciate your help.

I was using the decompose mostly to view the output values, but that is good to know.