using namespace HDK_Sample;
};
{
public:
{
}
};
void
{
}
: myShutter(1),
myPreBlur(0),
myPostBlur(0)
{
myBox.initBounds(0, 0, 0);
}
RAY_DemoFile::~RAY_DemoFile()
{
}
const char *
{
return "RAY_DemoFile";
}
int
{
int ival;
if (!box)
{
fprintf(stderr,
"The %s procedural needs a bounding box specified\n",
return 0;
}
myBox = *box;
if (!import("shutter", &myShutter, 1))
myShutter = 1;
if (import("velocityblur", &ival, 1))
myVelocityBlur = (ival != 0);
else
myVelocityBlur = false;
import("file", myFile);
import("blurfile", myBlurFile);
fpreal fps = 24.0, shutter[2] = {0};
import("global:fps", &fps, 1);
import("camera:shutter", shutter, 2);
myPreBlur = -(myShutter * shutter[0]) / fps;
myPostBlur = (myShutter * shutter[1]) / fps;
return 1;
}
void
{
box = myBox;
}
void
{
{
fprintf(stderr,
"Unable to load geometry[0]: '%s'\n",
return;
}
if (myVelocityBlur)
{
}
else
{
{
if (!wlock.getGdp()->load(myBlurFile, 0).success())
{
fprintf(stderr,
"Unable to load geometry[1]: '%s'\n",
}
}
}
obj->addGeometry(g0);
}