Original Post
I'm trying to get a semi-cloak effect for a game I'm making, and experimented with the sphere/cubemap samples in the DX9SDK. With the spheremap sample, I've been able to get EXTREMELY close to the effect I'm looking for. In fact, I managed to get the actual effect by changing the a line in the shader from:
//Compute camera-space reflection vector
...
"add r1, r1, r1\n"
...
to:
"add r1, -r1, r1\n"
Now, the effect looks great, (actually, give it a look and see what you think!) but I've got two problems with it:
1) When you look towards a certain point, specifically near the doors, the image gets...screwy. Now, I'm sure that's because the direction of the camera or something gets REALLLLLLY close to zero, and that's no problem because since the game has a primarily isometric view, I can have that direction be away from the camera.
2) It's not dynamic. I went through the code and saw that the shader is referring to a pre-made texture. How could I make it dynamic so that things moving around would be seen through the cloak?
[edited by - cypher19 on January 20, 2004 8:12:52 PM]