RobertLeahy / KinFu

GNU Lesser General Public License v3.0
6 stars 3 forks source link

Real time visualization #189

Open jordan-heemskerk opened 8 years ago

jordan-heemskerk commented 8 years ago

In the surface predicition pipeline block, add a new output called colors.

When a pixel's vertex and normal have been computed, use phong shading to determine a color.

Ship this array of colors back to the CPU (?) and render them to an OpenCV frame? Or do we need to use another pathway?

jordan-heemskerk commented 8 years ago

Looks like there is some good code here that shows how you can take the colors and map the to a OpenGL texture and then render them on a quad.

http://www.gamedev.net/blog/1241/entry-2254210-realtime-raytracing-with-opencl-ii/

jordan-heemskerk commented 8 years ago

This could be helpful http://boostorg.github.io/compute/boost_compute/interop.html#boost_compute.interop.opengl