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

Raymond De Vries reedev at xs4all.nl
Sun Jun 11 01:05:51 PDT 2017


Hi,

I don't think it is an issue of the osg itself. Please search the mailing list/forum for similar questions about this. It has to do with windows display scaling.

Hth, regards
Raymond

> On Jun 11, 2017, at 09:57, sangjingrui <sangjingrui at 163.com> wrote:
> 
> 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;
> }
> 
> 
> <无标题.jpg>
>                                                                                     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.
> <OSG_MFC.png>
>                                                                                        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 到期)
> 下载
> 
> 
>  
> 
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170611/d9888c5a/attachment-0002.htm>


More information about the osg-users mailing list