bent Normal in a vop

   2359   0   0
User Avatar
Member
2624 posts
Joined: 8月 2006
Offline
Hi All ,
I am constructing a vop for occlusion. but I seem unable to get the bent normal or the environment hooked up correctly. I was thinking I could add the code directly into the vop for all of this. A sort of halfway house between pure code and vops.
Any tips ?

I have created the correct parmeters and inputs/ outputs for the vop with the inner code section looking like this

vector $myP = $isconnected_P ? P: P;
vector $myN = $isconnected_N ? $N : normalize(frontface(N, I));

occlusion($coverage, $missed_direction , $myP, $myN , “bias”, $bias,
“maxdist”, $maxdist, “samples”, $samples,
“scope”, $scope, “categories”, $categories,
“environment”, $envmap, “envobject”, $envobj,
“envtint”, $envtint, “background”, $bgcolor , “angle” , radians($coneAngle), “filter ” , “point”);


if($bendN) { $N = $missed_direction;
}

Gone fishing
  • Quick Links