问题
When I tried to import an image from vuforia target manager, it appears in unity3D as a white plane, whatever the image is, especially if it is a black image. how can I solve this issue
回答1:
Maybe you didn't do it right in one of these steps:
- Verify your image target in the site: (show features)
- Download as Unity package
- In Unity, import package…
- Drag and drop a prefab for AR Camera
- Check the box for your Image Target to make sure it is enabled
- Drag and drop a prefab for Image target
- Set the DB and your image target in the Image Target properties
- You have to see the texture of your image target in the prefab. (Not a white plane)
回答2:
1 ) Go to Project > Editor > QCAR > ImageTargetTextures > DataBaseName in Project Window Assets Folder.
2) Click on ImageNmae_scaled
3) In inspector window Set :
3.1) Texture Type to : Default
3.2) Texture shape to : 2D
See Image
4) Hit Apply
5) Click on ImageTarget in Hierarchy View and in inspector select Database and your Image target
6) You Are Done !
回答3:
Similar problem in 5.5.1 Unity for me. Following those steps doesn't work for me, but if I go to the imported image textures I can change the texture type to light map or sprite and they will show the actual image. Not sure why that is required now, but I can't seem to figure out any other way. The application works perfect with the panels being white, but it's hard to properly position my prefab models on it. Changing the texture types so I can view the image doesn't seem to mess with anything either so that is one solution if anyone is having this problem still.
回答4:
when you have more problems, you can also try not to use object recongition. You can try to use cloud recognition. Vuforia allow us to create a cloud recognition as a target database. It may solve your problem.
来源:https://stackoverflow.com/questions/31719847/images-issue-in-vuforia