Ignore:
Timestamp:
08/31/08 17:09:46 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Camera.cpp

    r2888 r2889  
    175175        float z_far = mFar; 
    176176 
    177         const float w_near = 2.0f * tan(mFovy / 2) * z_near; 
     177        float fov = 120 * M_PI / 180.0f;//mFovy; 
     178 
     179        const float w_near = 2.0f * tan(fov * 0.5f) * z_near; 
    178180        const float h_near = w_near / GetAspect(); 
    179         const float w_far = 2.0f * tan(mFovy / 2) * z_far; 
     181 
     182        const float w_far = 2.0f * tan(fov * 0.5f) * z_far; 
    180183        const float h_far = w_far / GetAspect(); 
    181184 
     
    183186        const Vector3 fc = mPosition + view * z_far;  
    184187         
    185         const Vector3 up = GetUpVector(); 
    186         const Vector3 right = GetRightVector(); 
     188        const Vector3 up = -GetUpVector(); 
     189        const Vector3 right = -GetRightVector(); 
    187190 
    188191        Vector3 t1, t2; 
Note: See TracChangeset for help on using the changeset viewer.