View Full Version : renderman's fresnel() function

03 March 2005, 08:35 PM
Does anyone know the implementation of fresnel()?

03 March 2005, 09:08 PM
i don't remember the Renderman spec advocating a specific implementation for the Fresnel formula - if it's prman's that you are interested in, i don't think i can post that here, so i'll recommend :
- posting on the customer forum at (in the renderman support area - requires registration)
- email (they have answered that question before)

iirc you can also find a similar derivation in Glassner's books (principles of image synthesis)

03 March 2005, 09:48 PM
thanks shehbahn. Actually I want to write my own fresnel. I only know the basic fresnel function, but I have no idea how to return the refraction and reflection fractions (Kr, Kt) .

03 March 2005, 07:46 AM
You could take a look at the Aqsis source code ( I can't remember where I sourced the implementation details from, I think it was a combination of web searching and reference books, but it seems to work ok.



03 March 2005, 01:38 PM
Hope this helps:

03 March 2005, 07:36 PM
actually - there's one additional catch for your implementation not described in the spec iirc : total internal reflection returns a null vector and null kr

CGTalk Moderation
03 March 2005, 07:36 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.