User Tools

Site Tools


en:tutorials:cameras:cameras_and_frustums

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tutorials:cameras_and_frustums [2018/02/13 20:46 (6 years ago)] – ↷ Page moved from tutorials:cameras_and_frustums to en:tutorials:cameras_and_frustums iarwainen:tutorials:cameras:cameras_and_frustums [2023/03/30 21:54 (13 months ago)] (current) sausage
Line 34: Line 34:
 The camera is placed at position 400, 300, -1.0 in the world. The camera is placed at position 400, 300, -1.0 in the world.
  
-In this case, the ''FrustumFar'' is 1.0 and the ''FrustumNear'' is 0.0. These two values are relative to the camera's z-position. That this means isthe camera can see near from it's z-position + the FrustumNear value, in this case: -1.0. And it can see into the distance, z-position + FrustumFar, which is 0.0.+In this case, the ''FrustumFar'' is 1.0 and the ''FrustumNear'' is 0.0. These two values are relative to the camera's z-position. What this means isthe camera can see near from it's z-position + the FrustumNear value, in this case: -1.0. And it can see into the distance, z-position + FrustumFar, which is 0.0.
  
 Take a look at the following diagram to help visualise it: Take a look at the following diagram to help visualise it:
  
-{{ :tutorials:frustum-z.png |}}+{{ tutorials:cameras:frustum-z.png |}}
  
 The image above shows the frustum near and far values represented by the dotted lines. Only objects within it can be seen. The image above shows the frustum near and far values represented by the dotted lines. Only objects within it can be seen.
Line 49: Line 49:
 General points to note: General points to note:
   * ''FrustumNear'' cannot be strictly negative, as it cannot start behind the camera   * ''FrustumNear'' cannot be strictly negative, as it cannot start behind the camera
-  * ''FrustumFar'' needs to be greater that ''FrustumNear''+  * ''FrustumFar'' needs to be greater than ''FrustumNear''
 </WRAP> </WRAP>
  
Line 61: Line 61:
 Something to note is that the frustum is always in the center of the camera in the X and Y axis. Something to note is that the frustum is always in the center of the camera in the X and Y axis.
  
-{{ :tutorials:frustum-x-y.png |}}+{{ tutorials:cameras:frustum-y-x.png |}}
  
 As per the depth, any object that appears outside the frustum boundaries, will not be visible. As per the depth, any object that appears outside the frustum boundaries, will not be visible.
  
en/tutorials/cameras/cameras_and_frustums.1518583584.txt.gz · Last modified: 2018/02/14 00:46 (6 years ago) (external edit)