Art-Machine
01-12-2008, 04:37 PM
Hey guys, hope someone here is good enough with this kind of thing to help me out!
Ok so the EnvBall in maya takes an image of a reflective chrome ball and applies it to an object surface in a way that simulates reflecting that sampled environment. I got that working fine and easy.
The part I'm getting stuck at is that I would like this effect to always be facing the camera, so no matter which way you spin around the model, the effect of EnvBall keeps simulating that I'm face-on to the chrome ball image.
So far unless i'm looking at the object from the front, the effect will start to distort like a glass refraction. I assume this will involve plugging some of the camera's position info into the shader's orientation/inclination slots? Anyway i have no idea where to start on that.
Hope i explained the problem well, Once again I'm just trying to make the EnvBall effect be "always facing camera".
Thanks!
Ok so the EnvBall in maya takes an image of a reflective chrome ball and applies it to an object surface in a way that simulates reflecting that sampled environment. I got that working fine and easy.
The part I'm getting stuck at is that I would like this effect to always be facing the camera, so no matter which way you spin around the model, the effect of EnvBall keeps simulating that I'm face-on to the chrome ball image.
So far unless i'm looking at the object from the front, the effect will start to distort like a glass refraction. I assume this will involve plugging some of the camera's position info into the shader's orientation/inclination slots? Anyway i have no idea where to start on that.
Hope i explained the problem well, Once again I'm just trying to make the EnvBall effect be "always facing camera".
Thanks!
