ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/bsdf.c
Revision 2.62 - (view) (download) (annotate) - [select for diffs]
Wed Dec 15 01:38:50 2021 UTC (2 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: HEAD, rad5R4
Changes since 2.61: +3 -3 lines
Diff to previous 2.61
refactor: removed prefix from SDdisk2square() and SDsquare2disk() & made consistent

Revision 2.61 - (view) (download) (annotate) - [select for diffs]
Tue Dec 7 23:49:50 2021 UTC (2 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.60: +11 -11 lines
Diff to previous 2.60
fix: Repaired issue with reciprocity and BSDF sampling, thanks to Jon Sargent

Revision 2.60 - (view) (download) (annotate) - [select for diffs]
Wed Apr 28 00:59:10 2021 UTC (3 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.59: +3 -1 lines
Diff to previous 2.59
fix: only remove suffix in final file component (i.e., allow folder suffixes)

Revision 2.59 - (view) (download) (annotate) - [select for diffs]
Sat Mar 27 17:50:18 2021 UTC (3 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.58: +15 -11 lines
Diff to previous 2.58
fix: Allow different front/back diffuse reflectance in BSDF library

Revision 2.58 - (view) (download) (annotate) - [select for diffs]
Thu May 14 19:20:13 2020 UTC (4 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 2.57: +5 -2 lines
Diff to previous 2.57
Added cumulative cache size limit (per loaded BSDF)

Revision 2.57 - (view) (download) (annotate) - [select for diffs]
Fri Mar 8 03:42:12 2019 UTC (5 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.56: +3 -3 lines
Diff to previous 2.56
Fixed reversal that forced reciprocity evaluation on *all* transmitted rays!

Revision 2.56 - (view) (download) (annotate) - [select for diffs]
Fri Dec 7 07:38:15 2018 UTC (5 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.55: +2 -2 lines
Diff to previous 2.55
Eliminated case where randX could be passed as 1.0, causing possible inf loop

Revision 2.55 - (view) (download) (annotate) - [select for diffs]
Thu May 10 22:55:35 2018 UTC (6 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2
Changes since 2.54: +4 -7 lines
Diff to previous 2.54
Eliminated expensive and unnecessary spectral curve hallucination

Revision 2.54 - (view) (download) (annotate) - [select for diffs]
Mon May 15 22:44:10 2017 UTC (7 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad5R1
Changes since 2.53: +3 -3 lines
Diff to previous 2.53
Fixed inconsistency between evaluation and sizing operations

Revision 2.53 - (view) (download) (annotate) - [select for diffs]
Thu Feb 2 04:46:38 2017 UTC (7 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.52: +3 -3 lines
Diff to previous 2.52
Bug fixes and improvements -- sampling was not working, now reports color

Revision 2.52 - (view) (download) (annotate) - [select for diffs]
Sun Aug 23 00:56:00 2015 UTC (9 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad5R0
Changes since 2.51: +4 -2 lines
Diff to previous 2.51
Added comments for placement of mutex locks to support multi-threading

Revision 2.51 - (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.50: +3 -2 lines
Diff to previous 2.50
Fixed various compiler warnings (mostly harmless)

Revision 2.50 - (view) (download) (annotate) - [select for diffs]
Sun Feb 8 22:14:50 2015 UTC (9 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.49: +2 -2 lines
Diff to previous 2.49
Removed stray quote

Revision 2.49 - (view) (download) (annotate) - [select for diffs]
Mon Dec 8 23:51:12 2014 UTC (9 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.48: +2 -3 lines
Diff to previous 2.48
Minor fixes should not affect operation

Revision 2.48 - (view) (download) (annotate) - [select for diffs]
Mon Mar 24 04:00:45 2014 UTC (10 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2, rad4R2P1, rad4R2P2
Changes since 2.47: +2 -3 lines
Diff to previous 2.47
Minor optimizations should not affect results

Revision 2.47 - (view) (download) (annotate) - [select for diffs]
Sun Mar 23 23:15:53 2014 UTC (10 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.46: +2 -2 lines
Diff to previous 2.46
Fixed bug in SDsampBSDF()

Revision 2.46 - (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.45: +3 -2 lines
Diff to previous 2.45
Added extra checks where projected solid angle is undefined

Revision 2.45 - (view) (download) (annotate) - [select for diffs]
Wed Jul 3 18:56:19 2013 UTC (11 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.44: +11 -15 lines
Diff to previous 2.44
Eliminated memory error caused by stray ray samples

Revision 2.44 - (view) (download) (annotate) - [select for diffs]
Sun Apr 21 21:36:23 2013 UTC (11 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.43: +9 -6 lines
Diff to previous 2.43
Added pointer indirection to make error reporting in other languages simpler

Revision 2.43 - (view) (download) (annotate) - [select for diffs]
Sat Oct 13 20:15:43 2012 UTC (12 years ago) by greg
Branch: MAIN
Changes since 2.42: +56 -761 lines
Diff to previous 2.42
Corrected errors in XML interpreter and genBSDF and removed mkillum BSDF code

Revision 2.42 - (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.41: +39 -19 lines
Diff to previous 2.41
Fixes to reciprocity for tensor tree representation

Revision 2.41 - (view) (download) (annotate) - [select for diffs]
Sat Jun 23 16:47:39 2012 UTC (12 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.40: +12 -4 lines
Diff to previous 2.40
Fixed incorrect call to multisamp()

Revision 2.40 - (view) (download) (annotate) - [select for diffs]
Mon Mar 5 15:27:08 2012 UTC (12 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.39: +5 -3 lines
Diff to previous 2.39
Tweak on last change to recording name & manufacturer

Revision 2.39 - (view) (download) (annotate) - [select for diffs]
Mon Mar 5 00:17:06 2012 UTC (12 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.38: +9 -1 lines
Diff to previous 2.38
Added recording of product and manufacturer names

Revision 2.38 - (view) (download) (annotate) - [select for diffs]
Sun Mar 4 23:28:34 2012 UTC (12 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.37: +8 -3 lines
Diff to previous 2.37
Improved error diagnostics

Revision 2.37 - (view) (download) (annotate) - [select for diffs]
Sun Mar 4 20:11:10 2012 UTC (12 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.36: +24 -1 lines
Diff to previous 2.36
Added routine for adding spectral distribution components

Revision 2.36 - (view) (download) (annotate) - [select for diffs]
Sat Sep 17 22:09:33 2011 UTC (13 years, 1 month ago) by greg
Branch: MAIN
CVS Tags: rad4R1
Changes since 2.35: +4 -2 lines
Diff to previous 2.35
Added missing call to free EZXML structures on error

Revision 2.35 - (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.34: +3 -3 lines
Diff to previous 2.34
Minor improvements to direct specular sampling

Revision 2.34 - (view) (download) (annotate) - [select for diffs]
Thu Jul 7 15:25:09 2011 UTC (13 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.33: +8 -5 lines
Diff to previous 2.33
Fixed bug for MING32 and non-square matrices, allowing multiple angle bases

Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Tue Jun 28 21:11:04 2011 UTC (13 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.32: +3 -3 lines
Diff to previous 2.32
Minor compile fixes

Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Thu Jun 23 16:00:37 2011 UTC (13 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.31: +6 -2 lines
Diff to previous 2.31
Additional check for empty MGF string

Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Fri Jun 10 01:11:26 2011 UTC (13 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.30: +2 -1 lines
Diff to previous 2.30
Added missing header

Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Thu Jun 9 17:09:39 2011 UTC (13 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.29: +2 -1 lines
Diff to previous 2.29
Fixes for Windows and bug fix in bsdf_m.c

Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Fri Jun 3 18:12:58 2011 UTC (13 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.28: +3 -9 lines
Diff to previous 2.28
Fixed bugs in variable-resolution isotropic BSDFs

Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Thu Apr 28 00:24:43 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.27: +1 -3 lines
Diff to previous 2.27
Removed debugging

Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Wed Apr 27 23:05:51 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.26: +3 -1 lines
Diff to previous 2.26
First test of variable-res BSDFs

Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Mon Apr 25 15:48:05 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.25: +8 -7 lines
Diff to previous 2.25
Fix from last change

Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Sun Apr 24 20:16:52 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.24: +6 -6 lines
Diff to previous 2.24
Bug fixes to last change

Revision 2.24 - (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.23: +17 -15 lines
Diff to previous 2.23
Partial implementation of variable-resolution BSDFs

Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Wed Apr 20 14:44:05 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.22: +27 -22 lines
Diff to previous 2.22
Fixes to last change -- tested

Revision 2.22 - (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.21: +9 -8 lines
Diff to previous 2.21
Fixed interface for determining BSDF solid angles

Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Sun Apr 17 17:45:13 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.20: +9 -5 lines
Diff to previous 2.20
Minor fixes

Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Mon Apr 11 03:47:46 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.19: +8 -4 lines
Diff to previous 2.19
Final fix to Klems angles -- I hope

Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Sat Apr 9 15:39:16 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.18: +3 -3 lines
Diff to previous 2.18
Fixed range of rand() -> double conversion

Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Fri Apr 8 23:23:28 2011 UTC (13 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.17: +3 -3 lines
Diff to previous 2.17
Eliminated calls to drand48()

Revision 2.17 - (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.16: +11 -5 lines
Diff to previous 2.16
Fixes to BSDF including blurring of angle boundaries

Revision 2.16 - (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.15: +56 -25 lines
Diff to previous 2.15
Minor changes and fixes -- first working version of BSDF material

Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Fri Feb 18 00:40:25 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.14: +756 -19 lines
Diff to previous 2.14
Major code reorg, moving mgflib to common and introducing BSDF material

Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Fri Feb 11 17:31:25 2011 UTC (13 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.13: +3 -3 lines
Diff to previous 2.13
Fixed comment type

Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Thu Jan 6 22:27:56 2011 UTC (13 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.12: +12 -8 lines
Diff to previous 2.12
Fixed handling of multiple WavelengthDataBlock's

Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Thu Jan 6 04:40:22 2011 UTC (13 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.11: +6 -6 lines
Diff to previous 2.11
Typo!

Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Thu Jan 6 04:39:08 2011 UTC (13 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.10: +6 -6 lines
Diff to previous 2.10
Removed some case-dependent string comparisons

Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Thu Jan 6 04:36:16 2011 UTC (13 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.9: +11 -1 lines
Diff to previous 2.9
Added check to ensure column ordering of BTDF

Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Mon Jan 3 19:27:00 2011 UTC (13 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.8: +11 -3 lines
Diff to previous 2.8
Slight improvement to conditional

Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Sun Sep 26 15:43:26 2010 UTC (14 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.7: +6 -5 lines
Diff to previous 2.7
Slight change to reporting thresholds for dubious BSDFs

Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Tue Sep 7 23:10:50 2010 UTC (14 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.6: +10 -3 lines
Diff to previous 2.6
Added test for full light transfer in BSDF

Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Fri Sep 3 23:53:50 2010 UTC (14 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.5: +72 -2 lines
Diff to previous 2.5
Working version of genBSDF with detail geometry support in mkillum

Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Sun Aug 1 22:26:37 2010 UTC (14 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.4: +2 -2 lines
Diff to previous 2.4
Minor warning for 64-bit architectures

Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Sat Jul 3 05:28:05 2010 UTC (14 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.3: +9 -10 lines
Diff to previous 2.3
Minor changes related to angle basis support

Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Sat Jul 3 02:50:22 2010 UTC (14 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.2: +72 -6 lines
Diff to previous 2.2
Added support for custom angle bases

Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Fri Jun 19 06:49:25 2009 UTC (15 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad4R0
Changes since 2.1: +70 -30 lines
Diff to previous 2.1
Improved error-checking

Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Wed Jun 17 20:41:47 2009 UTC (15 years, 4 months ago) by greg
Branch: MAIN
Created dctimestep utility for daylight coefficient calculations

Convenience Links

Links to HEAD: (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