Changeset 326


Ignore:
Timestamp:
02/20/12 09:58:21 (3 months ago)
Author:
torben
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/extViewer.cpp

    r325 r326  
    115115    } 
    116116 
     117        getCamera()->setProjectionMatrixAsPerspective(90.0f, (float)tex_width/(float)tex_height, 1, 1000.0); 
     118 
    117119    // distortion correction set up. 
    118120    { 
    119121        osg::Geode* geode = new osg::Geode(); 
    120122                //geode->addDrawable(createParoramicSphericalDisplayDistortionMesh(osg::Vec3(0.0f,0.0f,0.0f), osg::Vec3(width,0.0f,0.0f), osg::Vec3(0.0f,height,0.0f), 1, 0.45, 0, projectorMatrix)); 
    121                 geode->addDrawable(createMesh(osg::Vec3(0.0f,0.0f,0.0f), osg::Vec3(width,0.0f,0.0f), osg::Vec3(0.0f,height,0.0f), 4, 4)); 
     123                geode->addDrawable(createMesh(osg::Vec3(0.0f,0.0f,0.0f), osg::Vec3(width,0.0f,0.0f), osg::Vec3(0.0f,height,0.0f), 20, 20)); 
    122124 
    123125        // new we need to add the texture to the mesh, we do so by creating a 
     
    209211        } 
    210212 
    211  
    212213        // Pass the created vertex array to the points geometry object. 
    213214        geom->setUseVertexBufferObjects( true ); 
     
    219220    geom->setTexCoordArray(0,texcoords0); 
    220221    //if (texcoords1) geometry->setTexCoordArray(1,texcoords1); 
    221  
    222  
    223222 
    224223 //   osg::DrawElementsUShort* elements = new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLES); 
Note: See TracChangeset for help on using the changeset viewer.