[osg-users] My cow.osg just become different in a hello world pragram
Jiechang Guo
osgforum at tevs.eu
Mon Apr 24 05:02:44 PDT 2017
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
More information about the osg-users
mailing list