[Taichi] version 0.8.1, llvm 10.0.0, commit cc2dd342, win, python 3.8.13
[Taichi] Starting on arch=cuda
2527
Generated Objects
Traceback (most recent call last):
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 970, in
build_bvh_tree(0, world.objects)
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 508, in build_bvh_tree
build_bvh_tree(bvh_tree[u].left, objs[:mid])
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 508, in build_bvh_tree
build_bvh_tree(bvh_tree[u].left, objs[:mid])
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 508, in build_bvh_tree
build_bvh_tree(bvh_tree[u].left, objs[:mid])
[Previous line repeated 9 more times]
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 512, in build_bvh_tree
is_hit, box_a = get_bounding_box(objs_id[bvh_tree[u].left], bvh_tree[u].time0, bvh_tree[u].time1)
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 313, in get_bounding_box
return sphere(sphere_centers[objs_ind[id]], sphere_radius[objs_ind[id]],
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\kernel_impl.py", line 99, in decorated
return fun.call(args)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\kernel_impl.py", line 135, in call
return self.func(args)
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 584, in bounding_box
return True, AABB(self.center - ti.Vector([self.radius, self.radius, self.radius]),
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\common_ops.py", line 24, in sub
return ti.sub(self, other)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 74, in wrapped
return a.element_wise_binary(imp_foo, b)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\matrix.py", line 159, in element_wise_binary
ret.entries[i] = foo(self.entries[i], other.entries[i])
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 63, in imp_foo
return foo(x, y)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 441, in sub
return _binary_operation(_ti_core.expr_sub, _bt_ops_mod.sub, a, b)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 176, in _binary_operation
return python_op(a, b)
TypeError: unsupported operand type(s) for -: 'SNodeHostAccess' and 'float'
[Taichi] version 0.8.1, llvm 10.0.0, commit cc2dd342, win, python 3.8.13 [Taichi] Starting on arch=cuda 2527 Generated Objects Traceback (most recent call last): File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 970, in
build_bvh_tree(0, world.objects)
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 508, in build_bvh_tree
build_bvh_tree(bvh_tree[u].left, objs[:mid])
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 508, in build_bvh_tree
build_bvh_tree(bvh_tree[u].left, objs[:mid])
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 508, in build_bvh_tree
build_bvh_tree(bvh_tree[u].left, objs[:mid])
[Previous line repeated 9 more times]
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 512, in build_bvh_tree
is_hit, box_a = get_bounding_box(objs_id[bvh_tree[u].left], bvh_tree[u].time0, bvh_tree[u].time1)
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 313, in get_bounding_box
return sphere(sphere_centers[objs_ind[id]], sphere_radius[objs_ind[id]],
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\kernel_impl.py", line 99, in decorated
return fun.call(args)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\kernel_impl.py", line 135, in call
return self.func(args)
File "E:/files/作业/计算机图形学/TinyRayTracer-Taichi/raytracing.py", line 584, in bounding_box
return True, AABB(self.center - ti.Vector([self.radius, self.radius, self.radius]),
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\common_ops.py", line 24, in sub
return ti.sub(self, other)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 74, in wrapped
return a.element_wise_binary(imp_foo, b)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\matrix.py", line 159, in element_wise_binary
ret.entries[i] = foo(self.entries[i], other.entries[i])
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 63, in imp_foo
return foo(x, y)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 441, in sub
return _binary_operation(_ti_core.expr_sub, _bt_ops_mod.sub, a, b)
File "D:\software\Anaconda\envs\master\lib\site-packages\taichi\lang\ops.py", line 176, in _binary_operation
return python_op(a, b)
TypeError: unsupported operand type(s) for -: 'SNodeHostAccess' and 'float'