Skip to content

Commit

Permalink
Initiated repository
Browse files Browse the repository at this point in the history
- Added all third floor images with vr page, all scripts and README.MD
  • Loading branch information
Andreybest committed Nov 26, 2019
0 parents commit b46ee83
Show file tree
Hide file tree
Showing 33 changed files with 326 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.MD
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)
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/navArrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/assemblyHall.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience302.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience303.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience304.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience305.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience306.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience309.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience310.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience312.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience313.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience314.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience315.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience317.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audience319.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/audienceLabProgramming.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallLeft1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallLeft2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallLeft3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallMiddle1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallMiddle2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallMiddle3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallRight1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallRight2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/panoramas/3floor/hallRight3.jpg
Binary file added img/panoramas/3floor/hallRight4.jpg
Binary file added img/panoramas/3floor/studentsUnion.jpg
Binary file added img/panoramas/main.jpg
251 changes: 251 additions & 0 deletions index.html

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions js/hotspotClicked.js
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');
}
}
17 changes: 17 additions & 0 deletions js/index.js
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');
}
}
});

0 comments on commit b46ee83

Please sign in to comment.