Giter VIP home page Giter VIP logo

cesium-videoshed's Introduction

cesium-videoshed

基于cesium视频投射


基于cesium的3dtilset模型视频投放

cesium-videoshed

说明

/cesium-videoshed/src/doc

使用

在项目中引入Cesium.js
然后引入 cesium-videoshed.js 即可

 

    // 初始化
    let viewer = new Cesium.Viewer("viewerContainer")

    // 参数
    let viewModel = { verticalAngle: 90, horizontalAngle: 120, distance: 10 };
    let videoShed3DArr = [];

    // 创建
    let create = () => {
        let videoShed3D = new Cesium.VideoShed3D(viewer, {
          type: 'Video',
          url: "src/cs.mp4",
          alpha: 1,
          debugFrustum: true,
          horizontalAngle: Number(viewModel.horizontalAngle),
          verticalAngle: Number(viewModel.verticalAngle),
          distance: Number(viewModel.distance),
        });
        videoShed3DArr.push(videoShed3D)
    }
    // 销毁
    let destroy = () => {
        videoShed3DArr.forEach(video => video.destroy())
    }

cesium-videoshed's People

Contributors

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