三.js 如何缓存(本地存储)3d 模型和纹理? [英] three.js how to cache (store localy) 3d models and textures?
本文介绍了三.js 如何缓存(本地存储)3d 模型和纹理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用three.js做一个游戏,游戏关卡是不同的页面.因此,当您从一个级别转到另一个级别时,浏览器会重新加载页面.我想以某种方式在本地存储模型,以免再次下载.我可以将 3d 模型存储在 cookie 或其他东西中吗?
Im making a game with three.js and game levels are different pages. So when you go from one level to another, browser reloads page. I want to somehow store models locally so that they are not downloaded again. Can I store 3d model in cookie or something?
推荐答案
您可能需要考虑 应用程序缓存.
这篇关于三.js 如何缓存(本地存储)3d 模型和纹理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文