本帖最后由 lexcao 于 2023-2-17 12:56 编辑
新建的Floor3d-card,视角总是偏在一边,无法直观看到全景。
如何设置视角?是否就是Camera Rotation, Camera Position, Camera direction这三个参数?
github上的说明是这样的:
For camera rotation and position recording config:
camera_position:
x: <x coordinate of the recorded camera positioon>
y: <y coordinate of the recorded camera positioon>
z: <z coordinate of the recorded camera positioon>
camera_rotate:
x: <x coordinate of the recorded camera rotation>
y: <y coordinate of the recorded camera rotation>
z: <z coordinate of the recorded camera rotation>
camera_target:
x: <x coordinate of the recorded camera target>
y: <y coordinate of the recorded camera target>
z: <z coordinate of the recorded camera target>
When in edit mode you can double click in an empty model space to retrieve the current postition and rotation of the camera. You can retrieve the 2 sets of coordinates from the prompt box that will appear. You can then manually copy the content and paste to the card config in code editor mode. Thanks to this the new default position of the camera will be set to the configured coordinates.
获取不到相应参数,特此求教!
——————————————————————————————————
问题已解决。
第一,在仪表盘编辑模式下,双击Floor3d-card卡片的空白处,会跳出一组参数。把这组参数粘贴进卡片编辑的代码中(不是图形界面),保存即可。
第二,对于这三个参数的理解:
camera_position: 视角位置,数字不能完全一致,否则可能调换位置 camera_rotate: 视角角度 camera_target: 视角目标,用户未设置则不会变化 参考第一条获取参数就能大致判断所需要实现位置的参数。然后保存即可。
|