[osg-users] Diaplay problem of OSG 3.4.0 on WIN10

sangjingrui sangjingrui at 163.com
Sun Jun 11 00:57:01 PDT 2017


Thank you for your patience of reading this mail.
I am a beginner on OSG. I compiled and installed the latest OSG3.4.0 on my computer (Interl core i5,  Nvidia geforce GTX 850M, win10). But I met some strange problems. Image 1 shows a aircraft and a cow rendered by OSG. I just loaded the two nodes with a osg::Group object (see the code listed below). But the viewer did not situated them to the center of viewport.  I think this is a system compatible problem because the situation is  the same when I run the osgviewer.exe of OSG.
int main()
{
osgViewer::Viewer viewer;
osg::ref_ptr<osg::Group> root = new osg::Group();
root->addChild(osgDB::readNodeFile("cessna.osg"));
osg::ref_ptr<osg::Node> cow = osgDB::readNodeFile("cow.osg");


        root->addChild(cow.get());


viewer.setSceneData(root.get());


viewer.realize();
viewer.run();
return 1;
}




                                                                                    image 1


image 2 is an example from Freesouth. It shows how to combine the OSG with MFC (I packed the source code in attachment).  When I run it I found that the View was “broken” and the edge of view was dithering.
                                                                                       Image 2

I do not know how to solve this problem. I am looking forward your directions! Thank you again!


 

从网易163邮箱发来的云附件
Path_OSG.zip (72.9M, 2017年6月26日 15:53 到期)
下载
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170611/cd2b93d0/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ???.jpg
Type: image/jpeg
Size: 57246 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170611/cd2b93d0/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OSG_MFC.png
Type: image/png
Size: 140483 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170611/cd2b93d0/attachment-0002.png>


More information about the osg-users mailing list