Dear All,
I observe very weird results of rendered object in the scene after I apply 
matrix transformation. Before applying the MT everything works as I expected 
and rendering results are satisfying see the 1st loaded image. But when apply 
the MT the loaded shape surface becomes excessively illuminated, as if normals 
are inaccurately calculated or probably something else. The scenario is same if 
apply the transformation via PositionAttitudeTransform, I directly modify the 
composite viewer example, code that corresponds to that scene is as follow.
1st image    :http://tinypic.com/r/2lmuljs/82nd image  
:http://tinypic.com/r/6g9181/8
/// rootnode and loadedModel are defined in global scope osg::MatrixTransform* 
rootnode;osg::Node* loadedModel;
//Where the first initialization happens at the PickHandler  Right Button Click 
                    loadedModel = 
osgDB::readNodeFile(".........../sys/test.obj");                    
//loadedModel->getOrCreateStateSet()->setMode(GL_LIGHTING, 
osg::StateAttribute::ON);
                    osg::ref_ptr<osg::MatrixTransform> transformation1 = new 
osg::MatrixTransform;                    
transformation1->addChild(loadedModel);                    
transformation1->setMatrix(osg::Matrix::scale(0.4,4,0.4));
                    rootnode->addChild(transformation1);
What is the malfuncitoning here causing such a illuminaition intensity, I never 
get it rendered as damaged cessna at the upper view ?
Regards,                                                                        
          
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to