Permalink
Commits on Mar 14, 2008
  1. Updated wrappers

    robertosfield committed Mar 14, 2008
  2. Fixed indenting

    robertosfield committed Mar 14, 2008
  3. From Melchior Franz, "Attached is a fix for remaining problems in cap…

    …slock handling:
    
    It sets osgGA's keymask when restoring keys on FocusIn, according
    to the state values of XKeyEvent and XCrossingEvent. (These are
    the only source for X11's current capslock state that avoids
    pulling in the XKB extension.)
    "
    robertosfield committed Mar 14, 2008
  4. Missing checkin

    robertosfield committed Mar 14, 2008
  5. Added iostream include

    robertosfield committed Mar 14, 2008
  6. Added cloning of the StateSet before modification to work around thre…

    …ading issue
    
    relating to the StateSet being modified by the event/update thread and read from
    the draw thread at the same time.
    robertosfield committed Mar 14, 2008
  7. Updated wrappers

    robertosfield committed Mar 14, 2008
  8. Improved the indenting

    robertosfield committed Mar 14, 2008
  9. Changed the const get(), operator*() and operator->() methods to retu…

    …rn non const T versions
    robertosfield committed Mar 14, 2008
Commits on Mar 13, 2008
  1. Fixed doc comment

    robertosfield committed Mar 13, 2008
  2. From Gino van den Bergen, "I've added a few fixes to the VRML 2.0 plu…

    …gin:
    
    1) Full DOS paths are now correctly opened by OpenVRML. A URL containing
    a DOS path should be "file:///C:data/blah" rather than "file://C:data/blah".
    
    2)  The last primitive defined in "coordIndex" is now added if the
    "coordIndex" is not terminated by -1.
    
    3) Smoothed normals are computed if no normal field is provided.
    Currently, there is no support for "creaseAngle", so all edges (even the
    ones sharper than the creaseAngle) are smoothed. I might add this in the
    future if demand rises.
    
    4) If an IndexedFaceSet contains only triangles or quads then the
    primitive type is set to TRIANGLES or QUADS, and the primset becomes
    DrawArrays rather than DrawArrayLengths.
    
    Question: I noticed that for DrawArrays you can still provide an index
    array. Would the rendering be faster if I'd create DrawElements primsets
    rather than DrawArrays? Phrased differently, what is the benefit of
    using DrawElements over DrawArrays, as there is clearly not a one-to-one
    mapping of these concepts to their OpenGL counterparts?
    
    5) Objects are added to the transparent bin and blend mode is enabled
    only if the transparency is nonzero. Rendered transparent objects no
    longer write the depth buffer."
    robertosfield committed Mar 13, 2008
  3. From Jose Delport, "attached is a version of osgunittests that does n…

    …ot give false alarms
    
    for the case where q1 = -q2. The output of 'osgunittests quat' is now
    much cleaner.
    "
    robertosfield committed Mar 13, 2008
  4. From Paul Melis, "Here is an updated osgviewerWX example to bring it …

    …more in line with the
    
    other GUI toolkit examples. It now takes a model file as command-line
    argument (complaining if there isn't one), and its startup window size
    is now actually applied (it used to be too small). I tested this with a
    unicode-build of wxWidgets, as that is the recommended build type on
    Linux with GTK. I'm pretty sure this version of the example will work
    for the ANSI build as well, but I have no way of testing."
    robertosfield committed Mar 13, 2008
  5. From Melchoir Franz, "ac3d.cpp does currently strip everything but th…

    …e file name in
    
    "texture" paths. This is to drop absolute paths that some
    3d editors export (even AC3D itself!). But this also strips
    directories of relative paths, which is wrong and contradicts
    the ac3d reference implementation. (The reference implementation
    doesn't strip anything, though, and so takes the absolute paths
    as they are. Definitely not what we want.)
    
    The attached solution checks absolute paths and only strips
    those:
    
     (1)  A:\\foo\\bar.png   ->   bar.png            (as before)
     (2)  /foo/bar.png       ->   bar.png            (as before)
    
     (3)  foo/bar.png        ->   foo/bar.png        (new)
     (4)  ../foo/bar.png     ->   ../foo/bar.png     (new)
    
    "
    robertosfield committed Mar 13, 2008
  6. Updated wrappers

    robertosfield committed Mar 13, 2008
  7. From Andy Skinner, "I've taken this another step, to use value_type i…

    …nside the intersect calls. I did choose to use sqrt() instead of sqrtf()."
    robertosfield committed Mar 13, 2008
  8. From Paul Martz, "The attached preserves OpenFlight Object record dat…

    …a as UserData in the osg::Group corresponding to the Object record.
    
     
    The files are:
        include/osgSim/ObjectRecordData -- The new class. Derives from Object to support .osg IO.
        src/osgPlugins/OpenFlight/PrimaryRecords.cpp -- Reads data into that class.
        src/osgPlugins/osgSim/IO_ObjectRecordData.cpp -- .osg IO support."
    
    From Robert Osfield, made the OpenFlight read object record data optional via the -O readObjectRecordData ReaderWriter option.
    robertosfield committed Mar 13, 2008
  9. From Alberto Luaces, "Here I send minor corrections to the text outpu…

    …t by the osgforest example when
    
    building its graphs. The message "Creating billboard based forest" appears
    four times regardless of the actual type of the graph being built.
    "
    robertosfield committed Mar 13, 2008
Commits on Mar 12, 2008
  1. Updated wrappers

    robertosfield committed Mar 12, 2008
  2. Added extra constructors

    robertosfield committed Mar 12, 2008
  3. Added proper implementations of OpenGL 1.0 calls to OSG object repres…

    …entation methods in SceneGraphBuilder.
    robertosfield committed Mar 12, 2008
Commits on Mar 11, 2008