Hi,
Does anyone have a really basic example of ray tracing along arbitrary paths in a vray plugin texture? I looked at the dirt shader example but that seems to rely on a Max include (#include "../../../3dsmax_plugins/common/vraydirt_impl.h") to work and I don't have Max.
I am just looking for example code which does something like this (in psudocode):
someData hitValues;
vector rayOrig;
vector rayDir;
bool hit = trace (rayOrig, rayDir, hitValues);
if (hit)
{
vector hit = hitValues.Normal;
float rayDistance = hitValues.rayDist;
}
Could you point me to anything like that?
Thanks,
Philip
Does anyone have a really basic example of ray tracing along arbitrary paths in a vray plugin texture? I looked at the dirt shader example but that seems to rely on a Max include (#include "../../../3dsmax_plugins/common/vraydirt_impl.h") to work and I don't have Max.
I am just looking for example code which does something like this (in psudocode):
someData hitValues;
vector rayOrig;
vector rayDir;
bool hit = trace (rayOrig, rayDir, hitValues);
if (hit)
{
vector hit = hitValues.Normal;
float rayDistance = hitValues.rayDist;
}
Could you point me to anything like that?
Thanks,
Philip
Comment