Welcome to Realtime Technologies Support Forum


  Reply to this topicStart new topicStart Poll

> How to set the Field of View, setting the FOV in Visuals
Bryan
Posted: Apr 10 2013, 08:28 AM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 177
Joined: 20-August 12



When setting the Field of View in the Visuals component of SimCreator there are three main steps to follow, measurements, calculations and setting component values.

Measurement
The first step in setting up the field of view is to take measurements. You will want to get the screen width, distance from the eye point to the center of the screen and the aspect ratio. The eye point distance and the screen width can be measured using a tape measure. The aspect ratio may be known, standards being 16:9 or 4:3, the aspect ratio can also be obtained by checking the resolution settings or through measurement. The ratio would be the width divided by the height, either in measured values or the resolution settings.

Calculations
Once the screen width, eye point distance and aspect ratio are known you can calculate the Field of View (FOV). First divide the screen width by 2. Then divide that value by the eye point distance. Take the Arctangent of the new value and multiply the result by 2. Finally divide the result by the aspect ratio to obtain the FOV. The value of the aspect ratio is width divided by height but it may also be given as the ratio, 16:9 for instance or through resolution 1920×1080 in these instance the values for width are 16 and 1920 respectively and the height 9 and 1080.

For example lets say that the screen width is 41, the distance to the eye point is 55 and the aspect ratio is 16:9.

(aspect ratio) = (screen width)/(screen height)
1.78 = 16/9

FOV= ( [arctan⁡((screen width)/(2×distance to eye point))]×2)/(aspect ratio)
22.97 = ((arctan(41/(2x55))x2)/1.78

Setting Values in Visuals
Now that the FOV and aspect ratio are known they need to be input into the proper location in SimCreator. In the SimCreator model locate the visuals component. double click on the visuals component to bring up a dialog box titled Data for Visuals. Under the Edit Data tab look for the fov field. The first value field is the FOV angle calculated, 22.97, and the second is the aspect ratio, 1.78. The entered values should appear as shown below.

fov [0][0] = 22.97 [deg] FOV (fov) (aspect)
fov [0][1] = 1.78 [deg] FOV (fov) (aspect)

This process will have to be done for each visual channel.
PMEmail Poster
Top

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0213 ]   [ 10 queries used ]   [ GZIP Enabled ]