Skip to content

Fix box texts rotation to camera#83

Merged
d-hayashi merged 3 commits intodevelop-hdlfrom
fix/box-texts-face-camera
Oct 1, 2020
Merged

Fix box texts rotation to camera#83
d-hayashi merged 3 commits intodevelop-hdlfrom
fix/box-texts-face-camera

Conversation

@yusukefs
Copy link
Copy Markdown

@yusukefs yusukefs commented Sep 30, 2020

What?

  • ボックスの位置情報テキストのメッシュを常にカメラに向くようにした
    • Quaternionでカメラに向ける
    • OrbitControlでカメラ向きが変更された際にメッシュ更新関数を呼ぶ

Why?

方向が固定でカメラを動かすと見辛い

See also [Optional]

  • 関連するissueやPR番号へのリンク
  • 参考にしたURLなど

Screenshot or video [Optional]

画面収録 2020-09-30 16 00 47

@yusukefs
Copy link
Copy Markdown
Author

ズームレベルに合わせてフォントサイズを変化させたかったのですが、OrbitControlでズームのレベルを取得する方法がわからなかったため、いったん方向合わせのみでのPRです。

@yusukefs yusukefs requested a review from d-hayashi September 30, 2020 07:08
Copy link
Copy Markdown

@d-hayashi d-hayashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@d-hayashi d-hayashi merged commit 064de06 into develop-hdl Oct 1, 2020
@d-hayashi d-hayashi deleted the fix/box-texts-face-camera branch October 30, 2020 03:00
d-hayashi pushed a commit that referenced this pull request Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants