Hello,
I'm trying to write a V-Ray shader that uses texture bombing. I'm using rc.rayresult.origPoint to get the position of my point (P) and then testing that to see whether it's within my 'bomb' radius. This works fine, however I'm finding that P seems to vary dependent on the camera position and so my bombs will move around as the camera moves, which I don't want. So I'm not sure if I'm implementing this correctly... should I be using a different value (I've tried origPoint and wpoint)? What co-ordinate space is the origPoint value specified in? Or is there a way to change the coordinate space so that I can keep it consistent?
Any help would be greatly appreciated!
Thanks very much,
Lindsey
I'm trying to write a V-Ray shader that uses texture bombing. I'm using rc.rayresult.origPoint to get the position of my point (P) and then testing that to see whether it's within my 'bomb' radius. This works fine, however I'm finding that P seems to vary dependent on the camera position and so my bombs will move around as the camera moves, which I don't want. So I'm not sure if I'm implementing this correctly... should I be using a different value (I've tried origPoint and wpoint)? What co-ordinate space is the origPoint value specified in? Or is there a way to change the coordinate space so that I can keep it consistent?
Any help would be greatly appreciated!
Thanks very much,
Lindsey
Comment