Coder Social home page Coder Social logo

opanorama's Introduction

Opanorama.js 基于Threejs,同时支持手势和陀螺仪的web全景JS库。

亲,觉得好用,给个star!!!

<script src="https://threejs.org/build/three.js"></script>
<script src="/dist/Opanorama.js"></script>
const panorama = new Opanorama({
    url: '',                    //全景图片
    container: document.body,   //容器
    radius: 500,                //球体半径,可不填
    fov: 90,                    //相机视角,可用于放大和缩小图片,可不填
    offsetLongitude: 0,         //经度偏移量,可用于默认展示图片位置,可不填
    offsetLatitude: 0,          //纬度偏移量,可用于默认展示图片位置,可不填
    supportTouch: true,         //是否支持手指滑动,可不填
    supportOrient: true         //是否支持陀螺仪,可不填
});

代码示例

特性:

1、使用一阶滞后滤波算法解决部分安卓机型陀螺仪输入数值抖动的问题;
2、同时支持手势和陀螺仪交互。

opanorama's People

Contributors

azuoge 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.