# Look at request

Hi,
I’m new to touch and have 3d experience but can’t wrap my head around how to do a camera lookat setup. Could someone please do a simple example with a box moving around a stationary object and the camera following it (the cube)?

Many thanks,
Ian

Hey Ian, here is a simple look-at setup. The camera is set at a single point and looks at the box, so it actually looks like the sphere is circling the box, but hopefully this gives you a starting point.

Ian
camera-look-at.toe (6.64 KB)

Many thanks for the quick response. This is really appreciated. I hope you don’t mind if ask a few questions after looking at the various parts.

Kind regards,
Ian

Ask away, I am learning from this too

Hi,
so the geo is rotating around according to the circle sop. The null is a child of the geo, so it spins as well and the camera looks at the null? And the sphere is just dragged along for the ride because it’s on the same plane?

Ian

Yes, that is all correct except the sphere is not actually moving. If you un-parent the geo1 from null1, you will see that the cube is circling the sphere.

Another way to see it more clearly (what I should have done in the first place) would be to grab a movie in TOP and get some image that’s not just a solid color. Then drag that TOP onto the phong2 material, and select color map. This will apply the image to the plane and the sphere so you can tell that they are not moving

Hi,
that extra explanation helped a lot. I added a movie in Top as suggested and saw the difference with the box circling the sphere.

I also tested a theory where I deleted null1 parented the geo1 directly to cam1. Then I changed the ‘look at’ setting to ‘geo1’. The result was the same. So, would it be right to say that the null is used here as an optional best practice way of operating (as with chop exporting)?

Fantastico. Thanks!

Ian

Yeah that was the idea behind the null. Not actually sure if it’s as beneficial as exporting CHOPS with a null, but you got the idea.