AR Object Selection with Raycasting in AR Foundation with Unity3d

  Рет қаралды 38,947

Dilmer Valecillos

Dilmer Valecillos

Күн бұрын

AR Foundation with Unity3d is used to create an augmented reality scene where I walk you through the implementation and all the components required to use AR to perform object selection and also clearing out selection on not selected objects. We also go through the code and I explain to you how everything is configured and how the source code works.
New AR Foundation Components used in this Scene:
- AR Object Selection
- AR Clearning out selection of not selected objects
- AR Floating Objects
** Support me by Subscribing to the channel as it will help me in bringing a lot more content **
bit.ly/2NmnFMu
** Find the source code in Patreon and support me if you can even if it is with one of the lower tiers as it helps me in bringing you more content - THANK YOU **
/ dilmerv
** EQUIPMENT USED TO RECORD THIS VIDEO **
- Photography Photo Portrait Studio 600W Day Light Umbrella - amzn.to/2WwI0Tc
- 1350W Photography Lighting Softbox Lighting Kit - amzn.to/2MgvV0r
- LimoStudio 6 x 9 ft. Green Muslin Backdrop with Ring Metal Holding Clips - amzn.to/30NofpT
- AmazonBasics 60-Inch Lightweight Tripod with Bag - amzn.to/2Wd8utF
- Canon EOS Rebel T6 Digital SLR Camera Kit - amzn.to/2WcnRlV
Supporters in Patreon help me and show your appreciation for all the content and source code provided thanks!
github.com/dilmerv/UnityARFou...
Support me in Patreon so I can keep doing stuff like this for free!
/ dilmerv
Get realtime indie development tips from me in Twitter
/ dilmerv
Subscribe to my indie development videos & game releases newsletter
www.dilmergames.com
Blog about Indie development and startup
www.dilmergames.com/blog

