Log in or register to post comments

Depth mask on certain gameobjects

November 22, 2013 - 1:40am #1

Hi , I'm trying to fade some of my objects on certain locations. I can use depthmask material to fade them on a certain position but at the same time I want to see other objects which are in depth mask area. is there any way to only apply depth mask effect on certain objects in the scene?

I'll apprecaite if you can help me with this.

thanks

Depth mask on certain gameobjects

November 22, 2013 - 6:53am #5

Depth mask on certain gameobjects

November 22, 2013 - 4:44am #4

I am not sure.

I think you will probably need to experiment a little, possibly by deconstructing the Occlusion scene and the various materials / shaders of those objects.

Some of this is Unity related and you could experiment with putting the object without a DM on to a layer that gets displayed on top of everything else - see the Unity site / resources for more details.

 

N

Depth mask on certain gameobjects

November 22, 2013 - 4:35am #3

Thanks , imagine there are two objects and there is a wall with depth mask material in front of them which doesn't let the user see those objects , but we only need to hide one of the two objects , is there any way to only apply that depth mask effect on one of the objects? we also need to have both of the objects in our AR scene so we can't use AR camera mask.

thanks

Depth mask on certain gameobjects

November 22, 2013 - 3:41am #2

Do a search for Depth Mask to see whether any previous threads might help here:

e.g.

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/adding-depthmask-3d-model

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/depth-masking-unity

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/mask-ar-camera-using-custom-alpha-shape

 

From your description its not quite clear what you are trying to do, and it may be better if you can use the Occlusion sample as a reference here.

HTH

N

 

 

Log in or register to post comments