Re:A reasonably speedy Python ray tracer
by CyberDildonics on Saturday October 21, 2017 @04:14PM
(#15523394)
The demos that come with embree do simple stuff like this in real time, which would be about 450 times faster, so I wouldn't call this 'reasonably speedy'.
[ Parent
| on HN ]
Re:A reasonably speedy Python ray tracer
by Marazan on Saturday October 21, 2017 @04:53PM
(#15523568)
'in python'
No one is ever going to even think of implementing a ray tracer in Python for anything more than fun or education.
Re:A reasonably speedy Python ray tracer
by dahart on Saturday October 21, 2017 @05:26PM
(#15523695)
This one is close to real-time at 115ms. Maybe you missed paragraph 2?
You could pack the raytracer and the scene into a GLSL fragment shader without any trouble whatsoever and achieve something greater than 30fps out of the gate.
Check out https://www.shadertoy.com/ - all of this crazy stuff is generated using two triangles and a fancy shader. Almost every 3D scene there is generated using some form of ray casting or ray tracing on the GPU.
Re:A reasonably speedy Python ray tracer
by CyberDildonics on Sunday October 22, 2017 @07:41AM
(#15526310)
It does that by calling in to numpy which is native.