Indoor Navigation in AR with Unity and Revit

Ambiens VR
10 Dec 202009:39

Summary

TLDRIn this video, Manu from Ambience introduces a new series called 'Proof of Concept,' focusing on real-time apps for industry. The tutorial demonstrates creating an augmented reality app for indoor navigation using a Revit model combined with Unity. The process involves aligning a 3D model with the real world using the AR Build Template in Unity 2019.4, Explorer 1.3, and AtSync 1.4. The video guides viewers through importing the model, creating a nav mesh, and scripting for navigation. It concludes with a simple test of the app on an iPad, inviting viewers to share ideas for improvement and promising more content in the series.

Takeaways

  • πŸ˜€ The video presents a tutorial on creating an augmented reality (AR) app for indoor navigation using a Revit model.
  • πŸ› οΈ The tutorial utilizes the latest version of Unity, Autodesk's Revit, and the ATX build template version 1.3.
  • 🏒 The project uses a Revit model of an office, but any model can be employed for similar purposes.
  • πŸ”„ The process involves aligning the 3D model with the real world using AR and Unity's ATX build template.
  • πŸ“± The tutorial demonstrates how to import the model into Unity and synchronize it using the ATsync plugin.
  • πŸšͺ The video guides viewers on how to search for doors in the model and deactivate them for the project's requirements.
  • πŸ“ The tutorial includes adding markers for AR navigation and creating a nav mesh for pathfinding within the 3D environment.
  • πŸ’» The script used for indoor navigation is showcased, which connects different points in the scene with a line.
  • 🎨 The video discusses enhancing the basic script with graphics and interactions, such as using a Line Renderer and adding UI buttons for target selection.
  • πŸ“± The final step is building the app for an iPad, demonstrating the app's functionality on a mobile device.

