Forge viewer 3ds Max Viewport

二次信任 提交于 2019-12-11 04:36:44

问题


I'm testing out a new workflow with 3ds Max and my model/scene keeps loading in Top view when I translate it into the Forge viewer. I've tried to save the view as a perspective view but I'm still getting the same result in the viewer. In Revit I remember that I could choose the view from the Collaboration settings. How would I modify the view in 3ds max? I'm translating a MAX file. Thanks a lot.


回答1:


3ds Max does not have the same idea of a "named 3d view" like Revit does. 3ds Max mainly stores geometry in it's global space, in it's scene file (.MAX). It is also saving the viewport configuration (so on load you can have same view(s)), but the idea of named 3d views is not there for the model derivative service translator.

This means you may have to reorient the geometry in the scene, before sending to the translator to get the desired resulting orientation. Or you can orient the view using the viewer to get the correct starting view if that is the issue. For example, to orient the view, you could do this on viewer start:

var front = new THREE.Vector3(0, -1, 0);
viewer.navigation.setPosition(front);
viewer.fitToView (true) ;

Note that 3ds Max has an "Export to LMV SVF" in it's desktop export options. This can be a nice way to test without sending to the model derivative service. You can export to SVF locally, then using the Forge Viewer you can view the local model (I use firefox as it does not complain about cross-origin error in the local disk load). Again, this is nice testing scenario when working with 3ds Max scenes to understand the translator behavior. Hope it helps, kevin




回答2:


To have a control on what view will be set as default/home view when opening a translated .max file, in 3ds Max follow these steps:

  1. Remove all cameras from the scene, if any.
  2. Select the perspective view, rotate, pan, zoom, in other words position the view as you wish, then press Ctrl+C to create a Physical Camera From View.
  3. Select the Front View, go to Create -> Cameras -> Free Camera and click on Front View (anywhere) to create the Free Camera.

Now if you translate the .max file with this setup, the Camera you create at step 2 will be set as the default/home view.

I recently wrote a blog post on this trick: Control the default view when translating 3ds Max files



来源:https://stackoverflow.com/questions/48885531/forge-viewer-3ds-max-viewport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!