Hi,
I'm a newbie.
I found that the osg cow I read from node file is different. The color of the 
cow become white, it seems like the texture is gone. The code is as simple as a 
helloworld pragram.

osg::ref_ptr<osgViewer::Viewer> viewer = new osgViewer::Viewer;
osg::ref_ptr<osg::Group> gp = new osg::Group;
osg::ref_ptr<osg::Node> node = osgDB::readNodeFile("cow.osg");
gp->addChild(node);
viewer->setSceneData(gp);
hm->showMenu(0x01, false);
viewer->run();

Although it doesn't matter because my other model works fine, but I'm still 
confused with this problem because it once looked alright. And the cow.osg I 
read from the cmd.exe with osgViewer cow.osg is just like the osg cow.

Has anyone ever had this problem?

Thank you!

Cheers,
Jiechang

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70822#70822




Attachments: 
http://forum.openscenegraph.org//files/qq20170424194458_169.png


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to