Hey guys,
first of all: the Vuforia-Plugin is great!
I work with unity.
I try to use the object recognition. It works well, but there are 2 open questions for me.
1. i want to rotate 3 cubes around the recognized object. Is it possible to hide the cubes when they are behind the recognized object? Like in real life. If anything is behind any other thing, you can not see it
2. Everytime when i import my models into unity and attach one of them to an ObjectTarget, the object does not appear in the Scene. So how do i know the real size of it? there is only a grey plane with blue borders above. I am struggeling with the correct position of my cubes and other gameobjects in relation to the recognized object
Iam sorry for the english :/
Thanks,
Benjamin Wolf
Hide virtual object behind real object
Yes you can hide the cube when goes behind the recognized object using the zmask shader. Create a model exactly same as recognized object and apply the zmask shader to that object (occlusion Concept) and place exactly at the recognized object position. it hides the cubes.
Hide virtual object behind real object
[quote=vamshi]
Hide virtual object behind real object
That is not a part of the vuforia. Just google it for z-mask shader. import the shader into unity and apply on 3d model.
Just create a shader from project tab and edit the code as below :
Hide virtual object behind real object
EDIT: all is working now. I do not know what i did wrong but now it works like a charm!
Hey,