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

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

问题描述

我正在尝试按照此博客文章来自定义观看者可以通过倾斜查看模型.当我从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?

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

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