conardli / tpanorama Goto Github PK
View Code? Open in Web Editor NEW一款非常好用的全景生成,全景标记编辑插件!
一款非常好用的全景生成,全景标记编辑插件!
PS F:\workspace\sublime\360\tpanorama> npm install
npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm ERR! Maximum call stack size exceeded
移动端似乎不能移动
错误信息为THREE.WebGLState: DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded,还有警告 image is not power of two (300x150),这是怎么回事?
图片路径也引对了
现在看到的示例图片都是特别处理过的,所以我自己的图片怎么处理成这样呢。
就是标记点的图片,是 gif 格式,需要显示动态效果,要怎么处理才可以呀?
怎么全屏呀,这个图片切换链接可以放到图里么?
这是一个疑惑。
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
};
支持npm吗?
为icon时单击事件正常
经典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);
}
你好!
做到走动效果,是不是应该使用长方形的结构,不能用球形,然后通过设置相机位置达到效果?
文章写的挺好的 建议增加网站 并且支持手机端
npm包内没有定义那个extend方法,导致标记设置页面会报错
添加的标记位置不正确,偏差很大
希望作者有时间能讲一讲全景图资源管理。。现在的全景应用,往往都是由缩略图和高清图构成。。。为了良好的用户体验,先加载缩略图,之后慢慢加载高清图,并且高清图还是被分割成n*n份。一个线上demo:http://www.4dmodel.com/SuperTwo/index.html?m=159&version=one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.