Changeset 399
- Timestamp:
- Jul 7, 2012, 4:08:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp
r394 r399 302 302 viewOffset = viewOffset * rotViewOffset; // * transViewOffset; 303 303 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); 306 307 307 308 distortionSet->setViewOffset(viewOffset); … … 356 357 readMeshPointsFromCSVFile(_distortionFilename, distortionMesh); 357 358 358 #if 1359 #if 0 359 360 for (osg::Vec4Array::iterator it = distortionMesh->begin(); it != distortionMesh->end(); ++it) 360 361 {
Note: See TracChangeset
for help on using the changeset viewer.