Fortum-Virtual-Visit
Project repository for Metropolia Innovation Project 2020, Fortum Virtual Visits
3D model placement application/platform which revolutionizes industrial planning with placing 3D models of machinery & equipment in Google Earth like virtual reality.
This application/platform is built on top of the Navvis platform, utilizing the IndoorViewer API. The APIDoc for the IndoorViewer API can be found here.
The main features were built with three.js for the 3D environment functionality.
This project was developed by students of Metropolia University of Applied Sciences under the supervision of eSite.
Table of Contents
Prerequisites
- Node.js
https://nodejs.org
This project requires Node.js to be installed to initiate/set up and further run the application.
How to run
-
Clone the files from the repository to your local machine via git.
git clone https://github.com/geonhuiy/Fortum-Virtual-Visit.git
-
Navigate to the project directory and install the required npm packages with
npm i
-
After the necessary npm packages are installed, the project can be launched with
npm run serve
Changing IndoorViewer instance
The current version of the project is built on top of a demo instance of the IndoorViewer instance.
To load the features onto a desired IndoorViewer instance, the URL to the instance needs to be modified before the application is launched.
Under the project directory, navigate to src/ts/index.ts
.
The URL for the desired IndoorViewer instance should be placed instead of the text IndoorViewerURLHere
:
getApi("IndoorViewerURLHere").then((iv: ApiInterface) => {
this.modal = new Modal(iv);
this.modal.setLayer();
this.modal.assignEventListeners();
this.main_view = iv.legacyApi.getMainView();
new SideBarMenuModifier(iv);
});