0

I have been trying to transform the observations that I can generate in autodesk forge to a bcf format that asks me for four variables CameraViewPoint, CameraDirection, CameraUpVector and ViewToWorldScale. But when reading it on another platform, the focus goes elsewhere but not where I need it. There is some kind of transformation of the state.viewport that has forge with the variables that I have inside bcf.

I show the code of the implementation that currently throws me an error.

<CameraViewPoint>
  <X>${viewPort.eye[0]}</X>
  <Y>${viewPort.eye[1]}</Y>
  <Z>${viewPort.eye[2]}</Z>
</CameraViewPoint>
<CameraDirection>
  <X>${viewPort.worldUpVector[0]}</X>
  <Y>${viewPort.worldUpVector[1]}</Y>
  <Z>${viewPort.worldUpVector[2]}</Z>
</CameraDirection>
<CameraUpVector>
  <X>${viewPort.up[0]}</X>
  <Y>${viewPort.up[1]}</Y>
  <Z>${viewPort.up[2]}</Z>
</CameraUpVector>
<ViewToWorldScale>
  ${viewPort.distanceToOrbit}
</ViewToWorldScale>
  • Does this answer your question? [How to initialize Autodesk Forge 3D viewer correctly from BIM BCF Topic Viewpoint?](https://stackoverflow.com/questions/54869671/how-to-initialize-autodesk-forge-3d-viewer-correctly-from-bim-bcf-topic-viewpoin) – Petr Broz Nov 29 '22 at 09:08

0 Answers0