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

sangjingrui sangjingrui at 163.com
Sun Jun 11 19:13:27 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. Some advises said it is the a window scaling issue, but I do not know how to adjust it to normalize the view display!
int main()
osgViewer::Viewer viewer;
osg::ref_ptr<osg::Group> root = new osg::Group();
osg::ref_ptr<osg::Node> cow = osgDB::readNodeFile("cow.osg");



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!


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/20170612/8a52979c/attachment-0003.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/20170612/8a52979c/attachment-0003.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/20170612/8a52979c/attachment-0003.png>

More information about the osg-users mailing list