4
3

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 5 years have passed since last update.

VR動画の見える範囲の実ピクセル数を計算する

Posted at
幅 = 視野角 / 360 * 動画の横解像度
高さ = 幅 * ビューポートの高さ / ビューポートの幅

視野角 = 90度
動画の横解像度 = 4096
ビューポートの幅 = 960 (1920を両目で使うので半分)
ビューポートの高さ = 1080

幅 = 90 / 360 * 4096 = 1024
高さ = 1024 * 1080 / 960 = 1152

面積比

元動画 = 4096 * 2048 = 8388608
見える範囲 = 1024 * 1152 = 1179648
見える範囲 / 元動画 = 1179648 / 8388608 = 0.140625

…ほんとかな

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?