Changeset 400 for experimental
- Timestamp:
- Jul 9, 2012, 2:34:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp
r399 r400 207 207 208 208 // 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])); 210 210 } 211 211 } … … 281 281 int numFrustumValues=16; 282 282 float* frustumValues = new float[numFrustumValues]; 283 double zNear= 0.1, zFar=100.0;283 double zNear=1.0, zFar=1000.0; 284 284 285 285 readFrustumFromCSVFile(_frustumFilename, numFrustumValues, frustumValues); … … 304 304 //Frustum Parameters: Left, Right, Bottom, Top, zNear, zFar. 305 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);306 projectionOffset.makeFrustum(frustumValues[10], frustumValues[11], frustumValues[12], frustumValues[13], zNear, zFar); 307 307 308 308 distortionSet->setViewOffset(viewOffset);
Note: See TracChangeset
for help on using the changeset viewer.