Hello !
How do I have to setup the SkyNode by code?
In the past I sed this:

    // SKY
    const Config& externals = mapNode->externalConfig();
    Config skyConf = externals.child( "sky" );
    double hours = skyConf.value( "hours", 3.0 );
    s_sky = new SkyNode( mapNode->getMap() );
    s_sky->setDateTime( 2011, 3, 6, hours );
    s_sky->attach( &viewer );
    root->addChild( s_sky );

But now this is not working . What do I m doing wrong please?
--
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to