Changeset 2938 for GTP/trunk


Ignore:
Timestamp:
09/12/08 18:38:30 (16 years ago)
Author:
mattausch
Message:

better, still not there

File:
1 edited

Legend:

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

    r2937 r2938  
    234234        //-- first find the free parameter values n, and P (the projection center), and the projection depth 
    235235 
     236        //const float n = 1e2f; 
    236237        const float n = 1e2f; 
    237         //const float n = 1e6f; 
    238238        //const float n = ComputeN(bounds_ls) * 100; 
    239239 
     
    278278        Matrix4x4 matLispSM; 
    279279         
    280         matLispSM = GetFrustum(-1.0, 1.0, -1.0, 1.0, n, n + d); 
     280        matLispSM = GetFrustum(-1.0, 1.0, -1.0, 1.0, n, n + d * 1e10f); 
    281281 
    282282        //cout << "lispsm\n" << matLispSM << endl; 
     
    439439        //calculate a frame matrix that uses the projViewDir[lightspace] as up vector 
    440440        //look(from position, into the direction of the projected direction, with unchanged up-vector) 
    441         const Matrix4x4 frame = MyLookAt2(Vector3::ZERO(), projViewDir, Vector3::UNIT_Y()); 
    442         //const Matrix4x4 frame = MyLookAt(Vector3::ZERO(), projViewDir, Vector3::UNIT_Y()); 
     441        //const Matrix4x4 frame = MyLookAt2(Vector3::ZERO(), projViewDir, Vector3::UNIT_Y()); 
     442        const Matrix4x4 frame = MyLookAt2(Vector3::ZERO(), -projViewDir, Vector3::UNIT_Y()); 
    443443 
    444444        cout << "frame\n " << frame << endl; 
     
    447447        cout << "here9\n" << lightProj << endl; 
    448448 
    449         Matrix4x4 refl2 = ScaleMatrix(-1, -1, 1);  
    450         lightProj = refl2 * lightProj; 
     449        //Matrix4x4 refl2 = ScaleMatrix(-1, -1, 1);  
     450        //lightProj = refl2 * lightProj; 
    451451 
    452452        const Matrix4x4 matLispSM =  
Note: See TracChangeset for help on using the changeset viewer.