Threejs-如何加载大型模型而不会导致浏览器崩溃 [英] Threejs - How to load big models without crashing the browser
问题描述
我正在尝试将Matterport obj模型加载到three.js加载器中。
I am trying to load a Matterport obj model into the three.js loader.
这是一个具有许多纹理的详细模型,大小超过80MB。
It is a detailed model with many textures and the size is more than 80MB.
我尝试使用网络工作者版本的 objloader
,但纹理并未得到应用,除了单个纹理。
I have tried objloader
with the web worker version but the textures are not getting applied, except for a single texture.
您能建议我如何在不冻结浏览器的情况下进行此操作吗?
Could you advise how I can go about this without freezing the browser?
推荐答案
作者现在已解决WWObjLoader2中的纹理应用程序问题。请在> https://github.com/kaisalmen/WWOBJLoader/issues/14 。 Webworker解决方案可以正确应用纹理
The texture application issue in WWObjLoader2 is now resolver by the author . Please find details at https://github.com/kaisalmen/WWOBJLoader/issues/14. Webworker solution worked with textures applied correctly
这篇关于Threejs-如何加载大型模型而不会导致浏览器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!