PDA

View Full Version : shader help


Shane W
11-27-2007, 07:49 PM
I am trying to set up a shader that displays a texture map that always faces the camera and also keeps the same orientation no matter the viewing angle. The effect will make the object appear 2d with the exception of it getting smaller the farther it moves away from the camera. I created a circle with a ring around it using fresnel and mapped it onto a sphere and it works exactly like I would like. I just cant get it to work using a bitmap image. Any ideas?

Ps. I used the sketch and toon art shader with a little success but it would fall apart when using extreme camera angles.

Thanks,

-Shane

AdamT
11-28-2007, 12:02 AM
This should do it:

* set your tex tag to flat mapping;
* create a null and give it a look at camera tag;
* drop your textured object in the null

* create an xpresso and drag in the null and the texture tag;
* connect the null's global rotation output to the tex tag's rotation input.

Or maybe not exactly ... but something like that. :)

CGTalk Moderation
11-28-2007, 12:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.