ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/m_bsdf.c
Revision 2.61 - (view) (download) (annotate) - [select for diffs]
Thu Jul 9 17:32:31 2020 UTC (4 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 2.60: +35 -25 lines
Diff to previous 2.60 , to selected 2.39
fix(aBSDF): Improved appearance/accuracy in exclusion zone during peak extraction.
Thanks to David Geisler-Moroder for initial idea, implementation and testing.

Revision 2.60 - (view) (download) (annotate) - [select for diffs]
Wed Jun 10 16:00:32 2020 UTC (4 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.59: +12 -15 lines
Diff to previous 2.59 , to selected 2.39
Increased number of sampling directions for better peak evaluation
(thanks to David G-M for implementation and testing)

Revision 2.59 - (view) (download) (annotate) - [select for diffs]
Wed Jun 3 02:27:32 2020 UTC (4 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.58: +5 -4 lines
Diff to previous 2.58 , to selected 2.39
Removed small source sampling bias in direct_specular_OK()

Revision 2.58 - (view) (download) (annotate) - [select for diffs]
Wed Jun 3 02:08:32 2020 UTC (4 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.57: +66 -35 lines
Diff to previous 2.57 , to selected 2.39
Improved cthru coefficient calculation for aBSDF by summing more inclusive peak

Revision 2.57 - (view) (download) (annotate) - [select for diffs]
Mon Jun 10 13:56:52 2019 UTC (5 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.56: +2 -2 lines
Diff to previous 2.56 , to selected 2.39
Added max() and min() as .cal library functions

Revision 2.56 - (view) (download) (annotate) - [select for diffs]
Tue Nov 13 19:58:33 2018 UTC (5 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.55: +2 -1 lines
Diff to previous 2.55 , to selected 2.39
Added -orRxX options to rtrace for VR rendering

Revision 2.55 - (view) (download) (annotate) - [select for diffs]
Tue Aug 21 23:31:01 2018 UTC (6 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2
Changes since 2.54: +6 -2 lines
Diff to previous 2.54 , to selected 2.39
Added balancing calls to SDfreeCache()

Revision 2.54 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 04:15:18 2018 UTC (6 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.53: +1 -2 lines
Diff to previous 2.53 , to selected 2.39
Removed removal of cosine factor, which was actually in error(!)

Revision 2.53 - (view) (download) (annotate) - [select for diffs]
Thu Aug 2 22:44:35 2018 UTC (6 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.52: +13 -9 lines
Diff to previous 2.52 , to selected 2.39
Switched to minimum solid angle rather than local SA for over-counting test

Revision 2.52 - (view) (download) (annotate) - [select for diffs]
Tue Jun 26 14:42:18 2018 UTC (6 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.51: +7 -7 lines
Diff to previous 2.51 , to selected 2.39
Decided to go with "aBSDF" for "aperture BSDF" rather than "sBSDF"

Revision 2.51 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 23:04:06 2018 UTC (6 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.50: +4 -2 lines
Diff to previous 2.50 , to selected 2.39
Fixed bug in direct calculation for BSDF introduced in last change

Revision 2.50 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 20:49:10 2018 UTC (6 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.49: +45 -30 lines
Diff to previous 2.49 , to selected 2.39
Added sBSDF material type for explicit control over peak extraction

Revision 2.49 - (view) (download) (annotate) - [select for diffs]
Sat May 12 02:32:10 2018 UTC (6 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.48: +3 -1 lines
Diff to previous 2.48 , to selected 2.39
Some paranoia to avoid infinite loops

Revision 2.48 - (view) (download) (annotate) - [select for diffs]
Fri May 11 14:26:24 2018 UTC (6 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.47: +6 -4 lines
Diff to previous 2.47 , to selected 2.39
Avoid loss of specular sampling for low-weight daughter rays

Revision 2.47 - (view) (download) (annotate) - [select for diffs]
Mon Feb 12 23:20:31 2018 UTC (6 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.46: +7 -7 lines
Diff to previous 2.46 , to selected 2.39
Reverted previous change and added 1.5 fudge factor to avoid over-counting

Revision 2.46 - (view) (download) (annotate) - [select for diffs]
Mon Feb 12 18:46:29 2018 UTC (6 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.45: +8 -8 lines
Diff to previous 2.45 , to selected 2.39
Fixed issue with under-counting specular

Revision 2.45 - (view) (download) (annotate) - [select for diffs]
Fri Jan 5 02:47:46 2018 UTC (6 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.44: +3 -3 lines
Diff to previous 2.44 , to selected 2.39
Tweaked peak extraction code to improve results

Revision 2.44 - (view) (download) (annotate) - [select for diffs]
Sat Dec 2 16:13:04 2017 UTC (6 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.43: +7 -4 lines
Diff to previous 2.43 , to selected 2.39
Made it so weighted average only kicks in for small sources

Revision 2.43 - (view) (download) (annotate) - [select for diffs]
Fri Dec 1 02:45:14 2017 UTC (6 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.42: +11 -7 lines
Diff to previous 2.42 , to selected 2.39
Added cosine correction for through component and improved accuracy of direct specular component

Revision 2.42 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 22:17:00 2017 UTC (6 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.41: +4 -1 lines
Diff to previous 2.41 , to selected 2.39
Fixed occasional issue with zero BSDF regions

Revision 2.41 - (view) (download) (annotate) - [select for diffs]
Tue Jul 18 21:33:14 2017 UTC (7 years, 3 months ago) by greg
Branch: MAIN
CVS Tags: rad5R1
Changes since 2.40: +14 -14 lines
Diff to previous 2.40 , to selected 2.39
Minor change should not affect behavior

Revision 2.40 - (view) (download) (annotate) - [select for diffs]
Mon Jul 17 00:14:28 2017 UTC (7 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.39: +75 -53 lines
Diff to previous 2.39
Implemented view component for BTDFs

Revision 2.39 - (view) (download) (annotate) - [selected]
Fri Jun 2 18:10:11 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.38: +22 -19 lines
Diff to previous 2.38
Fixed over-counting error introduced in revision 2.31

Revision 2.38 - (view) (download) (annotate) - [select for diffs]
Fri May 19 15:13:41 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.37: +7 -4 lines
Diff to previous 2.37 , to selected 2.39
Fixed issue with indirect under-estimation in proxied BSDF transmitters

Revision 2.37 - (view) (download) (annotate) - [select for diffs]
Thu May 18 17:59:37 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.36: +19 -16 lines
Diff to previous 2.36 , to selected 2.39
Further tweak to make sure we never double-count

Revision 2.36 - (view) (download) (annotate) - [select for diffs]
Tue May 16 20:06:40 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.35: +13 -13 lines
Diff to previous 2.35 , to selected 2.39
Fixed issue with variable-resolution BSDF sampling of direct component

Revision 2.35 - (view) (download) (annotate) - [select for diffs]
Tue May 16 02:52:15 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.34: +16 -12 lines
Diff to previous 2.34 , to selected 2.39
Fixed comments and changed threshold to 0.7% for "through" shadow testing

Revision 2.34 - (view) (download) (annotate) - [select for diffs]
Mon May 15 22:50:33 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.33: +108 -13 lines
Diff to previous 2.33 , to selected 2.39
Made shadow testing work through BSDF's with through component (Thanks to David G-M)

Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Sun Feb 19 17:22:18 2017 UTC (7 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.32: +11 -11 lines
Diff to previous 2.32 , to selected 2.39
Renamed direct sampling routine for clarity

Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Sat Feb 18 19:12:49 2017 UTC (7 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.31: +44 -8 lines
Diff to previous 2.31 , to selected 2.39
Corrected double-counting of diffuse contributions

Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Fri Feb 17 23:24:56 2017 UTC (7 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.30: +31 -57 lines
Diff to previous 2.30 , to selected 2.39
Simplified handling of diffuse components

Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Wed Sep 2 18:59:01 2015 UTC (9 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad5R0
Changes since 2.29: +8 -1 lines
Diff to previous 2.29 , to selected 2.39
Had to reinstate ambRayInPmap() macro to avoid over-counting bug

Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Sat Aug 1 23:27:04 2015 UTC (9 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.28: +2 -2 lines
Diff to previous 2.28 , to selected 2.39
Fixed various compiler warnings (mostly harmless)

Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Tue May 26 13:21:07 2015 UTC (9 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.27: +1 -7 lines
Diff to previous 2.27 , to selected 2.39
Removed deprecated ambRayInPmap() macro from code

Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Tue Feb 24 19:39:26 2015 UTC (9 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.26: +7 -1 lines
Diff to previous 2.26 , to selected 2.39
Initial check-in of photon map addition by Roland Schregle

Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Sat Jan 25 18:27:39 2014 UTC (10 years, 9 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2, rad4R2P1, rad4R2P2
Changes since 2.25: +8 -9 lines
Diff to previous 2.25 , to selected 2.39
Enabled back face invisibility (-bv0) for transparent/translucent types

Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Wed Jan 22 16:39:57 2014 UTC (10 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.24: +2 -1 lines
Diff to previous 2.24 , to selected 2.39
Added missing call to set function context

Revision 2.24 - (view) (download) (annotate) - [select for diffs]
Thu Jul 4 15:14:45 2013 UTC (11 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.23: +4 -2 lines
Diff to previous 2.23 , to selected 2.39
Added extra checks where projected solid angle is undefined

Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Tue Apr 9 16:55:15 2013 UTC (11 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.22: +5 -1 lines
Diff to previous 2.22 , to selected 2.39
Fixed bug for BSDF materials included via octree or mesh instances

Revision 2.22 - (view) (download) (annotate) - [select for diffs]
Sun Sep 2 15:33:15 2012 UTC (12 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.21: +8 -4 lines
Diff to previous 2.21 , to selected 2.39
Fixes to reciprocity for tensor tree representation

Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Sat Jun 9 07:16:47 2012 UTC (12 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.20: +4 -4 lines
Diff to previous 2.20 , to selected 2.39
Created rcontrib program (eventually to replace rtcontrib)

Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 15:53:41 2012 UTC (12 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.19: +8 -11 lines
Diff to previous 2.19 , to selected 2.39
Further refinements in error testing/reporting

Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 15:36:40 2012 UTC (12 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.18: +6 -3 lines
Diff to previous 2.18 , to selected 2.39
Improved error reporting for illegal orientation vector

Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Fri Mar 30 15:08:40 2012 UTC (12 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.17: +2 -2 lines
Diff to previous 2.17 , to selected 2.39
Fixed serious bug in transmitting proxy material ambient sampling

Revision 2.17 - (view) (download) (annotate) - [select for diffs]
Thu Sep 22 02:15:56 2011 UTC (13 years, 1 month ago) by greg
Branch: MAIN
CVS Tags: rad4R1
Changes since 2.16: +2 -1 lines
Diff to previous 2.16 , to selected 2.39
Minor optimizations

Revision 2.16 - (view) (download) (annotate) - [select for diffs]
Wed Aug 24 04:31:13 2011 UTC (13 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.15: +6 -6 lines
Diff to previous 2.15 , to selected 2.39
Improved oversampling check

Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Mon Aug 22 16:00:47 2011 UTC (13 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.14: +24 -23 lines
Diff to previous 2.14 , to selected 2.39
Further improved sampling method

Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Sun Aug 21 22:38:12 2011 UTC (13 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.13: +14 -13 lines
Diff to previous 2.13 , to selected 2.39
Minor improvements to direct specular sampling

Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Sun Aug 21 21:24:30 2011 UTC (13 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.12: +54 -32 lines
Diff to previous 2.12 , to selected 2.39
Vastly improved direct specular sampling

Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Sun Aug 21 16:55:29 2011 UTC (13 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.11: +7 -7 lines
Diff to previous 2.11 , to selected 2.39
Minor fix to through component calculation

Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Wed Jun 8 15:37:46 2011 UTC (13 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.10: +16 -21 lines
Diff to previous 2.10 , to selected 2.39
Stratified specular sampling with -ss > 1

Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Sun Apr 24 19:39:21 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.9: +4 -4 lines
Diff to previous 2.9 , to selected 2.39
Partial implementation of variable-resolution BSDFs

Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Tue Apr 19 21:31:22 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.8: +39 -28 lines
Diff to previous 2.8 , to selected 2.39
Fixed interface for determining BSDF solid angles

Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Wed Apr 6 00:14:26 2011 UTC (13 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.7: +2 -2 lines
Diff to previous 2.7 , to selected 2.39
Improved output efficiency by reducing number of calls to fwrite()

Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Tue Feb 22 05:41:02 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.6: +39 -43 lines
Diff to previous 2.6 , to selected 2.39
Fixed problem with double-counting through component in indirect

Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Sun Feb 20 17:43:43 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.5: +12 -10 lines
Diff to previous 2.5 , to selected 2.39
Fixed bug in source sampling for proxies

Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Sun Feb 20 06:34:19 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.4: +171 -41 lines
Diff to previous 2.4 , to selected 2.39
Made BSDF proxy behavior consistent for shadowing, reflection and transmission

Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Sat Feb 19 23:42:09 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.3: +53 -19 lines
Diff to previous 2.3 , to selected 2.39
Fixes to BSDF including blurring of angle boundaries

Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Sat Feb 19 01:48:59 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.2: +15 -18 lines
Diff to previous 2.2 , to selected 2.39
Minor changes and fixes -- first working version of BSDF material

Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Fri Feb 18 02:41:55 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.1: +6 -31 lines
Diff to previous 2.1 , to selected 2.39
Minor fixes and adjustments

Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Fri Feb 18 00:40:25 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Diff to selected 2.39
Major code reorg, moving mgflib to common and introducing BSDF material

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to rad5R3: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a