ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/ambient.c
Revision 2.61 - (view) (download) (annotate) - [select for diffs]
Tue May 31 18:01:09 2005 UTC (19 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P1
Changes since 2.60: +23 -22 lines
Diff to previous 2.60
Added Russian roulette ray termination and fixed ambient weights & measures

Revision 2.60 - (view) (download) (annotate) - [select for diffs]
Sat May 28 22:27:54 2005 UTC (19 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.59: +14 -11 lines
Diff to previous 2.59
Fixed application of ray weights and coefficients in ambient calculation

Revision 2.59 - (view) (download) (annotate) - [select for diffs]
Wed May 25 18:06:22 2005 UTC (19 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.58: +6 -4 lines
Diff to previous 2.58
Fixed bug introduced with ray contribution output in ambient calculation

Revision 2.58 - (view) (download) (annotate) - [select for diffs]
Tue Apr 19 01:15:06 2005 UTC (19 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.57: +25 -14 lines
Diff to previous 2.57
Extensive changes to enable rtrace -oTW option for tracking ray contributions

Revision 2.57 - (view) (download) (annotate) - [select for diffs]
Fri Nov 5 17:36:55 2004 UTC (20 years ago) by greg
Branch: MAIN
Changes since 2.56: +4 -2 lines
Diff to previous 2.56
Increased defaults and allowed for compiler override related to -a{E,I} options

Revision 2.56 - (view) (download) (annotate) - [select for diffs]
Tue Mar 30 16:13:00 2004 UTC (20 years, 7 months ago) by schorsch
Branch: MAIN
CVS Tags: rad3R6, rad3R6P1
Changes since 2.55: +120 -83 lines
Diff to previous 2.55
Continued ANSIfication. There are only bits and pieces left now.

Revision 2.55 - (view) (download) (annotate) - [select for diffs]
Mon Oct 20 16:01:55 2003 UTC (21 years ago) by greg
Branch: MAIN
Changes since 2.54: +5 -5 lines
Diff to previous 2.54
Included "platform.h" wherever lseek() was called

Revision 2.54 - (view) (download) (annotate) - [select for diffs]
Sun Jul 27 22:12:03 2003 UTC (21 years, 3 months ago) by schorsch
Branch: MAIN
Changes since 2.53: +3 -3 lines
Diff to previous 2.53
Added grouping parens to reduce ambiguity warnings.

Revision 2.53 - (view) (download) (annotate) - [select for diffs]
Mon Jul 21 22:30:19 2003 UTC (21 years, 3 months ago) by schorsch
Branch: MAIN
Changes since 2.52: +6 -6 lines
Diff to previous 2.52
Eliminated copystruct() macro, which is unnecessary in ANSI.
Reduced ambiguity warnings for nested if/if/else clauses.

Revision 2.52 - (view) (download) (annotate) - [select for diffs]
Mon Jun 30 14:59:12 2003 UTC (21 years, 4 months ago) by schorsch
Branch: MAIN
Changes since 2.51: +4 -2 lines
Diff to previous 2.51
Replaced most outdated BSD function calls with their posix equivalents, and cleaned up a few other platform dependencies.

Revision 2.51 - (view) (download) (annotate) - [select for diffs]
Thu Jun 26 00:58:10 2003 UTC (21 years, 4 months ago) by schorsch
Branch: MAIN
Changes since 2.50: +3 -1 lines
Diff to previous 2.50
Abstracted process and path handling for Windows.
Renamed FLOAT to RREAL because of conflict on Windows.
Added conditional compiles for some signal handlers.

Revision 2.50 - (view) (download) (annotate) - [select for diffs]
Thu Jun 5 19:29:34 2003 UTC (21 years, 5 months ago) by schorsch
Branch: MAIN
Changes since 2.49: +3 -7 lines
Diff to previous 2.49
Macros for setting binary file mode. Replacing MSDOS by _WIN32.

Revision 2.49 - (view) (download) (annotate) - [select for diffs]
Thu May 15 05:13:35 2003 UTC (21 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.48: +3 -3 lines
Diff to previous 2.48
Eliminated -DBIGMEM define, since we always used it in makeall

Revision 2.48 - (view) (download) (annotate) - [select for diffs]
Tue Feb 25 02:47:22 2003 UTC (21 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.47: +1 -56 lines
Diff to previous 2.47
Replaced inline copyright notice with #include "copyright.h"

Revision 2.47 - (view) (download) (annotate) - [select for diffs]
Sat Feb 22 02:07:28 2003 UTC (21 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.46: +183 -61 lines
Diff to previous 2.46
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

Revision 2.46 - (view) (download) (annotate) - [select for diffs]
Sun Jan 10 12:45:19 1999 UTC (25 years, 10 months ago) by gwlarson
Branch: MAIN
Changes since 2.45: +19 -7 lines
Diff to previous 2.45
added ability to open and load read-only file in setambient()

Revision 2.45 - (view) (download) (annotate) - [select for diffs]
Wed Aug 12 18:16:07 1998 UTC (26 years, 3 months ago) by gwlarson
Branch: MAIN
Changes since 2.44: +3 -4 lines
Diff to previous 2.44
changed to using VCROSS() macro in extambient()

Revision 2.44 - (view) (download) (annotate) - [select for diffs]
Wed Jun 17 13:29:55 1998 UTC (26 years, 5 months ago) by gwlarson
Branch: MAIN
Changes since 2.43: +0 -1 lines
Diff to previous 2.43
moved lseek() and ftell() declarations to standard.h

Revision 2.43 - (view) (download) (annotate) - [select for diffs]
Sat Aug 30 10:17:01 1997 UTC (27 years, 2 months ago) by gregl
Branch: MAIN
Changes since 2.42: +23 -8 lines
Diff to previous 2.42
switched to geometric mean for average -av substitute

Revision 2.42 - (view) (download) (annotate) - [select for diffs]
Thu Jan 2 09:37:13 1997 UTC (27 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.41: +2 -1 lines
Diff to previous 2.41
corrected problem in error reporting

Revision 2.41 - (view) (download) (annotate) - [select for diffs]
Wed Jul 10 13:33:56 1996 UTC (28 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.40: +4 -4 lines
Diff to previous 2.40
added -aw to ambient file header
changed sort frequency slightly to adjust for slower ambient clock

Revision 2.40 - (view) (download) (annotate) - [select for diffs]
Tue Jul 9 21:56:44 1996 UTC (28 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.39: +8 -7 lines
Diff to previous 2.39
made ambclock advance more slowly

Revision 2.39 - (view) (download) (annotate) - [select for diffs]
Tue Jul 9 19:37:09 1996 UTC (28 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.38: +25 -19 lines
Diff to previous 2.38
made tick part of array to sort in sortambvals() to reduce paging

Revision 2.38 - (view) (download) (annotate) - [select for diffs]
Tue Jul 9 13:32:35 1996 UTC (28 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.37: +4 -3 lines
Diff to previous 2.37
fixed potential problem with alatcmp() function on 16-bit machines
made error-reporting version of avlmemi() the default

Revision 2.37 - (view) (download) (annotate) - [select for diffs]
Tue May 28 14:24:44 1996 UTC (28 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.36: +18 -4 lines
Diff to previous 2.36
added check for ambient value validity, ambvalOK(), called by readambval()

Revision 2.36 - (view) (download) (annotate) - [select for diffs]
Wed Feb 14 15:43:22 1996 UTC (28 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.35: +3 -8 lines
Diff to previous 2.35
added -aw option for ambient value weight

Revision 2.35 - (view) (download) (annotate) - [select for diffs]
Tue Nov 21 14:28:22 1995 UTC (28 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.34: +6 -3 lines
Diff to previous 2.34
improved logic for when to track time on multiprocessors

Revision 2.34 - (view) (download) (annotate) - [select for diffs]
Mon Nov 6 12:03:13 1995 UTC (29 years ago) by greg
Branch: MAIN
Changes since 2.33: +12 -7 lines
Diff to previous 2.33
added texturing to ambient value computation using extambient()

Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Tue Oct 24 13:33:23 1995 UTC (29 years ago) by greg
Branch: MAIN
Changes since 2.32: +9 -14 lines
Diff to previous 2.32
made setambacc() a little simpler

Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Tue Oct 17 18:22:47 1995 UTC (29 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.31: +23 -7 lines
Diff to previous 2.31
added automatic ambient value computation (AMBVWT != 0)

Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Tue Oct 3 11:53:30 1995 UTC (29 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.30: +1 -2 lines
Diff to previous 2.30
undid artifact of ancient change (1.6) that caused unnec. noise

Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Wed May 3 09:46:27 1995 UTC (29 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.29: +1 -1 lines
Diff to previous 2.29
changed maxarad heuristic limit and overrode super-sampling
for ambient values that have radii less than minarad after division sampling

Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Tue May 2 15:28:36 1995 UTC (29 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.28: +13 -10 lines
Diff to previous 2.28
adjusted sorting parameters and increased OCTSCALE

Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Sun Apr 30 13:24:36 1995 UTC (29 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.27: +14 -5 lines
Diff to previous 2.27
adjustments to sort interval defaults and minor improvements

Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Sat Apr 29 10:51:28 1995 UTC (29 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.26: +63 -29 lines
Diff to previous 2.26
minor improvements

Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Thu Apr 27 14:12:05 1995 UTC (29 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.25: +183 -12 lines
Diff to previous 2.25
added memory sorting to ambient caching module

Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Thu Jun 2 11:45:27 1994 UTC (30 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.24: +6 -4 lines
Diff to previous 2.24
changed setting of minarad for -ar 0

Revision 2.24 - (view) (download) (annotate) - [select for diffs]
Thu Mar 24 13:41:04 1994 UTC (30 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.23: +1 -0 lines
Diff to previous 2.23
Added new ID to first line of header and changed use of formatval

Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Sat Dec 18 10:37:01 1993 UTC (30 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.22: +12 -3 lines
Diff to previous 2.22
ordered ambient lists by level to improve virtual memory performance

Revision 2.22 - (view) (download) (annotate) - [select for diffs]
Fri Aug 6 17:24:24 1993 UTC (31 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.21: +2 -1 lines
Diff to previous 2.21
changed code to always seek even when it shouldn't be necessary

Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Thu Aug 5 16:25:05 1993 UTC (31 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.20: +43 -25 lines
Diff to previous 2.20
major and minor bug fixes

Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Thu Aug 5 10:02:00 1993 UTC (31 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.19: +68 -15 lines
Diff to previous 2.19
corrected flaws in setting and resetting of ambient accuracy

Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Wed Aug 4 14:22:11 1993 UTC (31 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.18: +39 -29 lines
Diff to previous 2.18
fixed bug due to NFS sloppiness on writing files w/o lock manager

Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Fri Jan 29 12:02:23 1993 UTC (31 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.17: +12 -12 lines
Diff to previous 2.17
made parallel operations conditional on F_SETLKW

Revision 2.17 - (view) (download) (annotate) - [select for diffs]
Tue Jan 26 09:08:20 1993 UTC (31 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.16: +7 -11 lines
Diff to previous 2.16
took out ambfname again

Revision 2.16 - (view) (download) (annotate) - [select for diffs]
Fri Jan 22 09:51:13 1993 UTC (31 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.15: +22 -13 lines
Diff to previous 2.15
bug fixes and improvements on stdio flushing

Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Wed Jan 20 10:48:23 1993 UTC (31 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.14: +22 -24 lines
Diff to previous 2.14
modified ambsync() to work on forked processes sharing file pointers

Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Tue Nov 3 21:29:52 1992 UTC (32 years ago) by greg
Branch: MAIN
Changes since 2.13: +6 -4 lines
Diff to previous 2.13
fdopen() error check in ambsync()

Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Fri Oct 2 16:14:53 1992 UTC (32 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.12: +0 -1 lines
Diff to previous 2.12
Removed problematic math function declarations

Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Mon Sep 21 12:07:31 1992 UTC (32 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.11: +33 -30 lines
Diff to previous 2.11
Changes for PC port

Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Thu Jul 16 19:44:46 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.10: +3 -3 lines
Diff to previous 2.10
added sync() call to avoid NFS buffering

Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Thu Jul 16 16:47:28 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.9: +28 -16 lines
Diff to previous 2.9
made ambsync() more efficient with use of duplicate file descriptor

Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Thu Jul 16 15:53:42 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.8: +34 -33 lines
Diff to previous 2.8
bug fix in misuse of lseek()

Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Thu Jul 16 14:03:27 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.7: +3 -2 lines
Diff to previous 2.7
minor changes

Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Thu Jul 16 13:37:12 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.6: +53 -9 lines
Diff to previous 2.6
added calls to lock ambient file and guarantee synchronization
between cooperating processes

Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Thu Jul 16 12:09:08 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.5: +34 -7 lines
Diff to previous 2.5
added header and magic number to ambient value file

Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Mon Jul 13 16:17:49 1992 UTC (32 years, 4 months ago) by greg
Branch: MAIN
Changes since 2.4: +3 -3 lines
Diff to previous 2.4
made ambient files portable between machines

Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Fri Apr 10 16:14:34 1992 UTC (32 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.3: +2 -0 lines
Diff to previous 2.3
avoid zero maxarad for scenes with no local objects

Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Wed Mar 4 16:52:13 1992 UTC (32 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.2: +19 -6 lines
Diff to previous 2.2
improved assignment and use of minarad and maxarad

Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Wed Jan 15 10:36:42 1992 UTC (32 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.1: +1 -1 lines
Diff to previous 2.1
changed jittering test to use urand

Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Tue Nov 12 17:09:42 1991 UTC (33 years ago) by greg
Branch: MAIN
Changes since 1.18: +0 -0 lines
Diff to previous 1.18
updated revision number for release 2.0

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sat Oct 26 15:19:06 1991 UTC (33 years ago) by greg
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
fixed test when ambrad == 0.

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Aug 29 11:13:14 1991 UTC (33 years, 2 months ago) by greg
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16
changed heuristic value for when to demote ambient comp. weight

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Tue Aug 20 10:05:18 1991 UTC (33 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.15: +31 -24 lines
Diff to previous 1.15
made ambient value weighting and levels more incremental

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Thu Jun 13 09:41:15 1991 UTC (33 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.14: +27 -1 lines
Diff to previous 1.14
fixed constants in ambcomp.c and added gradient calc to ambient.c

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Fri Jun 7 10:04:29 1991 UTC (33 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.13: +13 -225 lines
Diff to previous 1.13
created ambient.h and ambcomp.c files

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Jun 6 10:48:50 1991 UTC (33 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.12: +16 -8 lines
Diff to previous 1.12
some minor improvements

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Wed May 22 12:44:39 1991 UTC (33 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.11: +22 -5 lines
Diff to previous 1.11
added stratified sampling with urand()

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Fri Sep 7 08:17:42 1990 UTC (34 years, 2 months ago) by greg
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10
Added check for ambset overflow

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Tue Jun 26 09:00:07 1990 UTC (34 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.9: +0 -1 lines
Diff to previous 1.9
Nit-picking for Stardent C-compiler

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Fri Jan 19 00:00:05 1990 UTC (34 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8
improved portability and speed of bcopy()

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Fri Jan 12 11:30:59 1990 UTC (34 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.7: +20 -14 lines
Diff to previous 1.7
changed recording of ambient include/exclude set so instances work

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Tue Sep 5 09:46:17 1989 UTC (35 years, 2 months ago) by greg
Branch: MAIN
Changes since 1.6: +19 -24 lines
Diff to previous 1.6
undid last change, which didn't do much but make artifacts

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Tue Aug 8 17:31:23 1989 UTC (35 years, 3 months ago) by greg
Branch: MAIN
Changes since 1.5: +25 -19 lines
Diff to previous 1.5
Sum children first and quit if more than WDONE over requirement

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue May 30 20:06:09 1989 UTC (35 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
Undid last delta, calculating error not variance!

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Tue May 30 11:06:29 1989 UTC (35 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3
Fixed wrong calculation of variance

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Fri May 26 17:58:01 1989 UTC (35 years, 5 months ago) by greg
Branch: MAIN
Changes since 1.2: +17 -16 lines
Diff to previous 1.2
Added variables to avoid confusion in doambient

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Tue Feb 21 14:34:08 1989 UTC (35 years, 8 months ago) by greg
Branch: MAIN
Changes since 1.1: +5 -6 lines
Diff to previous 1.1
Fixed incorrect octree test in sumambient

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Thu Feb 2 10:41:17 1989 UTC (35 years, 9 months ago) by greg
Branch: MAIN
Initial revision

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to rad3R7P1: (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