Hi! I am a CG student .
I just downloaded a rtrace shader(rman). I am going to do some ray trace reflection in Houdini. Does anyone know how I can activate the raytrace function (for rman) in Houdini?
Any help will be appriciated!
surface rtrace (float Kr=0.25)
{
normal Nn = normalize(N);
vector In = normalize(I);
color Ct;
if (Nn.In < 0) {
vector r = reflect(In,Nn);
Ct = Kr*trace(P, r);
}
Ci = Cs + Kr*Ct;
Oi = Os;
Ci *= Oi;
}
ray trace?
3060 3 0- brucelay
- Member
- 313 posts
- Joined: July 2005
- Offline
- george
- Member
- 276 posts
- Joined: July 2005
- Offline
- brucelay
- Member
- 313 posts
- Joined: July 2005
- Offline
- george
- Member
- 276 posts
- Joined: July 2005
- Offline
Sorry, I can't tell off hand what might be going on. A good way to debug such things is to simplify your geometry as much as possible to still get the error. Then generate a RIB file from Houdini and render it manually. Step through the RIB to make sure it is as you expect and try to eliminate possibilities that way.
Good luck.
George.
Good luck.
George.
-
- Quick Links