Hello,
Please forgive me if this sounds ridiculous. I am a graphic designer, with very little programming skills, but a desire to learn, who used Metaio for AR nd am now trying to learn Unity and Vuforia.
I am trying to re-create an AR scene I had origianlly created in Metaio's Creator.
In this scenario, I have a trigger image that is the botton portion of a poster that stands upright on the floor.
When the camera tracks the image, a 3D "Monster" appears to come up out of the floor and grab a 3D person who is also in the scene.
I was able to do this successfully in Metaio's Creator Studio.
In Unity, I have the tracking image in place at a 90degree angle to my 3D models. I have the 3D models positioned in front of the tracking image as children of the trackng image.
The models were supplied to me as one .FBX file, with 2 animations Take001 and Take002.
I have placed what I'd like to call an "occlusion plane" <-- this maynot be the correct terminology, but essentially it should be invisible to the viewer, but at the same time hide the monster until the animation is played and the moster rises out of the floor to grab the 3D person.
My problem is:
The plane that I have placed bretween the 3D person and 3D monster IS VISIBLE to the user through the iPad camera. I want it to be INVISIBLE to the camera, so the viewer only sees the flor until the animation starts, and the augmentation appears.
I have been experimenting with depth-shaders, transparencies and the like, but with no success. I have also bee searching Google and YouTube for help without success.
I did find this article: https://developer.vuforia.com/library/articles/Solution/How-to-Use-an-occlusion-model
Unfortunately, I don't quite understand it and I've read and re-read it quite a few times. I'm sure this is what I need to do, but I don't understand the steps.
I have drawn a sketch of what it should look like.
I'd appreciate it if someone could help me out in plain Enlgish - I am a newbie, but like I said I want to learn.
Thankyou kindly for your time.
Kimber
Attachment | Size |
---|---|
![]() | 69.26 KB |
@dpizzle
In answer to your questions, I am using Unity 5.3.1f1 and Vuforia... I'm not 100% sure, I don't think it's the latest and greatest.
No, the plane is not visible in the Scene view, and the Game view is entirely black, so I couldn't tell.
However, I do have a solution:
I have added the Depth Mask material from the Qualcomm Augmented Reality folder to my plane.
I have also added the Video Material material from the Qualcomm Augmented Reality folder to my plane.
Then, under the Video Material, I chose Customer > Video Background in the Shader dropdown.
My issue was that I was unaware that you can add more than one material to a given object.
Now, when I play the scene in the Unity player, the moster is hidden until it pops out from the "floor" and grabs the guy and pulls him down. Exactly as intended!
I really appreciate your time and effort.
I know it's difficult to help someone when you're not exactly sure of all the circumstances surrounding their project.
Hopefully, someone in the future may also be able to benefit from this posting.
Respect,
Kimber