『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1565|回复: 7

[UI界面] [已解决]Floor3d-card的视角问题

[复制链接]

35

主题

372

帖子

2263

积分

金牌会员

Rank: 6Rank: 6

积分
2263
金钱
1891
HASS币
10
发表于 2023-2-13 09:45:17 | 显示全部楼层 |阅读模式
本帖最后由 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.

获取不到相应参数,特此求教!
截屏2023-02-13 09.44.45.png
——————————————————————————————————
问题已解决。
第一,在仪表盘编辑模式下,双击Floor3d-card卡片的空白处,会跳出一组参数。把这组参数粘贴进卡片编辑的代码中(不是图形界面),保存即可。
第二,对于这三个参数的理解:
camera_position: 视角位置,数字不能完全一致,否则可能调换位置
camera_rotate: 视角角度
camera_target: 视角目标,用户未设置则不会变化
参考第一条获取参数就能大致判断所需要实现位置的参数。然后保存即可。

回复

使用道具 举报

35

主题

372

帖子

2263

积分

金牌会员

Rank: 6Rank: 6

积分
2263
金钱
1891
HASS币
10
 楼主| 发表于 2023-2-13 19:29:45 | 显示全部楼层
求助谢谢各位大咖
回复

使用道具 举报

0

主题

39

帖子

354

积分

中级会员

Rank: 3Rank: 3

积分
354
金钱
315
HASS币
0
发表于 2023-2-17 11:57:04 | 显示全部楼层
直接把视角旋转到你需要的位置,然后固定视角,这样不行吗?
回复

使用道具 举报

35

主题

372

帖子

2263

积分

金牌会员

Rank: 6Rank: 6

积分
2263
金钱
1891
HASS币
10
 楼主| 发表于 2023-2-17 12:46:01 | 显示全部楼层
fuhao3503 发表于 2023-2-17 11:57
直接把视角旋转到你需要的位置,然后固定视角,这样不行吗?

需要获取参数,合适的视角需要手动调整参数。不过已经搞定了,谢谢啦!
回复

使用道具 举报

0

主题

25

帖子

154

积分

注册会员

Rank: 2

积分
154
金钱
129
HASS币
0
发表于 2023-9-28 19:50:48 | 显示全部楼层
你的这个解决我大麻烦了,谢谢呀,我的3D图只有18M,就卡的要命,晕死
回复

使用道具 举报

35

主题

372

帖子

2263

积分

金牌会员

Rank: 6Rank: 6

积分
2263
金钱
1891
HASS币
10
 楼主| 发表于 2023-9-29 14:15:07 | 显示全部楼层
slokit 发表于 2023-9-28 19:50
你的这个解决我大麻烦了,谢谢呀,我的3D图只有18M,就卡的要命,晕死

卡不卡跟显示硬件有关,换一个性能强一点的平板吧
回复

使用道具 举报

110

主题

1600

帖子

5056

积分

元老级技术达人

积分
5056
金钱
3451
HASS币
30
发表于 2023-9-29 14:39:18 | 显示全部楼层
slokit 发表于 2023-9-28 19:50
你的这个解决我大麻烦了,谢谢呀,我的3D图只有18M,就卡的要命,晕死

我的30M,局域网平板打开3-5秒,外网访问要15秒左右
回复

使用道具 举报

0

主题

25

帖子

154

积分

注册会员

Rank: 2

积分
154
金钱
129
HASS币
0
发表于 2023-10-13 23:09:21 | 显示全部楼层
bugensui 发表于 2023-9-29 14:39
我的30M,局域网平板打开3-5秒,外网访问要15秒左右

我觉得可能是我的3D图是透视效果的,所以台式机都要卡的要命
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-8 22:11 , Processed in 1.168559 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表