Show
Ignore:
Timestamp:
08/23/06 15:16:12 (8 years ago)
Author:
robert
Message:

Tweaks to osglogo to allow you to export alpha blended screenshots

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osglogo/osglogo.cpp

    r5381 r5463  
    424424 
    425425    osg::ClearNode* backdrop = new osg::ClearNode; 
    426     backdrop->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f)); 
     426    backdrop->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,0.0f)); 
    427427 
    428428    //osg::Vec3 lightPosition(-500.0f,-2500.0f,500.0f); 
     
    450450    arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is the example which demonstrates both text, animation and billboard via custom transform to create the OpenSceneGraph logo.."); 
    451451    
    452 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+"[options] [filename] ..."); 
     452    arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+"[options] [filename] ..."); 
    453453    arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 
    454454    arguments.getApplicationUsage()->addCommandLineOption("ps","Render the Professional Services logo"); 
    455455    
     456    
     457    osg::DisplaySettings::instance()->setMinimumNumAlphaBits(8); 
     458    
    456459    // construct the viewer. 
    457460    osgProducer::Viewer viewer(arguments); 
    458461 
     462    viewer.setWriteImageFileName("logo.rgb"); 
     463     
    459464    // set up the value with sensible default event handlers. 
    460465    viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS);