3D グラフィック機能
d3d_set_projection †
この関数はビュー行列を変更することができます
構文 †
d3d_set_projection(xfrom, yfrom, zfrom, xto, yto, zto, xup, yup, zup)
- xfrom
- 視点のX座標(look)
The x coordinate of the position to look from.
- yfrom
- 視点のY座標(look)
The y coordinate of the position to look from.
- zfrom
- 視点のZ座標(look)
The z coordinate of the position to look from.
- xto
- ターゲットのX座標(target)
The x coordinate of the position to look to.
- yto
- ターゲットのY座標(target)
The x coordinate of the position to look to.
- zto
- ターゲットのZ座標(target)
The x coordinate of the position to look to.
- xup
- 視点の上方向ベクトルのX成分(up)
The x coordinate of the "up" vector.
- yup
- 視点の上方向ベクトルのY成分(up)
The y coordinate of the "up" vector.
- zup
- 視点の上方向ベクトルのZ成分(up)
The z coordinate of the "up" vector.
戻り値 †
- N/A
- なし
説明 †
この関数名はd3d_set_projectsionですが、実際にはビュー行列(投影行列ではない)を変更するために使用します。投影行列を変更するには、d3d_set_projection_ext()を使用して射影行列を初期化し、その後、投影でのビュー(カメラ)を移動するために、この関数を使用します。
ビューは、最初のパラメータ(xfrom, yform, zfrom)で示され、この座標が視点となります。見る方向の指定は(xto, yto, zto)でしています。最後に視点の上向きベクトルを指定します。これは(xup, yup, zup)で指定します。
d3d_set_projection(100, 100, 10, 200, 100, 10, 0, 0, 1);
上記コードは典型的なFPSのビュー行列を設定しています。
Wiki内検索
#search(): You already view a search box
MENU
2ch
その他
最新の30件
2024-03-07
2023-08-09
2023-05-21
2023-05-20
2023-05-04
2022-10-13
2022-07-21
2022-07-02
2022-04-06
2021-11-30
2021-11-26
2021-10-03
2021-09-23
2021-08-15
2021-06-02
2021-01-23
2021-01-21
2021-01-19
2021-01-18
2021-01-16
2021-01-15
人気の10件
今日の10件
これまでの訪問者: 1456
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 4