Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone have a link to a sample implementation of how to create/handle 4D BRDFs?

I found a few interesting papers and websites,

but cannot seem to find any reference implementation to play with. Anyone have any?


Image from Predicting reflectance functions from complex surfaces

share|improve this question
This question is unclear to me. There are quite a lot of different BRDF models out there; which one(s) do you want a reference implementation for? – Nathan Reed Oct 17 '11 at 23:43
Any one, to give me an idea of how they are programmed! – bobobobo Oct 18 '11 at 1:54
nVidia's own site has an entry on SBRDF if you want source for a spatial variant on pure BRDF. Check here: for an open source (Ogre3D based) application. – Patrick Hughes Oct 18 '11 at 4:49
@PatrickHughes Great! – bobobobo Oct 19 '11 at 21:17
up vote 4 down vote accepted

There are quite a few implementations of BRDFs in pbrt, the (open-source) raytracer described by the Physically Based Rendering book. That book is also a great reference for anyone interested in 3D graphics, even if you're not interested in raytracing.

share|improve this answer
I am interested! Very interested. – bobobobo Oct 19 '11 at 21:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.