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>