Show
Ignore:
Timestamp:
02/08/09 16:56:35 (6 years ago)
Author:
robert
Message:

From Paul Melis, "While trying out the osgbrowser example (where I had forgotten to update
LD_LIBRARY_PATH so the XUL libs would be found) I noticed that although
the gecko plugin was found it could not be loaded. But this did not
trigger any visible warning/error message (at least not without INFO
notify level). Would you mind if we change the notify level for a
dlerror() to WARNING? This will also make it more explicit for the case
when a plugin isn't actually found, which seems to come up a lot for
novice users (e.g. no freetype on win32, so no freetype plugin, etc).
Also, the current error message is misleading ("Warning: Could not FIND
plugin to ...") because the it's not always a case of not finding the
plugin. I slightly enhanced the situation of not finding a plugin versus
finding it but not being able to load it.

Here's also a few fixes to some of the examples:
- osgfont: make usage help line more in line with the actual behaviour
- osgcompositeviewer: complain when no model file was provided
- osgmovie: don't include quicktime-dependent feature on Linux
- osgocclussionquery: comment addition (as I was surprised that lines
were being drawn in a function called createRandomTriangles())"

Files:
1 modified

Legend:

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

    r8274 r9705  
    1212 
    1313        const osgText::Text::TextureGlyphQuadMap::const_iterator tgqmi = tgqm.begin(); 
    14          
     14 
    1515        const osgText::Text::GlyphQuads& gq = tgqmi->second; 
    1616 
     
    6060        camera->setClearMask(GL_DEPTH_BUFFER_BIT); 
    6161        camera->setRenderOrder(osg::Camera::POST_RENDER); 
    62          
     62 
    6363        return camera; 
    6464} 
     
    9898        if(argc <= 2) 
    9999        { 
    100                 osg::notify(osg::FATAL) << "usage: " << args[0] << " FONTFILE [sizes...]" << std::endl; 
     100                osg::notify(osg::FATAL) << "usage: " << args[0] << " fontfile size1 [size2 ...]" << std::endl; 
    101101 
    102102                return 1; 
     
    107107 
    108108        osg::Group*  group  = new osg::Group(); 
    109         osg::Camera* camera = createOrthoCamera(1280.0f, 1024.0f);  
     109        osg::Camera* camera = createOrthoCamera(1280.0f, 1024.0f); 
    110110 
    111111        // Create the list of desired sizes. 
     
    139139        return viewer.run(); 
    140140} 
     141