three-projected-material icon indicating copy to clipboard operation
three-projected-material copied to clipboard

Do not texture parts behind (hidden)

Open remmel opened this issue 4 years ago • 2 comments

Hi, thanks for your great lib!

It actually project the image on all part of the mesh, even if that part is behind (from the point of view of the camera used to project). Do you plan to add a "visibility check" to avoid projecting the image on not visible parts ? I only use 1 mesh.

image

Nothing special is done, but here is the code : https://github.com/remmel/image-processing-js/blob/45959089fbd042f5d3e986b73339131e238339be/pose-viewer/PoseCylinder.js#L62

http://remy-mellet.com/image-processing-js/pose-viewer.html?datasetType=LUBOS&datasetFolder=https://raw.githubusercontent.com/remmel/rgbd-dataset/main/20201130_195000.dataset

Thanks!

remmel avatar Feb 08 '21 17:02 remmel

Hmm I see, I didn't do this check for simplicity, it's quite elaborate and is called Depth testing. But I'll see if I can make it work!

marcofugaro avatar Feb 11 '21 16:02 marcofugaro

Yes, that's would be great :) on my side, I don't know anything about that shader topic!

remmel avatar Feb 11 '21 22:02 remmel