何时加载自定义全景扩展 [英] When to load custom Panorama extension

查看:25
本文介绍了何时加载自定义全景扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试关注 这篇博文 以自定义查看器通过倾斜环顾模型.当我从 onModelLoadSuccess 加载此扩展时,它适用于某些模型,但会使查看器在较大模型上崩溃.如果我在加载过程中稍后从事件加载它,例如 GEOMETRY_LOADED,模型会部分加载,但某些对象不会被渲染.哪个事件是加载此扩展程序的正确事件?有没有办法让它在大于 50MB 的更大模型上运行?

I am trying to follow this blog post to customize the viewer to look around a model by tilting. When I load this extension from onModelLoadSuccess, it works for some models but crashes the viewer on larger models. If I load it from an event later in the load process, such as GEOMETRY_LOADED, the model partially loads but some objects don't get rendered. Which event is the right one to load this extension from? And is there a way to make it behave on larger models, >50MB?

推荐答案

我发现了问题...我不得不提高查看器的内存限制.我猜不断刷新屏幕会吃掉内存.

I figured out the problem...I had to up the memory limit on the viewer. I guess the constant screen refresh eats memory.

  var config3d = {
                        memory: {
                            limit:  1000 // in MB
                        }
                    };

                    var viewerDiv = document.getElementById('MyViewerDiv');
                    viewer = new Autodesk.Viewing.Private.GuiViewer3D(viewerDiv, config3d);

OTG 格式是否适用于来自 BIM 360 Docs 的模型?

Does the OTG format work for models coming from BIM 360 Docs?

这篇关于何时加载自定义全景扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