[Radiance-general] Re: accessing interpolated normals in a .cal file

Gregory J. Ward gregoryjward at gmail.com
Fri Jul 13 12:03:34 PDT 2007


Hi Roland,

What is your function file being used for?  If it's one of the BRDF  
types, the NxP, NyP, and NzP variables should be assigned the  
perturbed normal.  You can't generally use a perturbed normal in a  
pattern or texture.

-Greg

> From: Roland William Fleming <roland.fleming at tuebingen.mpg.de>
> Date: July 13, 2007 6:31:28 AM PDT
>
> Hi ---
>
> I've written a .cal shader for use with colorpict that makes use of  
> Nx, Ny and Nz.  But now I want to apply it to a mesh, (or object  
> generated with gensurf with the smoothing option on).  Instead of  
> receiving the perturbed (interpolated) vertex normals, it just  
> applies to the local surface normal, leading to faceted appearance.
>
> How do I access the interpolated surface normals in a .cal file?
>
> Cheers,
> Roland



More information about the Radiance-general mailing list