本文介绍了Threejs - 如何在不崩溃浏览器的情况下加载大模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一个 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.

我已经在 web worker 版本中尝试过 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 - 如何在不崩溃浏览器的情况下加载大模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 12:37