taichi-dev / taichi_three

A soft renderer based on Taichi (work in progress)
https://t3.142857.red/
MIT License
223 stars 24 forks source link

screen_to_texcoor.py triggers error #28

Closed DenisTome closed 4 years ago

DenisTome commented 4 years ago

Vanilla screen_to_texcoor.py returns the following error:

File "examples/screen_to_texcoor.py", line 41, in <module>
    mid = gbuff.fetchpixelinfo('mid', coor)
File HOME/anaconda3/envs/dl/lib/python3.7/site-packages/taichi_three/buffer.py", line 91, in fetchpixelinfo
    return self[name][I].value
AttributeError: 'int' object has no attribute 'value'

Configuration OS: Ubuntu 18.04 taichi_three version: v0.0.9 Python version: 3.7.1

archibate commented 4 years ago

Thank for reporting! This is now being fixed in latest master. You may clone this repo and install it locally or wait for the v0.0.10 release to get this script work.