Code Monkey home page Code Monkey logo

tinyraytracer-taichi's People

Contributors

0xrabbyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tinyraytracer-taichi's Issues

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'

优秀作业中奖~快来联系我们哦

Hi 0xrabbyte
恭喜你在本周太极图形课的直播抽奖环节中奖!快来将收件地址发给小编,太极周边将会快马加鞭向你飞奔而来~
小编的邮箱是:[email protected] 快递预计将会在下周五前发放完毕哦~
再次感谢你对图形课的支持,也为你的优秀作业点赞👍

太极图形课小编
2021.11.12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.