-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added all third floor images with vr page, all scripts and README.MD
- Loading branch information
0 parents
commit b46ee83
Showing
33 changed files
with
326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## PPC NTU "KHPI" VR Tour | ||
VR Tour of [Poltava Polytechnic college](http://www.polytechnic.poltava.ua/). | ||
Explore all audiences, halls and other rooms from your browser! | ||
|
||
Link: | ||
|
||
**WARNING!** | ||
1. Page can load slow at first time, due to big amount of images | ||
2. It is recommended to use PC, mobile phones may sometimes crash because of overload. | ||
3. If you downloaded repository, make sure to open html files through some type of server (for example VS Code extension [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)), if you open html file without server, it may not load pictures due to CORS policy. | ||
|
||
TO-DO: | ||
1. Main menu | ||
2. Transition animations | ||
3. 2 floor | ||
4. 1 floor | ||
5. Optimisation | ||
|
||
Made with: A-Frame, JS and love <3 | ||
Made by: [Andrey Kotliar](https://github.com/Andreybest) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
AFRAME.registerComponent('hotspot-clicked', { | ||
schema: { | ||
loadScene: {default: 'sceneMain'} | ||
}, | ||
|
||
init: function () { | ||
var data = this.data; | ||
var el = this.el; | ||
|
||
el.addEventListener('click', function () { | ||
setScenesVisibleToFalse(); | ||
|
||
var sceneToLoad = document.getElementById(data.loadScene); | ||
sceneToLoad.object3D.visible = true; | ||
|
||
let entity = document.querySelectorAll('#' + sceneToLoad.id + ' .link'); | ||
for (let i = 0; i < entity.length; i++) { | ||
entity[i].classList.add('clickable'); | ||
} | ||
}); | ||
} | ||
}); | ||
|
||
/** | ||
* Hide all Scenes | ||
*/ | ||
function setScenesVisibleToFalse() { | ||
var scenes = document.getElementsByClassName('scene'); | ||
|
||
for(var i = 0; i < scenes.length; i++) { | ||
scenes[i].object3D.visible = false; | ||
} | ||
|
||
let query = document.getElementsByClassName('link'); | ||
for (let j = 0; j < query.length; j++) { | ||
query[j].classList.remove('clickable'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
// add clickble class to a-enities of main scene. | ||
AFRAME.registerComponent('starting-scene', { | ||
schema: { | ||
scene: {default: 'sceneMain'} | ||
}, | ||
|
||
init: function () { | ||
let sceneToLoad = document.getElementById(this.data.scene); | ||
sceneToLoad.object3D.visible = true; | ||
|
||
let entity = document.querySelectorAll('#' + sceneToLoad.id + ' .link'); | ||
for (let i = 0; i < entity.length; i++) { | ||
entity[i].classList.add('clickable'); | ||
} | ||
} | ||
}); |