Show
Ignore:
Timestamp:
05/18/09 17:21:57 (5 years ago)
Author:
robert
Message:

From Roland Smeenk, "Attached you will find some changes to the dae plugin to improve light support.

-Changed the addition of lights to add the lightsource directly into the scenegraph (instead of below a switch node)
-All added lights are enabled in the root stateset and replace the head- or skylight.

(if no lights are available the head- or skylight will remain active)

-Ambient in osg::LightModel? is zeroed out. All ambient now comes from separate ambient only light sources.
-Lights can now be written properly
-Replaced strings by constants defined in the Collada DOM"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/dae/CMakeLists.txt

    r9998 r10234  
    5353            COLLADA_LIBXML_LIBRARY 
    5454            COLLADA_PCRECPP_LIBRARY 
     55            COLLADA_PCRE_LIBRARY 
    5556            COLLADA_BOOST_FILESYSTEM_LIBRARY 
    5657            COLLADA_BOOST_SYSTEM_LIBRARY)     
     
    6465    ELSE() 
    6566        SET(TARGET_LIBRARIES_VARS 
    66             COLLADA_DYNAMIC_LIBRARY) 
     67            COLLADA_PCRECPP_LIBRARY 
     68            COLLADA_PCRE_LIBRARY 
     69            COLLADA_DYNAMIC_LIBRARY 
     70            COLLADA_BOOST_FILESYSTEM_LIBRARY 
     71            COLLADA_BOOST_SYSTEM_LIBRARY) 
    6772    ENDIF()  
    6873ENDIF()