Changeset 400


Ignore:
Timestamp:
Jul 9, 2012, 2:34:17 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp

    r399 r400  
    207207
    208208                                // Store values into array
    209                                 tmpMesh->push_back(osg::Vec4(values[0], values[1], values[2], values[3]));
     209                                tmpMesh->push_back(osg::Vec4(values[0], 1.0-values[1], values[2], 1.0-values[3]));
    210210                        }
    211211                }
     
    281281                int numFrustumValues=16;
    282282                float* frustumValues = new float[numFrustumValues];
    283                 double zNear=0.1, zFar=100.0;
     283                double zNear=1.0, zFar=1000.0;
    284284
    285285                readFrustumFromCSVFile(_frustumFilename, numFrustumValues, frustumValues);
     
    304304                //Frustum Parameters: Left, Right, Bottom, Top, zNear, zFar.
    305305                // 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);
     306                projectionOffset.makeFrustum(frustumValues[10], frustumValues[11], frustumValues[12], frustumValues[13], zNear, zFar);
    307307
    308308                distortionSet->setViewOffset(viewOffset);
Note: See TracChangeset for help on using the changeset viewer.