Projecting Texture Onto Object ("Dynamic Mask")
I am trying to use materials to dynamically project a texture onto a mesh via material. Unfortunately, I am not having as much luck as I am hoping, even though my calculations appear correct (hint: they're not). Any help on this subject would be greatly appreciated.
Basically, I take a point around my static mesh, make it face it constantly (This is my "projection plane"):
In my material, I take the information of that plane, its relative position, up, right and forward vectors, and project my static mesh points onto it (calculation for projection found here).
The last thing in the material function is me attempting to get the point's "plane coordinates", i.e. its 2D position in the projection plane's local coordinate system. I then simply use those as the UVs for my mask texture.
This is my end result:
Obviously, this is not what I intended. Anyone got any ideas?
asked Jul 20 '15 at 01:18 AM in Rendering
Follow this question
Once you sign in you will be able to subscribe for any updates here