我的团队已经在他们的Revit软件中创建了一个漫游,如此处的视频所示。我们正在寻找一种在Forge Viewer中渲染此漫游的方法。
发布于 2020-10-23 17:33:40
关于#1:我担心演练信息不是由模型派生服务提取的,因此它不会在Forge Viewer中自动可用。
关于#2:这更多的是关于Revit API forum的问题,但我相信应该可以通过编程从您的Revit模型中提取漫游。如果可能,您甚至可以通过在Forge Design Automation service中运行Revit插件来自动执行此过程。
关于#3和#4:如果您能够提取漫游相机数据,比如说将其提取到一个JSON文件中,那么您绝对可以在Forge Viewer中实现类似的漫游,例如,使用viewer.navigation.setView方法,或者使用viewer.navigation.setRequestTransition(state, pos, coi, fov, reorient, pivot)之类的东西。以下是各个参数的文档:
/**
* Issue a request to transition the current cameras view to that specified by the parameters.
* @param {boolean} state - value of the request. Set to true in order to request the change of view.
* @param {THREE.Vector3} pos - the new camera position in world space
* @param {THREE.Vector3} coi - the point in world space that the camera should look towards.
* @param {number} fov - vertical field of view in degrees
* @param {boolean} reorient - set to true to recalculate up vector
* @param {THREE.Vector3} pivot - the new pivot point
*/https://stackoverflow.com/questions/64461957
复制相似问题