Giter Site home page Giter Site logo

xpcrts / webvr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hskang9/webvr

0.0 1.0 0.0 21.62 MB

VR web viewer with django framework and aframe. GearVR controller is used for browsing

License: GNU General Public License v3.0

Python 34.90% Shell 0.48% HTML 64.63%

webvr's Introduction

돌려방

돌려방

방을 돌려보고 둘러보는 가상현실(VR) 주택 임대 서비스 모바일 웹 앱

Version License

Usage

Basic Example

To get started playing now, open this CodePen example scene.

<html>

<head>
  <script src="https://aframe.io/releases/0.4.0/aframe.min.js"></script>
  <script>
               unction initElement() {
                 var navVR = document.getElementById("navigate");
                 navVR.onclick = navigate;
               ;
               function navigate() {
                 window.location.href = "http://www.naver.com";
               
  </script>
</head>

<body onload="initElement();">
  <main>
    <div>
      <a-scene inspector="url: https://aframe.io/releases/0.3.0/aframe-inspector.min.js">
        <a-assets>
          <img id="sphereTexture" color="#fff">
          <img id="skyTexture" src="https://raw.githubusercontent.com/hskang9/WebVR/master/web/static/photos/hacking-room1.jpg" rotation="0 -130 0">
        </a-assets>
        <a-sphere id="navigate" color="#FFF" width="2" height="2" depth="2" position="20 2 -10" rotation="0 0 45" scale="2 2 2" src="#sphereTexture">
          <a-animation attribute="position" to="20 2.2 -10" direction="alternate" dur="2000" repeat="indefinite"></a-animation>
          <!-- 커서가 오브젝트를 가리킬 때 애니메이션-->
          <a-animation attribute="scale" begin="mouseenter" dur="300" to="2.3 2.3 2.3"></a-animation>
          <a-animation attribute="scale" begin="mouseleave" dur="300" to="2 2 2"></a-animation>
        </a-sphere>
        <a-sky src="#skyTexture"></a-sky>
        <div class="a-exit-vr" aframe-injected="" style="display: block;"><button class="a-enter-vr-button" aframe-injected=""></button></div>
        <a-camera>
          <a-cursor></a-cursor>
        </a-camera>
      </a-scene>
    </div>
  </main>

  <body>

</html>

Local Development

git clone https://github.com/hskang9/WebVR.git  # Clone the repository.
cd WebVR && python manage.py runserver  # Start the local development server.

And open in your browser http://localhost:8000 or http://127.0.0.1:8000.

Generating Builds

Questions

For questions and support, post an issue on this repository.

License

This program is free software and is distributed under an MIT License.

webvr's People

Contributors

hskang9 avatar karrot-farmer avatar koreapaser avatar hsh4474 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.