Code Monkey home page Code Monkey logo

Comments (7)

bestswifter avatar bestswifter commented on July 28, 2024

你说的 size 很大具体是指多大呢,比如 8192 * 4096 这样的么?

from bspanoramaview.

heiguoliangle avatar heiguoliangle commented on July 28, 2024

我刚才试了一个是16378 * 3678,就是直接用相机全景拍一张就这样的

from bspanoramaview.

bestswifter avatar bestswifter commented on July 28, 2024

内存问题暂时无法解决,我调研了其它的全景图框架,比如谷歌的 gvr-kit,也存在内存暴增的问题,似乎无法解决。

而且这个内存增长是可以预期的,比如 4096 * 2048 分辨率的图片会增加 4096 * 2048 * 4 / 1024 / 1024 = 32M 的内存,似乎无法避免。

如果有更好的处理方式,欢迎指正

from bspanoramaview.

bestswifter avatar bestswifter commented on July 28, 2024

似乎这个不是 GLKit 默认支持的纹理格式,一般我们用鱼眼图或者天空盒。鱼眼图是 2:1 的比例,天空盒是六张 1:1 的图片。

全景图片的格式我没有做太多调研,估计帮不上什么忙。

from bspanoramaview.

heiguoliangle avatar heiguoliangle commented on July 28, 2024

嗯啊,好的,我在搞搞

from bspanoramaview.

bestswifter avatar bestswifter commented on July 28, 2024

之后会添加图片分辨率的限制,确保内存使用不会太多。至于 16738 * 3678 的比例,只能自己调研下怎么生成纹理了。

from bspanoramaview.

bestswifter avatar bestswifter commented on July 28, 2024

感谢你的建议~,我先关掉 issue 了。

from bspanoramaview.

Related Issues (9)

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.