Here's your assignment. Add a slider that controls the field of view parameter
for the perspective camera. Use the dat.GUI library to set up the slider. Give
the slider the name Field of View. This Field of View slider should have a
range of 1 to 179 degrees, and start at 40 degrees. When you're done, the
program should look like this. As you change the view, things should look
considerably different. Once you have things working, I recommend you try
moving around the scene. Compare changing the field of view with what happens
when you use the mouse wheel or middle mouse button to move back and forth.
では問題です 透視投影の視野のパラメータを
操作するスライダを
dat.GUIライブラリを使って設定してください
スライダに"Field of View"と名前を付けてください
このスライダの範囲は1度~179度で
40度が始点です
できたプログラムはこのように見えます
視点を変えると見え方が大幅に違います
作業が終わったらシーンの中を動かしてみてください
マウスやマウスボタンを使うと
視野がどう変わるか比べてください
這是你的作業
加一個滑桿控制透視攝影機的視野大小參數
使用 dat.GUI 程式庫創造滑桿
將滑桿命名為視野大小
這個視野大小滑桿範圍應該在 1 到 179 度,初始在 40 度
完成後程式會像這樣
當你改變視角,東西會跟著看起來很不一樣
完成後我建議你在場景中走走
比較改變視野大小跟使用滑鼠中鍵滾輪前後移動的差別