Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by czadam · Oct 14, 2012 at 08:25 PM · meshaugmented-realityrender

Vuforia: Hide object behind ImageTarget

Hi! I am using Unity with Vuforia extension. And I want to animate an object, which comes from behind the ImageTarget and goes in front of it. I want to make it coming out of the picture. Is there a way to make the image transparent for the camera, but I don't want the objects to be drawn behind it?

This is an AR app. When I point my camera to the real painting the frameworks recognizes the image below (as a marker) and then draws the red cube. This is what I see in the editor, but when I build the app, I don't render the image, because I don't want to project the image of the painting on the camera image. But as I don't render image, the whole cube can be seen, and it not "goes through the painting". I hope it is clear now, what I am trying to do.

http://i.imgur.com/sbfAM.png

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by idunlop_oefun · Oct 15, 2012 at 02:22 AM

Create a plane that sits in the same position as your image marker (or just behind it). Then use a material with the 'depth-mask' shader to render that plane. Any object behind that masking shader is invisible (i.e. all you'll see is what the device camera is seeing).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by sparkzbarca · Oct 14, 2012 at 08:57 PM

so what you want like

things you cant see blocked by object object you cant see cause its invisible image you can see through camera

Thats what you seem to be saying in which case it just doesnt make sense, How can you ability to see something be blocked by an invisible object, But irregardless it could probably be done by casting a sphere behind the object collecting the nearest objects and setting there transparency to full until you decide to reveal them

if you actually wanted

ojbect hidden that will pop out image camera

You can simply place the object in the scene and set its ALPHA value to 0

alpha is a number between 0 and 1, 0 = fully transparent, .5 something like fogged glass, 1 = non transparent.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image czadam · Oct 14, 2012 at 09:51 PM 0
Share

I updated my question, maybe it is clear now what I am trying to accomplish.

avatar image
0

Answer by TankThunderbird · Nov 28, 2016 at 08:04 AM

Depth-mask works great, but the plane has to be attached to the image marker of the object to be concealed.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by madhu_unity425 · Feb 12, 2019 at 01:08 PM

can you people help me

how to hide or Mask the image target after tracking found,

I don't want to see the image target after scanning, I want to mask component

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Combining Mesh's For Mesh Deformation 1 Answer

Mesh render flicker 2 Answers

can't put texture materials on imported mesh. 1 Answer

I would like to calculate the rotation from a generated mesh (kind of the normal but also not) 0 Answers

Dynamic mesh is black except up-close 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges