Hey, I have followed every simple tutorial to get AR working and I think that I have set everything u correctly but for some reason nothing is working on the webcam editor play view unless there is something wrong with my webcam? I get this warning message Here is my setup. As I'm using the latest version of unity the vuforia was already inbuilt. The only reason I can think of is either I missed something or the webcam is not tracking/working from the warning? Other than that I did download the database called test and I did copy paste the license key so why do you think it may not be working Could it be the positioning of the camera and or image?
Are you not seeing the camera feed from your webcam when you run playmode? That warning doesn't necessarily mean the webcam won't function. You can try adding your webcam to the profiles.xml, the path in the error message is incorrect. You can find the file at this path: <Unity Install Directory>\Data\PlaybackEngines\VuforiaSupport\VuforiaResources Are you able to deploy to a device? Thanks!
Hey thanks for your reply Yes I can see the Web cam feed and I also tried on another laptop and still not working I'll try your solution when I return home but I wonder what else it can be if it doesn't work
HI All Is everyone here running the current version of Unity and Vuforia? (Unity 2018.2.2f1 and Vuforia 7.2.24). Since updating from previous version, I have the same problem - cannot see the mesh displayed on the target image. Here's a link to my post (no solution yet) https://forum.unity.com/threads/unity-vuforia-ar-not-working.544868/
The issue is resolved. The following solution works for me.. i think it helps you too. just put this script on camera using UnityEngine; using UnityEngine.Android; public class permissionscript : MonoBehaviour { GameObject dialog = null; void Start() { #if PLATFORM_ANDROID if (!Permission.HasUserAuthorizedPermission(Permission.Camera)) { Permission.RequestUserPermission(Permission.Camera); } #endif } } // here is my device camera script using UnityEngine; using UnityEngine.UI; public class simplecamera : MonoBehaviour { static WebCamTexture backCam; void Start() { WebCamDevice[] devices = WebCamTexture.devices; if(backCam == null) { backCam = new WebCamTexture(); } GetComponent<RawImage>().texture = backCam; backCam.Play(); } }
Hi @unity_hMv45ToPU0VAiQ Steps below on how to "install" the script: Create a new script name simplecamera, add the code to the script. Go the AR Camera -> Add Component and choose the simplecamera.cs However please note that the Warning usually can be ignored. Do you see the feed of the camera? Thank you. Vuforia Engine Suppory
I tried to add cs file this is the message I received. Please help! Asset Packages/com.ptc.vuforia.engine/Vuforia/Scripts/simplecamera.cs has no meta file, but it's in an immutable folder. The asset will be ignored.