AR Foundation with Unity3d And Adding A Realistic Statue With Toggling of Shadows And Lights

  Рет қаралды 16,055

Dilmer Valecillos

Dilmer Valecillos

5 жыл бұрын

In this video I walk you through creating a basic AR experience with AR Foundation but at the same time very realistic, we use a model from the asset store to bring a realistic statue to the augmented world of AR. Watch this video and join me in finding amazing results that honestly took my breath away when I saw how amazing the results were.
** 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 **
- Rode Wireless Go - amzn.to/2J7RCw6
- Rode smartLav+ Omnidirectional Lavalier Microphone for iPhone and Smartphones - amzn.to/2LBQra6
- Rode SC7 3.5mm TRS to TRRS Patch Cable - amzn.to/2XTaYxv
- Blue Snowball iCE Condenser Microphone - amzn.to/2Ija0lo
- JOBY GorillaPod 3K Kit. Compact Tripod 3K Stand - amzn.to/2Xh4Bni
- JOBY GorillaPod 5K Kit. Professional Tripod 5K Stand - amzn.to/31Ew0yW
- Photography Photo Portrait Studio 600W Day Light Umbrella - amzn.to/2WwI0Tc
- AmazonBasics 60-Inch Lightweight Tripod with Bag - amzn.to/2Wd8utF
- Canon EOS Rebel T6 Digital SLR Camera Kit - amzn.to/2WcnRlV
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

