Skip to main content
1-Visitor
June 18, 2021
Solved

Occlusion Illusion - DepthMask

  • June 18, 2021
  • 1 reply
  • 4013 views

Dear PTC and Vuforia users,

 

I would like to use Vuforia Studio in conjuction with Model Targets, however the results we get this way are funky, that is Vuforia does not occlude the objects behind the real world like I've seen on some ARcore video. In Vuforia Engine for Unity Engine there is a material called "DepthMask", the same thing is called HoldOut shader in Blender. What it does is it hides an object behind an invisible object. What is in front of the object remains shown, what is behind is hidden with the masking object being invisible. 

 

This way I could target e.g. a toy car, target it as a model target, display air flow streamlines around the car while hiding those, who are behind the car.

 

I've seen a topic about TML shaders in for Vuforia Studio (Xray, dots...), but I do not know how to create my own. It would be nice, if there was a topic or a tool to convert Unity Material/Shader into a TML/GLSL text compatible with Vuforia Studio. 

 

Anyways - would anyone be so kind and create such a shader? I would be most grateful.

 

Thank You in advance,

 

With kind regards,

Tomáš

prejda_techsoft_0-1624003391953.png

 

 

 

 

 

 

 

Best answer by dsgnrClarK

Hi,

 

According to the attached image.

Seems it can be done with "Occluding" property.

https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FWidget3DModel.html

 

1 reply

16-Pearl
June 21, 2021

Hi,

 

According to the attached image.

Seems it can be done with "Occluding" property.

https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FWidget3DModel.html

 

1-Visitor
June 23, 2021
Hello, thanks - that is exactly what I needed, I omitted this option since for some reason when I tried that in past, it did not work out for me. Now it works flawlessly 🙂