Hi everyone, I would like to thank you all for being such helpfulness... but
I have one more problem ... I'm getting this warning message:

WARNING: 13.746:
d:\opensg-dailybuild\opensg\source\system\state\osgmaterialchun
k.cpp:215:
(d:\opensg-dailybuild\opensg\source\system\state\osgmaterialchunk.cp
p,215): material:activate:postcheck failed: invalid enumerant (0x500)

And I don't know the reason why... I've found out that the code chunk that
has caused the problem is the one below:

beginEditCP( material, OSG::SimpleMaterial::DiffuseFieldMask |
OSG::SimpleMaterial::AmbientFieldMask |
                               OSG::SimpleMaterial::SpecularFieldMask    |
OSG::SimpleMaterial::LitFieldMask |
                               OSG::SimpleMaterial::ColorMaterialFieldMask |
OSG::SimpleMaterial::ChunksFieldMask );
        {
            if( tsSurface.getProperties().size() == 0 )
            {
                material->setLit( true );
                material->setDiffuse( OSG::Color3f( 1, 1, 1 ) );
                material->setAmbient( OSG::Color3f( 0.6f, 0.6f, 0.6f ) );

            }
            else
            {

                material->setLit( false );
                material->setSpecular( OSG::Color3f( 0, 0, 0 ) );
                material->setDiffuse( OSG::Color3f( 0, 0, 0 ) );
            }

            material->setColorMaterial( GL_FRONT_AND_BACK );
            material->addChunk( twoSideLightChunk );
        }
        endEditCP( material, OSG::SimpleMaterial::DiffuseFieldMask |
OSG::SimpleMaterial::AmbientFieldMask |
                             OSG::SimpleMaterial::SpecularFieldMask    |
OSG::SimpleMaterial::LitFieldMask |
                             OSG::SimpleMaterial::ColorMaterialFieldMask |
OSG::SimpleMaterial::ChunksFieldMask );

What is the problem... can anyone help?

thanks
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to