Building an Augmented Reality Application with Unity no Device needed
ฝัง
- เผยแพร่เมื่อ 26 พ.ย. 2024
- Using Unity 2021.3.5f1 and Vuforia 10.12.3 to create Image Target Recognition Augmented Reality.
This tutorial is entirely on the computer and uses a webcam. In the next tutorial, we look at pushing this application to an iOS device for further testing.
sir thankyou so much. you have saved my Final Year Project. Thanks alottt
😀
Glad to hear that! I hope your project showcases well in your portfolio and helps you on your path after graduation!
create this same project, and the build has a black screen after I run the .exe, why is that?
The Unity + Vuforia editor has a built in bootstrapping to allow the Unity Editor to access your webcam through the Vuforia code. When you publish this to an .exe, this is not included as Vuforia is intened for mobile devices. The project will only work within editor testing, not as a .exe build.
@@iamprofmoto ok thank you
Great tutorial. I liked and subscribed. Please release more Unity AR for IOS. Thank you
@henryqng I think you'll enjoy the latest video: th-cam.com/video/5-fEzg3ryss/w-d-xo.html
Me too!! Thanks ProfMoto
Hi there, I have a problem with entering the vuforia license key. Whenever I enter the key, it takes me to the vuforia website and asks me to log in. When I log in and copy the license key, paste it to the license key in Unity, it again takes me to Vuforia website and asks me to log in again. Can you please help me with this issue? Thanks so much.
@elhamhajesmaeili Are you clicking the 'Add License' button in Unity? This is usually the step that people are doing that takes you to the Vuforia website. You do not need to click this button. Once you have pasted your license key into the correct spot in Unity, you can simply click away and go back to work. Please let me know if that works or if you have a different problem. Good luck with you build!
Great bro, I just would like to know how to create some movement on the astronaut, fx blend in from the back of the image target, or something like that. 😊😊
Cool video!
@alanchac I can definitely cover that in a future video, check back in the near future or subscribe to get notified when I post it. Cheers!
@alanchac I wanted to give you an update on this. I’m almost ready to post a tutorial for this, but the last few generations of Vuforia code changes are creating some problems. I’m hoping to have it ironed out and posted soon!
@@iamprofmotofantastic!
@@iamprofmoto great !!
@@Firulaisneado It took longer than expected, because Vuforia's changes in code are a complete maze, but here is the answer to your request: th-cam.com/video/5-fEzg3ryss/w-d-xo.html
Let me know if you have any questions or more requests!
Great tutorial. I have a Logitech HDcam and the streaming framerate is horrible. Is it the version of unity? I'm using 2021.3 , vuforia 10.5..
@Ken3dguy sorry to hear you are having framerate issues. That is disappointing! I've never had issues like you are having so anything I'd suggest would be a complete guess. Vuforia 10.5 is a tiny bit on the old side, this tutorial is using 10.12. I often find that different versions of Unity conflict with different versions of Vuforia, so you could try running the exact versions I'm using in the tutorial to see if that helps? You can also try checking your Vuforia settings in the editor and see if it is recognizing your specific webcam or using using a generic setting?
@@iamprofmoto Sorry, running Vuforia 10.15.4 , yes HD webcam set, still very slow/choppy
what types of logitech webcam support vuforia?
Hey there! I'm having an issue, when I build the project the camera stays blank, as if there were no webcam connected to the pc, although the project works fine if I try running it in editor. Might you have any suggestions on troubleshooting, since Google didn't find anything useful. Thanks!
@theCoolcy unfortunately, you have found the Achilles heel of Vuforia! Vuforia only supports the use of the webcam through Play mode in Unity, it does not support the webcam if you build an actual .exe. I have not found a work around to get around this, so I'm afraid we remain limited to the in Editor Play mode.
Hi im having a bit of a problem, I'm using camo as a webcam and ive added it to that webcamprofiles but the console keeps saying "Failed to start Vulforia". I am using the latest update on each app (unity and vulforia), do you think this is the problem?
Do you have all of the proper keys in place from Vuforia on your Vuforia Camera in the Unity Scene?
Terrific tutorial.
Do you know if Vuforia will work with Unity WebGL platform as the target?
@rangleme thanks for the comment. Unfortunately it appears that Vuforia's support for PC/Mac builds and the use of webcams is only supported in the editor. Publishing this out to a executable breaks the functionality of Vuforia and yields only a black screen. I'll do a quick test today to confirm that this is also the case with WebGL. So far there are no work arounds.
@@iamprofmoto Thanks for the info - I did a little research, and their goal is to support development and mobile... so no WebGL or desktop builds.
@@rangleme correct. So while this process works fine for testing within the editor, Vuforia's support of the webcam ends there, which is unfortunate, but at least it allows quick and easy testing before engaging the steps to publish to mobile devices!
@@rangleme Just to confirm, I attempted a build and publish to WebGL which triggered 8 fatal errors in the build.
Can you help me? what kind of type webcam supoort vuforia engine?
I'm using a Logitech Brio 4k webcam and haven't had any issues. A built in webcam on a Razer and on a Apple have all worked with no issues. Outside of that, I'm sorry I can't help other than to tell you to check in on the documentation from Vuforia.
HELLO HELLO LOVE YOUR VIDEO , but is there any way I can do this without a target image ?
@chanzz4910 I don't have any tutorials built for AR without target images yet. I plan to build new tutorials for non-target image work in either Fall 2023 or Spring 2024, so please check back in the future!
is it work on WEBGL export on server ?
I do not believe WEBGL has the ability to access a webcam on a computer and this will also, therefore, fail to work. Sorry!
do i need to pay
@Loganstudiosxyz this should work on the free license of Unity and Vuforia. Vuforia only requires a paid account if you have a high enough number of recognition requests from the cloud server. You should be able to do a LOT of testing before you hit that threshold. And if you hit that threshold then it must mean that you have a lot of people testing your application, congratulations!