c# - How to augment the live rgba stream with a 3d model? -
i trying augment live rgba stream kinect sensor 3d models using xna (i.e. adding 3d models live video scene).
i succeeded in augmenting scene 2d sprites (e.g. circles) cannot add together 3d objects (i think objects there hide because of video texture). can see 3d objects if don't draw video stream, start applying video stream, objects disappear.
in xna 2d , 3d rendering calls handled differently:
2d renderings executed without using depth buffer (have @ post) 3d renderings executed using depth buffer defaultso want check if z coordinates of objects want render right:
if rendered pixels of 3d model farther away rgbd data, rgbd video stream overwrites 3d model's pixel or discarded right away if rendered after rgbd data.
try moving whole rgbd info away photographic camera , see if 3d model appears. accomplish increment depth values of data. otherwise decrement 3d models z coordinate until can see it. watch out may result in 3d model beingness rendered behind camera.
c# xna kinect-sdk
No comments:
Post a Comment