0xrabbyte / tinyraytracer-taichi Goto Github PK
View Code? Open in Web Editor NEWAn implementation of Ray Tracing in One Weekend using Taichi
License: MIT License
An implementation of Ray Tracing in One Weekend using Taichi
License: MIT License
[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'
Hi 0xrabbyte
恭喜你在本周太极图形课的直播抽奖环节中奖!快来将收件地址发给小编,太极周边将会快马加鞭向你飞奔而来~
小编的邮箱是:[email protected] 快递预计将会在下周五前发放完毕哦~
再次感谢你对图形课的支持,也为你的优秀作业点赞👍
太极图形课小编
2021.11.12
可以在外面加一个假循环串行最外层:
for _ in range(1):
for i in range(100): # 串行
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.