HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
karma_procedurals/piginstancer.vfl
/*%vcc -l piginstancer.otl -O vop % */
cvex
main(
// User defined parameters
int seed1 = 13492;
int seed2 = 29873;
int num_insts = 1;
// Outputs in the <instname>_file, <instname>_xforms format
export string test_file = "hairypig.bgeo";
export matrix test_xforms[] = {};
)
{
for (int i = 0; i < num_insts; i++)
{
vector trans = (2*random_brj(seed1, i)-1)*5;
vector yaxis = 2*random_brj(seed2, i) - 1;
test_xforms[i] = maketransform({0,0,1}, yaxis, trans);
}
}