0
$\begingroup$

How can I use material displacement to make an object always look at the camera? I've been blindly following this tutorial to rotate it around the z-axis, but I would like rotate it around every axis.

Any help is appreciated!

$\endgroup$
1
  • $\begingroup$ Are you sure you need to do this with shader-displacement? $\endgroup$
    – Robin Betts
    Nov 7, 2022 at 10:03

1 Answer 1

2
$\begingroup$

Vector transform from camera to world should work:

enter image description here

Additional vector rotate is to make Z facing up (Camera's Z axis pointing backwards).

Subtract is used to remove original coordinates, it is quite common.

$\endgroup$
2
  • $\begingroup$ This works perfectly, thank you! Do you perhaps have a link to a website for in-depth explanation of vector nodes? $\endgroup$ Nov 7, 2022 at 9:35
  • $\begingroup$ @NeilGiliomee nope $\endgroup$
    – Crantisz
    Nov 7, 2022 at 9:53

You must log in to answer this question.

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