1
$\begingroup$

I'm trying to center a picture on the material of a cube and I'm able to get this using the window vector output.

enter image description here

The problem is that when I'm moving trough the 3d view it move the image position.

enter image description here

When I resize area it also resize the image.

enter image description here

I'm trying to find a way to show a centered image that rotate with the view, centered on the object and if i move trough the 3dview or if i resize the area it don't affect the image position/scale.

enter image description here

I'm trying to solve this directly on the material, no camera tracking since it’s not related with the window view and it require to be on camera mode wich is not the thing im looking for.

$\endgroup$

1 Answer 1

0
$\begingroup$

There are a couple of different ways to do this. I'll show you a technique combining object coordinates with constraints:

enter image description here

Notice the empty's constraints. It acquires the position and rotation of the camera, then uses a pair of locked track constraints to point its -Z axis at the designated object. (Track-to would work instead, but only when parented to the camera, with no inverse or transform; locked tracks are easier than that.) This empty is then used to generate object space coordinates for an image that will always "face" the camera, will always be the same size on the object, and will always rotate with the camera. I've moved the sphere to the periphery of the camera's view and rolled the camera to demonstrate this.

Alternate techniques would be to "billboard" the sphere or to use a UV project modifier, either of which should be searchable for more info.

$\endgroup$
1
  • $\begingroup$ Hi Nathan and thanks for your reply, but if i wasn't clear i wanted to solve this directly on the material without the need of any external modifier/constraint. - I want to move trough the 3dview area and the camera tracking require to be on camera view and the movement of the camera. Btw, ill be glad if you can attach some links to related similar projections 👍 $\endgroup$ Commented Jan 20 at 18:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .