From 1a6dc30108d3e78f72f773ec025fc98e246f68f5 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Sat, 30 Jul 2011 16:10:27 -0400 Subject: when throwing photons from the light source out onto the scene, photons are now thrown randomly across each triangle instead of only at the center of each triangle. all of the rendering kernels have been rewritten so that they operate additively; for example, you may now throw photons from the light source onto the scene, render from the camera to the scene, then throw more photons and render again. --- solids/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'solids/__init__.py') diff --git a/solids/__init__.py b/solids/__init__.py index 338725c..072c220 100644 --- a/solids/__init__.py +++ b/solids/__init__.py @@ -27,6 +27,12 @@ def build_12inch_pmt_with_lc(outer_material=water, theta=np.pi/8): pmt = build_12inch_pmt(outer_material, theta) return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax) +@buildable('12inch_pmt_with_lc_hd') +def build_12inch_pmt_with_lc_hd(outer_material=water, theta=np.pi/32): + pmt = build_12inch_pmt(outer_material, theta) + return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax, npoints=25) + + @buildable('8inch_pmt') def build_8inch_pmt(outer_material=water, theta=np.pi/8): return build_pmt(dir + '/sno_pmt.txt', 0.003, outer_material, theta) -- cgit From 2b1a23e20c08423dd6f0d290ec87bef2f836fbe1 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Sat, 30 Jul 2011 21:03:45 -0400 Subject: you can rotate just the camera by holding the control key and take movies by pressing the m key. --- solids/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solids/__init__.py') diff --git a/solids/__init__.py b/solids/__init__.py index 072c220..d37af7e 100644 --- a/solids/__init__.py +++ b/solids/__init__.py @@ -28,9 +28,9 @@ def build_12inch_pmt_with_lc(outer_material=water, theta=np.pi/8): return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax) @buildable('12inch_pmt_with_lc_hd') -def build_12inch_pmt_with_lc_hd(outer_material=water, theta=np.pi/32): +def build_12inch_pmt_with_lc_hd(outer_material=water, theta=np.pi/64): pmt = build_12inch_pmt(outer_material, theta) - return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax, npoints=25) + return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax, npoints=100) @buildable('8inch_pmt') -- cgit