How would I....

jd's picture

Hello gang! trying to make an effect I did for a client a long time ago in a 3d program, just live-action and with a kinect, but can't seem to wrap my head around the right way to approach it in QC...

The goal is to feed a greyscale image in (kinect depth) and 3d distort a different image in the Z based on brightness levels.

I can use image displacement to kinda/sorta get there,(see below example images for source and final) but that only works in the 2d x/y world, am hoping to get this to bulge in the Z axis (closer/farther from the camera based on brightness levels.)

Is this something you can do with meshes? at all?

thanks for your input!

cheers! jd

PreviewAttachmentSize
Source image.jpg
Source image.jpg14.2 KB
Displacement.jpg
Displacement.jpg46.2 KB

jd's picture
Re: How would I....

gtoledo3's picture
Re: How would I....

Hey there! I really love the CL approaches (and that one you link too that I made is really fast on well supported GPU's).

This is an approach that uses GLSL, that I've found to be a little better supported across the board :-) Both texture inputs are hooked to an iSight at the moment, but you can hook one to the depth channel. This has a couple of nice things like ability to push around the color texture and to clip the back.

PreviewAttachmentSize
GLSL Extrusion Shader.qtz6.8 KB
GLSL Extrusion Shader.png
GLSL Extrusion Shader.png295.91 KB

jd's picture
Re: How would I....

THAT was the ticket. Thanks!!!!! jd