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

Legend:

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

    r2844 r2860  
    4242void Camera::Precompute(const Vector3 &direction)  
    4343{ 
    44         /* 
    45         Vector3 side = CrossProd(Vector3(1, 0, 0), direction); 
    46         Vector3 up = -Normalize(CrossProd(side, direction)); 
    47         Vector3 right = -Normalize(CrossProd(direction, up)); 
    48         */ 
    4944        Vector3 up = Vector3(0, 0, 1); 
    5045        Vector3 right = Normalize(CrossProd(up, direction)); 
     
    5348        mBaseOrientation = Matrix4x4(right, up, direction); 
    5449        mViewOrientation = mBaseOrientation; 
    55  
    56         /*cout << "right: " << right << endl; 
    57         cout << "up:    " << up << endl; 
    58         cout << "dir:   " << direction << endl; 
    59         */ 
    6050} 
    6151 
     
    241231        } 
    242232 
    243         Vector3 h2 = direction;// h2.x = 0;  
     233        Vector3 h2 = direction;  
    244234         
    245235        if (SqrMagnitude(h2) > 0) 
    246236        { 
    247237                h2.Normalize(); 
    248                 mYaw = -acos(DotProd(h2, h1));//Vector3(0, 1, 0))); 
     238                mYaw = -acos(DotProd(h2, h1)); 
    249239        } 
    250240 
Note: See TracChangeset for help on using the changeset viewer.