I need help with a live a surface shader camera projection. This video, using maya, shows exactly what I want to do in blender: https://www.youtube.com/watch?time_continue=1&v=JsnPYpDqhRk
would be thankful for any help
I need help with a live a surface shader camera projection. This video, using maya, shows exactly what I want to do in blender: https://www.youtube.com/watch?time_continue=1&v=JsnPYpDqhRk
would be thankful for any help
The accepted answer suffers from distorsion because it only ensures that the projection is correct at the vertices but not in the middle of faces, which is a problem for coarse meshes. Here is a shader that precisely does camera mapping with live update:
Usage: Use the Object output of the Texture Coordinates nodes with the object being set to the projection camera. Fov, Width and Height must also match the projection camera.
Details:
A. Projection
B. Apply Field of View
C. Apply Aspect Ratio
D. Remap from [-1,1] to [0,1]
You need the UV Project Modifier.
This is the node tree you are looking for :

To apply on a selection only, use material assignment or vertex colors.