简体   繁体   English

Three.js全景图怪异的画布渲染

[英]Three.js panorama weird render with canvas

I got a problem with the canvas renderer of the three.js, I used the panorama example with my own pics, but the geometry does not seems to be good. 我对three.js的画布渲染器遇到了问题,我在自己的照片中使用了全景示例,但几何形状似乎并不理想。 Tried to play a lot with different parameters, like texture canvas size, size of the box, ... but no good result sadly. 尝试使用不同的参数玩很多,例如纹理画布的大小,盒子的大小...,但可悲的是效果并不理想。

Here is the sample : http://prods.mightyprods.com/Three/panoramasimple.php 这是示例: http : //prods.mightyprods.com/Three/panoramasimple.php

Tried the webgl sample, it works well : http://prods.mightyprods.com/Three/skybox.html 尝试了webgl示例,效果很好: http : //prods.mightyprods.com/Three/skybox.html

I really need to work with canvas element, because of compatibility... any idea of what's wrong with this ? 由于兼容性,我真的需要使用canvas元素...对此有什么疑问吗?

Thanks by advance for any help. 在此先感谢您的帮助。

PS : sorry for my bad english... PS:对不起,我英语不好...

It's indeed a limitation of CanvasRenderer . 这确实是CanvasRenderer的限制。 You can try adding more subdivisions to the cube or decreasing the camera fov. 您可以尝试将更多细分添加到多维数据集或减少摄像机的视野。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM