Swissgroover / node-project-vr

0 stars 0 forks source link

Table of contents

Technologies

Node JS / JS / npm

Our Team

Idea of Creating Vr online game

Prototype

https://ta19rauniste.itmajakas.ee/

Screenshot

Screenshot Screenshot

Code snaps

Theme

    <a-scene fog="type: linear; color: #111; near:10; far:15">

Lights

        <a-light type="directional" castShadow="true" intensity="0.5" color="#FFF" position="2 5 0"></a-light>
        <a-light intensity="0.1" type="ambient" position="1 1 1" color="#FFF"></a-light>

Camera

        <a-entity id="rig" position="0 3 0">
            <a-camera wasd-controls look-controls>
                <a-entity cursor="fuse: true; fuseTimeout: 250" position="0 0 -1" geometry="primitive: ring; radiusInner: 0.03; radiusOuter: 0.04" material="color: white; shader: flat; opacity: 0.5" scale="0.5 0.5 0.5" raycaster="far: 20; interval: 1000; objects: .clickable">
                    <a-circle radius="0.01" color="#FFF" opacity="0.5" material="shader: flat"></a-circle>
                    <a-animation begin="fusing" easing="ease-in" attribute="scale" fill="backwards" from="1 1 1" to="0.2 0.2 0.2" dur="250"></a-animation>
                </a-entity>
            </a-camera>
        </a-entity>

Küsitluse Vastused

Küsimused:

Tiiu:

Johanna:

Ma ei olnud väga rahul selle ülesandega mis mulle anti. Tundisin enaste natuke halvasti ja kasutult, sest enamus tööd tegid ainult kaks inimest selles gruppis. Minu arvates oleks võinud nii teha, et teise kursuse õpetajad juhendavad esimeses kuruse omasid ning kõrval abistavad neid. Meil läks ka palju aega sellele, et mida me lõpuks tahaksime teha. Aga lõpuks saime ka natukene pinged maha võtta ja lihtsalt motiveerimisest ja koolist rääkida. Seekord oli minu jaoks projekt väga teistsugune, mis on väga hea pluss.

Joonas:

Rainis-Ross Tiirik:

-Kas oleksid tahtnud täita mingit muud ülesannet selles meeskonnas-VR projekt oli minu jaoks huvitav,kuid ma oleks tahtnud rohkem kaasa aidata,aga mul on hea meel,et kohal käisin.

-Üks pehme oskus, mida õppisin ja endas arendasin-Sain teada, et A-frame abil saab teha VR rakendusi.

-Üks tehniline oskus, mida õppisin ja endas arendasin-Jõudsin natuke õppida,kuidas A-frame kasutada ja jõudsin ka teha ühe kuubiku.

Karl Gregor:

Robin Kukk:

How to run

How to run

Windows version

This how to explains how to run this project on Ubuntu server.

  1. Update your system
    sudo apt update && sudo apt -y upgrade
  2. Install the most recent version of Nodejs and npm (node packet manager). We use this repository because the normal Ubuntu repository has very old version.
    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    sudo apt-get install -y nodejs
  3. Test Nodejs
    node -v
  4. Test npm
    npm -v
  5. Install nodemon globally
    sudo npm install -g nodemon
  6. Install Redis
    sudo apt install redis-server
  7. Update redis.conf file. Find supervised no line and change to supervised systemd since Ubuntu uses the systemd init system.
    sudo nano /etc/redis/redis.conf
  8. Start Redis
    sudo service redis-server start
  9. Clone the repository
    git clone https://github.com/kuressaareametikool/node-project
  10. Change directory to project folder
    cd node-project
  11. Install modules
    npm install
  12. Run server
    nodemon server.js

iOS version

  1. Update your system
    brew upgrade
  2. Install the most recent version of Nodejs and npm (node packet manager).
    brew install nodejs
  3. Test Nodejs
    node -v
  4. Test npm
    npm -v
  5. Install nodemon globally
    brew install -g nodemon
  6. Install Redis
    brew install redis-server
  7. Start Redis
    brew service start redis
  8. Clone the repository
    git clone https://github.com/kuressaareametikool/node-project
  9. Change directory to project folder
    cd node-project
  10. Install modules
    npm install
  11. Run server
    npm nodemon server.js