summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-05 18:37:17 -0400
committerStan Seibert <stan@mtrr.org>2011-08-05 18:37:17 -0400
commitef9a4f8925f6693044f8c14a744d9c9fe3120f83 (patch)
treebeafce6ebcd1104c933ee1b9d35714a8d461c743
parent1711f85bed5ad279d6b66d0373926da55e07c0ca (diff)
downloadchroma-ef9a4f8925f6693044f8c14a744d9c9fe3120f83.tar.gz
chroma-ef9a4f8925f6693044f8c14a744d9c9fe3120f83.tar.bz2
chroma-ef9a4f8925f6693044f8c14a744d9c9fe3120f83.zip
Warn user if for some reason the default BVH quantization is used because
they didn't build the geometry before loading it on the GPU.
-rw-r--r--gpu.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu.py b/gpu.py
index 11a83ee..e5040a8 100644
--- a/gpu.py
+++ b/gpu.py
@@ -74,6 +74,7 @@ class GPU(object):
def load_geometry(self, geometry):
if not hasattr(geometry, 'mesh'):
+ print 'WARNING: building geometry with 8-bits'
geometry.build(bits=8)
self.geo_funcs.set_wavelength_range(np.float32(standard_wavelengths[0]), np.float32(standard_wavelengths[-1]), np.float32(standard_wavelengths[1]-standard_wavelengths[0]), np.uint32(standard_wavelengths.size), block=(1,1,1), grid=(1,1))