Q & A

  • What is the main focus of the video?

    -The video focuses on creating an augmented reality (AR) app for indoor navigation using a Revit model combined with the latest version of Unity Reflect (previously known as Unity's IT Explorer) and its one-to-one build template.

  • What series is this video a part of?

    -This video is the first in a new series called 'Proof of Concept' where the channel shares business ideas for real-time apps that can be built using Unity.

  • Which version of Unity and Unity Reflect are used in the project?

    -The project uses Unity 2019.4, Unity Reflect 1.3, and Autodesk's AT Sync 1.4.

  • What is the purpose of the custom script added in the project?

    -The custom script is added for the purpose of indoor navigation, allowing users to navigate through a 3D model of an indoor space.

  • Why are doors deactivated in the project?

    -Doors are deactivated because they are not needed for the indoor navigation functionality in this particular project.

  • What is a Nav Mesh and how is it used in the project?

    -A Nav Mesh is a 3D mesh that can be used by artificial intelligence to move within a level. In the project, it is used to guide a line that leads users to their desired location.

  • How is the Revit model updated with changes made in the real office?

    -If changes are made in the real office that are not reflected in the Revit model, such as a new wall, the model can be updated in Revit and then synchronized with Unity to reflect the changes.

  • What is the basic functionality of the script used for the navigation line?

    -The basic script connects two different points in the scene with a line, which serves as a visual guide for navigation within the AR app.

  • How is the navigation line enhanced visually in the app?

    -The navigation line is visually enhanced by replacing the basic line with a Line Renderer, adding a material to it, and incorporating it into the UI with buttons for different targets.

  • What is the final step before building the app for an iPad?

    -The final step before building the app for an iPad is to hide the geometries imported from Revit while using them to ensure the navigation line is hidden behind walls, creating a more realistic and immersive AR experience.

  • Where can viewers find the full source code for the project?

    -The full source code for the project can be found in the description of the video.

Outlines

00:00

πŸ› οΈ Creating an Augmented Reality App for Indoor Navigation

This video introduces a project to develop an augmented reality (AR) app for indoor navigation using a Revit model. The project utilizes the latest version of Unity, along with the AR Build Template from Unity's Explorer 1.3 and AT Sync 1.4. Manu from Ambience, the presenter, explains that the video is part of a new series called 'Proof of Concept,' which focuses on sharing business ideas for real-time apps. The process involves aligning a 3D model of an office with the real world, adding custom scripts for navigation, and using Unity's AT Sync plugin to synchronize the model. The video also demonstrates how to deactivate unnecessary elements like doors in the model and how to add a navigation mesh for AI to use within the Unity scene.

05:00

πŸ”§ Enhancing the AR App with Graphics and Interactions

In the second paragraph, the video script describes the process of enhancing the AR app with graphics and interactions. After importing the model and noticing a missing wall in the Revit model, the presenter demonstrates how to update the model in Revit and sync it with Unity. A basic script is introduced to connect two points in the scene with a line, which is then visually improved by replacing the basic line with a Line Renderer and adding a material. The script is further enhanced to allow for multiple navigation targets, each with a corresponding UI button. The video concludes with a demonstration of how the navigation line can be hidden behind walls using a shader, and the app is built for an iPad. The presenter invites viewers to share their ideas for improvement in the comments and teases the next episode of the series.

Mindmap

Keywords

πŸ’‘Augmented Reality (AR)

Augmented Reality (AR) is a technology that overlays digital information or images onto the real world, enhancing the user's perception of reality. In the context of the video, AR is used to create an app for indoor navigation, which combines real-world elements with a digital model to guide users through a building. The script mentions using AR to align a 3D model with the real world, indicating how AR can be utilized for practical applications like navigation.

πŸ’‘Revit

Revit is a Building Information Modeling (BIM) software used by architects, engineers, and construction professionals to design and manage building projects. In the video, a Revit model of an office is used as the basis for the AR app, demonstrating how BIM software can be integrated with AR technology for practical purposes like indoor navigation.

πŸ’‘Unity

Unity is a widely-used game engine for creating 3D and 2D video games and interactive experiences. In the script, Unity is mentioned as the platform where the AR app is developed, highlighting its versatility beyond gaming to include applications in AR and other industries.

πŸ’‘ATX (Autodesk Translation Extension)

ATX, or Autodesk Translation Extension, is a plugin that facilitates the transfer of data between Autodesk software like Revit and Unity. The script refers to using ATX version 1.3 to import a Revit model into Unity, showcasing the importance of such tools in bridging the gap between design and development platforms.

πŸ’‘AT Sync

AT Sync is a plugin that synchronizes data between Autodesk software and Unity, allowing for real-time updates. The video script mentions using AT Sync 1.4 to keep the Revit model in sync with the Unity project, which is crucial for maintaining consistency between the design and the AR application.

πŸ’‘Nav Mesh

A Nav Mesh, or navigation mesh, is a data structure used in video games and simulations to enable characters or agents to navigate through a 3D environment. In the video, a Nav Mesh is created in Unity to help guide the user to desired locations within the AR app, illustrating its role in pathfinding and navigation.

πŸ’‘Line Renderer

A Line Renderer is a component in Unity used to draw lines or curves in 3D space. The script describes replacing a basic line with a Line Renderer to enhance the visual appeal of the navigation line in the AR app, demonstrating how such components can improve the user interface and experience.

πŸ’‘Shader

A Shader is a program that runs on the GPU to determine how objects in a 3D scene are rendered, including their color, texture, and lighting. The video script briefly mentions using a shader to hide the navigation line behind a wall, indicating how shaders can be used to achieve visual effects and enhance realism in AR applications.

πŸ’‘UI (User Interface)

UI, or User Interface, refers to the space where interactions between users and a device, or software, occur. In the context of the video, UI elements like buttons are added to the AR app to allow users to select navigation targets, highlighting the importance of intuitive UI design in AR experiences.

πŸ’‘Proof of Concept

A Proof of Concept (PoC) is a preliminary demonstration of a new idea or product to verify its feasibility. The video series is called 'Proof of Concept,' suggesting that the AR app for indoor navigation is an example of a PoC, aimed at demonstrating the potential of real-time apps in the industry.

Highlights

Introduction of a new series called 'Proof of Concept' focused on real-time apps.

Creating an augmented reality app for indoor navigation using a Revit model.

Utilization of the latest version of Unity, Autodesk's Revit, and the AR Build Template.

Explanation of how to align a 3D model with the real world using AR technology.

Importing a Revit model of an office into Unity for the project.

Using custom scripts for indoor navigation within the app.

Import process using Unity 2019.4, Explorer 1.3, and AT Sync 1.4.

Synchronizing the 3D model from Revit to Unity using the AT Sync plugin.

Deactivating unnecessary elements like doors in the Revit model for the project.

Adding markers in the real office and the AR template for alignment.

Creation of a Nav Mesh in Unity for AI navigation within the app.

Updating the Revit model to include a missing wall and syncing it back to Unity.

Basic script to connect two points in the scene with a navigation line.

Enhancing the script with graphical and interactive elements for user interface.

Hiding Revit geometries while using them for navigation line occlusion behind walls.

Building the app for an iPad to test the indoor navigation functionality.

Invitation for feedback and suggestions to improve the project in the comments.

Announcement of the next episode in the series to be released in a couple of weeks.

Transcripts

play00:00

in this video we are going to create an

play00:01

augmented reality app

play00:03

for indoor navigation using a revit

play00:05

model combined with the

play00:07

latest version of it explorer and its

play00:10

newest one-to-one build template

play00:12

this is the first video of our new

play00:15

series called

play00:16

proof of concept where we share business

play00:19

ideas for real-time apps

play00:21

that everyone can build using unity i'm

play00:24

manu from ambience

play00:26

and in this channel we talk about

play00:28

real-time applications

play00:30

for the industry let's begin

play00:48

for this project we are going to use a

play00:50

revit model

play00:51

of our office that we made some months

play00:55

ago

play00:56

but you can use any model you want we

play00:59

want to align

play01:00

the this 3d model to the real world

play01:03

with the ar build template added in

play01:07

atx version 1.3 then we are going to add

play01:11

our custom script

play01:12

for the indoor navigation let's create

play01:15

the project

play01:16

i'm going to speed up the import process

play01:19

here

play01:20

but we are using unity 2019.4

play01:25

explorer 1.3 and at sync 1.4

play01:40

[Music]

play02:11

[Music]

play02:20

so

play02:26

[Music]

play02:33

[Music]

play02:34

so

play02:38

now that the project is ready we can go

play02:41

to revit with the addition of the atsync

play02:44

plugin

play02:45

click export and then go back to unity

play02:48

and synchronize the 3d model inside the

play02:55

[Music]

play03:02

scene

play03:05

[Music]

play03:16

now we can search for doors and

play03:19

deactivate them because we don't need

play03:21

them

play03:22

actually in this project

play03:35

[Music]

play03:44

now let's switch template in et explorer

play03:48

we need an option available only for the

play03:52

ar template so we will add the

play03:56

marker here and then we are going to add

play03:59

a similar marker in the real office

play04:15

[Music]

play04:26

so

play04:30

[Music]

play04:37

now we need to add a nav mesh the nub

play04:40

mesh is a 3d

play04:42

mesh that you can create in unity that

play04:45

can be used by

play04:46

artificial intelligence to move inside

play04:49

the

play04:50

a level normally the ai is

play04:53

some video game enemy trying to shoot

play04:56

you

play04:57

in this case will be a line that will

play05:00

take you to the desired location

play05:11

[Music]

play05:16

[Music]

play05:27

actually after importing the model

play05:30

i noticed that the in the rear in the

play05:33

revit model there wasn't

play05:35

a wall added some time before the

play05:37

creation of the model

play05:39

but no problem we can switch back to

play05:42

revit at the wall and then sync the

play05:46

model to unity

play05:52

[Music]

play06:08

[Music]

play06:12

now that our model is ready and our nav

play06:15

mesh is baked

play06:17

let's see the basic script we are going

play06:19

to use

play06:20

this script will try to connect two

play06:23

different points in the scene with the

play06:26

line

play06:27

and this is the basic code to do this

play06:32

we can test it in the editor and as you

play06:35

can see there's

play06:36

a red line connecting uh two game

play06:39

objects

play06:40

uh we are going to add a bit of graphics

play06:43

and interactions to this base script

play06:48

first of all let's substitute the the

play06:51

bug line

play06:52

with the line renderer

play06:56

now let's add a material to the line

play07:00

renderer

play07:03

and now with some small addition to the

play07:05

script

play07:06

we can add different targets to

play07:09

the 3d scene and for each of them we are

play07:12

going to add a button

play07:14

to the ui to help select one of the

play07:17

target

play07:19

let's test it again in the editor and we

play07:23

are good to go

play07:26

now what we want is to completely hide

play07:29

the geometries

play07:30

imported from revit but at the same time

play07:34

using them to add

play07:36

to hide the navigation line behind a

play07:39

wall

play07:40

the result is pretty nice considering

play07:42

that we used

play07:44

four lines of code of of this shader

play07:48

now let's open our macbook and build the

play07:51

app

play07:51

for our ipad and that's it

play08:00

[Music]

play08:39

of course this is a simple test that

play08:42

needs

play08:42

graphics and scripting polishing but i

play08:46

think it's a good starting point um

play08:49

you can find the full source code in the

play08:51

description

play08:52

of this video do you like this project

play08:55

do you have some ideas to

play08:57

improve it please share them with us in

play09:00

the comment section below

play09:01

the next episode of this series will be

play09:03

online in

play09:04

a couple of weeks stay tuned and

play09:07

subscribe

play09:08

to the channel so you don't miss it bye

play09:14

[Music]

play09:20

bye

play09:25

[Music]

play09:38

you

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Augmented RealityIndoor NavigationRevit ModelsUnityAR AppReal-time AppsIndustry 4.03D ModelingInteractive DesignProof of Concept