Changeset 399 for experimental


Ignore:
Timestamp:
Jul 7, 2012, 4:08:42 PM (12 years ago)
Author:
Torben Dannhauer
Message:

Frustum korrigiert: PS-Strategy now uses tan values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp

    r394 r399  
    302302                viewOffset = viewOffset * rotViewOffset; // * transViewOffset;
    303303               
    304                 //Frustum Parameters: Left, Right, Bottom, Top, zNear, zFar
    305                 projectionOffset.makeFrustum(osg::inDegrees(frustumValues[6]), osg::inDegrees(frustumValues[7]), osg::inDegrees(frustumValues[8]), osg::inDegrees(frustumValues[9]), zNear, zFar);
     304                //Frustum Parameters: Left, Right, Bottom, Top, zNear, zFar.
     305                // Important: By definition of OpenGL, Left, Right, Bottom and Top must be set as tangens!
     306                projectionOffset.makeFrustum(osg::inDegrees(frustumValues[10]), osg::inDegrees(frustumValues[11]), osg::inDegrees(frustumValues[12]), osg::inDegrees(frustumValues[13]), zNear, zFar);
    306307
    307308                distortionSet->setViewOffset(viewOffset);
     
    356357                        readMeshPointsFromCSVFile(_distortionFilename, distortionMesh);
    357358
    358 #if 1
     359#if 0
    359360                        for (osg::Vec4Array::iterator it = distortionMesh->begin(); it != distortionMesh->end(); ++it)
    360361                        {
Note: See TracChangeset for help on using the changeset viewer.