Пікірлер: 31
@thatOne873
@thatOne873 5 жыл бұрын
Beautiful and well explained as always, thanks! : )
@dilmerv
@dilmerv 5 жыл бұрын
Awesome I am glad you liked it Mariusz thanks for watching !
@LordKaos666
@LordKaos666 5 жыл бұрын
You make it look simple! Nice video.
@dilmerv
@dilmerv 5 жыл бұрын
Thank you I appreciate the feedback !
@jokersaker
@jokersaker 4 жыл бұрын
If it wasn't for you I would really lost. Thank you so much!!
@dilmerv
@dilmerv 4 жыл бұрын
Thanks for your feedback Gerard I appreciate it !
@ericcastro007
@ericcastro007 2 жыл бұрын
Hola, Dilmer. Tienes algún Tutorial en el que expliques cómo proyectar Sombra Realista sobre el plano? GRacias.
@IcyShadow85
@IcyShadow85 2 жыл бұрын
Hey Dilmer, I have been having an issue with this type AR App. I have followed a couple of your videos that show how to build a Unity app that detects a plane and then places a model. Even following this video and downloading your project files from GitHub. I can get the app to work with the the Dragon Prefab or even with a new prefab I created using like a cube. But as soon as I swop out the Dragon Prefab with my own Prefab model (Which is an .fbx export of a Process Plant that I built in AutoDesk Inventor) the app opens and it detects the planes but as soon as I tap the screen to place the model my screen goes blue. I have tried to scale the model larger and smaller but I still can't get it to show my model and I don't know why it is doing it... Was hoping that you could give me some advice...
@danieljones1206
@danieljones1206 5 жыл бұрын
Thank you for making these!! Such a huge help. If you have time, could you make a tutorial about placing a small level or scene in AR with a timeline? I'd love to make a short AR story and I'm a little stumped.
@dilmerv
@dilmerv 5 жыл бұрын
Awesome I like the idea and yes I will be more than happy to make an example :) thanks for the suggestion !
@danieljones1206
@danieljones1206 5 жыл бұрын
@@dilmerv oh man, incredible--can't wait!! Running through another one of your tutorials now.
@TedBarnett197
@TedBarnett197 4 жыл бұрын
Any recommendation on which version of ARFoundation and ARKit we should install in the Package Manager when using your samples? The latest?
@dilmerv
@dilmerv 4 жыл бұрын
I would say use 3.0.0 preview 3 which is what I am using in my GitHub project, you can look at all the versions I am using at github.com/dilmerv/UnityARFoundationEssentials/blob/master/Packages/manifest.json
@TedBarnett197
@TedBarnett197 4 жыл бұрын
Any way to enable shadows to appear in the environment as well (i.e. so that we see the dragon's shadow on the ground)? I've tried to figure out how to make a shadow mask shader, but perhaps there is an easier way.
@dilmerv
@dilmerv 4 жыл бұрын
There should be shadows already, are you running this scene on your device ?
@DarkHeliosGamesInteractive
@DarkHeliosGamesInteractive 4 жыл бұрын
I have a serious question I want to use my phone as a VR devise I have the gyroscope working nicely but the problem is with the movement I want to take the data from accelerometer and translate that in unity in order to move around the 3D space relative to my real body movement I can't find anything on web about how do that I know is not AR but I believe is somewhere between that if you can help with that it would be so amazing and appreciated. By the way as always amazing tutorial from you.
@gianmarcopane2806
@gianmarcopane2806 4 жыл бұрын
Hi man, don't know if you're still trying to implement this feature in your project, btw I've bought this asset store package times ago and it works pretty well :) assetstore.unity.com/packages/templates/packs/vr-walking-running-and-jumping-googlevr-61864
@hammadzahid2381
@hammadzahid2381 4 жыл бұрын
can we use it for production, I mean for google play upload?
@dilmerv
@dilmerv 4 жыл бұрын
You should be able to, however I haven’t tried it in Android !
@supremebeme
@supremebeme 5 жыл бұрын
Hi Dilmer, have you done any tutorial on inside out tracking with AR Core + Google VR?
@dilmerv
@dilmerv 5 жыл бұрын
Hi Paul, thanks for reaching out and currently I don't have any Android devices which is why I haven't done anything with AR Core, I do plan to change that in the near future and bring that content to the channel. Also some of my AR Foundation prototypes should work with ARCore but to be honest I haven't tested them. Thanks again for watching !
@supremebeme
@supremebeme 5 жыл бұрын
I have Apple device and trying to figure out a way to do inside out tracking so that we can walk around 3D environment with google cardboard. It must be possible because there are many AR portal examples in App Store but how to make this work in GOOGLE VR which is compatible with iOS
@abhinavabhi6653
@abhinavabhi6653 4 жыл бұрын
Hi Dilmer, the dragon statue which i got my asset store has pivot at its cente. So, when i build it i am getting only the head of dragon. I tried creating a empty gameobject and changing pivot point. But i am getting same result.
@dilmerv
@dilmerv 4 жыл бұрын
Make sure to offset it by using a parent game object and adding the prefab for the parent and not the child.
@kirtikalra3780
@kirtikalra3780 4 жыл бұрын
Hi. There is a problem with this script when running in Unity 2019.3 version. It's saying "The type or namespace name 'PlacementObject' could not be found (are you missing a using directive or an assembly reference?)". What is missing in it.
@dilmerv
@dilmerv 4 жыл бұрын
The placement object is my own object, did you download my GitHub project ?
@kirtikalra3780
@kirtikalra3780 4 жыл бұрын
@@dilmerv Yes. And I am using one single script from it. So from where the placementObject will be accessible?
@moeinroghani9570
@moeinroghani9570 5 жыл бұрын
Hi Dilmer, First, thank you with your amazing tutorials, but I have a problem with dragging and dropping line 56 ( the type or namespace 'PlacementObject' could not be found ) thanks... using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.XR.ARFoundation; [RequireComponent(typeof(ARRaycastManager))] public class PlacementWithDraggingDroppingController : MonoBehaviour { [SerializeField] private GameObject placedPrefab; [SerializeField] private GameObject welcomePanel; [SerializeField] private Button dismissButton; [SerializeField] private Camera arCamera; private GameObject placedObject; private Vector2 touchPosition = default; private ARRaycastManager arRaycastManager; private bool onTouchHold = false; private static List hits = new List(); void Awake() { arRaycastManager = GetComponent(); dismissButton.onClick.AddListener(Dismiss); } private void Dismiss() => welcomePanel.SetActive(false); void Update() { // do not capture events unless the welcome panel is hidden if(welcomePanel.activeSelf) return; if(Input.touchCount > 0) { Touch touch = Input.GetTouch(0); touchPosition = touch.position; if(touch.phase == TouchPhase.Began) { Ray ray = arCamera.ScreenPointToRay(touch.position); RaycastHit hitObject; if(Physics.Raycast(ray, out hitObject)) { PlacementObject placementObject = hitObject.transform.GetComponent(); if(placementObject != null) { onTouchHold = true; } } } if(touch.phase == TouchPhase.Ended) { onTouchHold = false; } } if(arRaycastManager.Raycast(touchPosition, hits, UnityEngine.XR.ARSubsystems.TrackableType.PlaneWithinPolygon)) { Pose hitPose = hits[0].pose; if(placedObject == null) { placedObject = Instantiate(placedPrefab, hitPose.position, hitPose.rotation); } else { if(onTouchHold) { placedObject.transform.position = hitPose.position; placedObject.transform.rotation = hitPose.rotation; } } } } }
@dilmerv
@dilmerv 4 жыл бұрын
Did you clone my project from GitHub?
@harshitdoodwal6443
@harshitdoodwal6443 4 жыл бұрын
Konsi shadow
@dilmerv
@dilmerv 4 жыл бұрын
Thanks for watching
Unity3d with AR Foundation - How To Scale Objects In Augmented Reality ?
15:31
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 57 МЛН
I Melted Wood With Friction
8:44
The Action Lab
Рет қаралды 779 М.
PhD AI student explains how China already have won in AI..
13:28
livinlavidaluke
Рет қаралды 47 М.
The Future of Augmented Reality: 10 Awesome Use Cases
7:17
Future Business Tech
Рет қаралды 213 М.
Exterior Lighting in URP | Unity 2021.2 (Updated Workflow)
14:59
The CrowdStrike Problem Isn’t A Simple Fix…
13:04
Theo - t3․gg
Рет қаралды 162 М.
USDZ & Reality Composer: The perfect A.R. combo
13:57
Dimitris Katsafouros
Рет қаралды 6 М.