Giter VIP home page Giter VIP logo

tpanorama's Issues

npm

支持npm吗?

请问如何做到走动效果

你好!
做到走动效果,是不是应该使用长方形的结构,不能用球形,然后通过设置相机位置达到效果?

拖拽的小bug

经典bug:拖出容器后抬起鼠标,返回容器后事件依然触发。
onDocumentMouse~ 系列的事件应该为document 注册。

function onDocumentMouseDown(event) {
  // ...
  document.addEventListener('mousemove', onDocumentMouseMove, false);
  document.addEventListener('mouseup', onDocumentMouseUp, false);
}

function onDocumentMouseUp() {
  // ...
  document.removeEventListener('mousemove', onDocumentMouseMove);
  document.removeEventListener('mouseup', onDocumentMouseUp);
}

calPosition 和 geoPosition2World 逻辑重复 以及 worldPostion2Screen 运算坐标公式的疑惑

这是一个疑惑。

  1. calPosition 和 geoPosition2World 逻辑重复了
  2. worldPostion2Screen 空间坐标转为屏幕坐标是不是可以理解为一种 scale 的关系?
var result = {
    x: Math.round((vector.x + 1) * window.innerWidth / 2 - window.innerWidth / 2),
    y: Math.round(window.innerHeight / 2 - (-vector.y + 1) * window.innerHeight / 2),
    z: 0
  };
// 代码中计算公式有点奇怪,简化后如下...
var result = {
    x: Math.round(vector.x * window.innerWidth / 2),
    y: Math.round(vector.y  * window.innerHeight / 2),
    z: 0
  };

催更

希望作者有时间能讲一讲全景图资源管理。。现在的全景应用,往往都是由缩略图和高清图构成。。。为了良好的用户体验,先加载缩略图,之后慢慢加载高清图,并且高清图还是被分割成n*n份。一个线上demo:http://www.4dmodel.com/SuperTwo/index.html?m=159&version=one

在使用page1.html时报错

错误信息为THREE.WebGLState: DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded,还有警告 image is not power of two (300x150),这是怎么回事?
图片路径也引对了

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.