2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Embree で回転のモーションブラーを行うメモ

Last updated at Posted at 2020-09-05

背景

Embree でレイトレで回転物体(e.g. 扇風機の羽とか)のモーションブラーやりたい

quaternion motion blur

最近(?), Embree で quaternion moton blur 機能が付きました. 少なくとも v3.11.0 では利用できます.

図を見てわかるように, 線形で補間だと回転する物体はうまくいきません(十分サンプル数上げればそこそこ上手く近似できるであろうが).

quaternion でノード行列(Transform)の回転の定義を行うことで回転のモーションブラーを扱えるようになっています.

ノード行列の指定には rtcSetGeometryTransformQuaternion を利用します.
rtcSetGeometryTransformQuaternion では, 回転と一緒に他の要素(translation, scale)も同時に扱えるようです(回転するコマが移動するとか.試してみたが一応正しそうっぽそうであった)

その他

通常の node transform による motion blur は linear 補間だけのようです(cubic 補間は無さそうっぽい)

TODO

回転と移動が一緒になったシーンでモーションブラーがうまくいくかためす.
(e.g. 羽が回転しつつ首を振りつつ自走する扇風機をレンダリングしたいとか)

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?