Пікірлер: 54
@chloefyvieadams
@chloefyvieadams 2 жыл бұрын
Thank you so much for this, really appreciate it!! Is there any way to make an audio clip start when an object is selected?
@DavidIsOdd
@DavidIsOdd 2 жыл бұрын
Great video!
@dilmerv
@dilmerv 2 жыл бұрын
Thanks David 🙏
@adruvitpandit5816
@adruvitpandit5816 5 жыл бұрын
Nice vid mate.
@dilmerv
@dilmerv 5 жыл бұрын
Thanks Ravi I appreciate your time and feedback :)
@hernandeztorresederjairdej5564
@hernandeztorresederjairdej5564 4 жыл бұрын
So when do I have to use the raycastmanager ?
@bilbostabbins1882
@bilbostabbins1882 3 жыл бұрын
Thank you so much Dilmer Valecillos for this tutorial I was very confused when it came to raycasting with either the AR Raycast Manager or Physics Raycast and this video help clear it all up! Although I'd like an explanation as to why we use Physics.Raycast instead of the AR Raycast manager Anyway thank you for the tutorial! Liked and Subbed!
@bilbostabbins1882
@bilbostabbins1882 3 жыл бұрын
nvm I found the answer in one of your other videos! I Hope you are keeping well Dilmer!
@tanmaysinghal8370
@tanmaysinghal8370 3 жыл бұрын
@@bilbostabbins1882 could u share the video, ot tell the difference here?
@aakp3005
@aakp3005 3 жыл бұрын
Hey Im using this for an Ar School Procjet. Im new to Unity how do i fix "The type or namespace name' PlacementObject' could not be found( are you missin a using directive or an assembly reference?)
@yensid46
@yensid46 3 жыл бұрын
Trying to follow along and build this as you explained things. Is there another tutorial that goes into detail? because this one is pretty much high level and seems to be missing things. Like the canvas, dismiss button, If I were experienced at this I wouldn't need to be watching these tutorials. The playlist does not seem to be in order for following along.
@andyward7961
@andyward7961 4 жыл бұрын
Hi Dilmer, thanks for the tutorial. I have followed this tutorial and the next one about selecting multiple objects. I am experiencing an error when instantiating multiple objects. As soon as i start my application, many objects are spawned as i look around with my phone even without pressing on the screen. I have tried to change a few things and have followed and double checked what you have included in your script however there is still an error. Thanks.
@dilaysapmaz2572
@dilaysapmaz2572 3 жыл бұрын
Hi Dilmer. First, thank you for the video! May I ask that what this button does? in AR Session Origin -Dismiss Button?
@amalderraz5942
@amalderraz5942 3 жыл бұрын
Hello @Dilmer Valecillos, thank you for videos, it's too helpful and beneficial. I have the issue with the gameobject. My gameObject is a prefab with children that should be instantiate it after detectecting an indicator. I don't know how to deal with it. Need some extra-information.
@jpreskitt
@jpreskitt 3 жыл бұрын
Hi Dilmer ! Love your channel. Do you have the project files for this? Thanks in advance.
@bestseller1234
@bestseller1234 4 жыл бұрын
Great work Dilmer.... really helpful. Have you tried using the AR Camera to trigger an event -- activate a gameObject or trigger animation for a gameObject. When the player/ Camera moves within a certain distance of the gameObject, it appears or so on... If you have, could you please make a video about proximity/ range based triggers??? That would save my life... ha ha. Thanks in advance and brilliant work again.
@dilmerv
@dilmerv 4 жыл бұрын
I haven’t but I have some ideas on how to implement it :) let me add this to my list of future videos ! Thanks for your feedback !
@syaahir9588
@syaahir9588 2 жыл бұрын
@@dilmerv hi sir, do you the tuttorial on the ar camera to trigger event?
@finanzenkeine
@finanzenkeine 4 жыл бұрын
where did you build the welcome panel? did i miss that or isnt it included in your video?
@dilmerv
@dilmerv 4 жыл бұрын
The code is here github.com/dilmerv/UnityARFoundationEssentials
@samuelmoor7612
@samuelmoor7612 5 жыл бұрын
Hey man, I've been watching your videos and I'm working on a project. Is it possible to convert the positions from an AR object to world coordinates? I have implemented MapBox so the user can see his location on a mini map. But I don't have a clue how to visualize the position of the AR Objects on the map. Thank you man, appreciate your videos!
@dilmerv
@dilmerv 5 жыл бұрын
Hey man I honestly haven’t done anything like that but let me do some prototyping and see if I can come up with a simple example so added it to my TODO list :) thanks for watching !
@samuelmoor7612
@samuelmoor7612 5 жыл бұрын
@@dilmerv Thanks man, I think I have found a solution. I may share it to you when I have tested it :) Thank you
@aronpolner1781
@aronpolner1781 5 жыл бұрын
@@samuelmoor7612 please share what you've found! I'm working on something similar where I'd like to place AR objects at world coordinates. MapBox can't solve this from what I understand. I've tried the asset AR + GPS which works sort of ok but I'm always interested in learning more about how other go about solving this.
@kahlilcalavas8948
@kahlilcalavas8948 5 жыл бұрын
Here is a nice asset for gps ar with foundation assetstore.unity.com/packages/tools/integration/ar-gps-location-134882
@xavierstone5191
@xavierstone5191 4 жыл бұрын
@@aronpolner1781 you can try it !blog.anarks2.com/Geolocated-AR-In-Unity-ARFoundation/
@Skankhunt-bj2us
@Skankhunt-bj2us 4 жыл бұрын
Dear Mr. Valecillos, I started watching your videos today. I benefited theoretically, but could not apply it successfully. When I press play AR Camera does not render webcam so, what I recieve is just black screen without any errors. I would be glad if you respond. I use 2019.3.0f6 and have the latest packages. Also I would like to emphasize that I did not experience it while I was using Vuforia.
@dilmerv
@dilmerv 4 жыл бұрын
Correct it won’t render the webcam, you need to build this to the device since AR Foundation doesn’t support that feature just yet.
@Skankhunt-bj2us
@Skankhunt-bj2us 4 жыл бұрын
@@dilmerv I ran the app in my phone, version is 7.1.1, it did not work either. How can I learn if it happens due to my phone, code or unity?
@muhammadtalhaali2541
@muhammadtalhaali2541 4 жыл бұрын
Sir i am using AR Foundation on unity 2018 version 22 and ARcore version 24 , i wanted to ask you that it just detects the plane and places object onto it i want it to stay at a position but it moves along with me , im making a football game :/
@dilmerv
@dilmerv 4 жыл бұрын
Look at the script and do not update the object position after the RayCast was executed, this will keep the object in place after you place it on the plane.
@muhammadtalhaali2541
@muhammadtalhaali2541 4 жыл бұрын
@@dilmerv Thanks alot sir i will try it and tell you the results
@dilmerv
@dilmerv 4 жыл бұрын
Analyst's Art cool and let me know if you have further questions.
@muhammedaldemir8371
@muhammedaldemir8371 4 жыл бұрын
hey dilmer ar camera doesn't work when I open any scene
@dilmerv
@dilmerv 4 жыл бұрын
Interesting I wonder what device you are using ?
@alinazhuang904
@alinazhuang904 4 жыл бұрын
May I ask that why use physics.Raycast not ARraycast here?
@justinrivera7800
@justinrivera7800 4 жыл бұрын
Because the ARRaycast is when we are messing with AR Planes.
@fast_ray_leeare_lap5875
@fast_ray_leeare_lap5875 4 жыл бұрын
I've got my ChangeSelectedObject,placedObject and inactiveColor underlined red(wrong) eventhough I follow your code
@dilmerv
@dilmerv 4 жыл бұрын
I will have to look at your code to verify what you did, paste as snippet and I can double check.
@fast_ray_leeare_lap5875
@fast_ray_leeare_lap5875 4 жыл бұрын
@@dilmerv I think I did not write some of the vital code..I'll try to download your code and run it later...I'll inform you if things go wrong or right...thanks for your concern
@MultiNoonah
@MultiNoonah 2 жыл бұрын
Welcome I think you have a lot of great and very helpful videos But I did not find a solution to my problem Do you have social networking sites that I can send a video of my project to see the problem?? My problems with the size of each drop the size of the object is changed - Before implementing the object projection, it rotates using the tactile control, and when adding the projection feature, the rotation stops If you want to help me, I would be grateful
@dilmerv
@dilmerv 2 жыл бұрын
Thanks for the info, yes you can join my discord server and there is a community there that can assist you discord.gg/ghPJh5g
@Lulink013
@Lulink013 2 жыл бұрын
The code for the raycast is at 4:30
@dilmerv
@dilmerv 2 жыл бұрын
Thank you
@HowDoYou___
@HowDoYou___ 4 жыл бұрын
My PlacedObjects are not appearing at all. I've been at this for a day now and cannot figure it out!
@HowDoYou___
@HowDoYou___ 4 жыл бұрын
I've moved my AR Camera out so the PlacedObjects are in the scene. They appear but are not static, that is, they seem pinned to my screen instead of having an origin.
@dilmerv
@dilmerv 4 жыл бұрын
Are you making sure to place them once the plane is detected and at the Raycast location hit ?
@tanmaysinghal8370
@tanmaysinghal8370 3 жыл бұрын
Github link is not working bro.. please share the link again
@dilmerv
@dilmerv 3 жыл бұрын
Thanks for the info I updated the github link in the description.
@muhammadtalhaali2541
@muhammadtalhaali2541 4 жыл бұрын
Is there anyone who has worked on it ? i wanna talk to them
@dilmerv
@dilmerv 4 жыл бұрын
What part do you need help with ?
@muhammadtalhaali2541
@muhammadtalhaali2541 4 жыл бұрын
@@dilmerv Sir i am using AR Foundation on unity 2018 version 22 and ARcore version 24 , i wanted to ask you that it just detects the plane and places object onto it i want it to stay at a position but it moves along with me , im making a football game :/
你们会选择哪一辆呢#short #angel #clown
00:20
Super Beauty team
Рет қаралды 17 МЛН
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 9 МЛН
Unity AR Tutorial:  AR Raycast - place an object mutiple times
6:34
SoomeenHahm Design
Рет қаралды 7 М.
Augmented Reality Tutorial | Gaze Interaction in Unity
17:18
Third Aurora
Рет қаралды 62 М.
AR Foundation Object Placement - Unity Augmented Reality/AR
13:28
Langton's Loops: The cellular automaton that copies itself
12:01
davbrdavbr
Рет қаралды 445 М.
Walking AR with Google Geospatial API
2:44
Designium
Рет қаралды 3,6 М.