THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2003 at 22:24, xxxxxxxx wrote:
Funny - I think this is related to another question I asked before (about tracegeometry) :
var id,p,n;
var ray = new(Ray);
ray->p = vector(0.0);
ray->v = vector(1.0,0.0,0.0); // ray travels from world origin along the X axis
ray->pp0 = ray->pp1 = ray->pp2 = ray->p;
ray->vv0 = ray->vv1 = ray->vv2 = ray->v; // fill mip variables
ray->ior = 1.0; // refraction index for air
id = TraceGeometry(ray,&p;,&n;,0);
So you can define your own IOR for refraction - but TraceGeometry (defined in VolumeData) is wrong documentated - coffee says you need 5 variables and not only 4... happy guessing (at least in R7)...
Well but the rayclass would implement the ior you have asked for. I guess that if you can access the ray that have "shot" you in the point, you can change its IOR and c4d would do the rest... but I am only guessing...
cu