cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Occlusion Illusion - DepthMask

prejda_techsoft
4-Participant

Occlusion Illusion - DepthMask

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

 

 

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

2 REPLIES 2

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

 

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 🙂
Announcements

Top Tags