<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hi,</div><div><br></div><div>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.</div><div><br></div><div>Hth, regards</div><div>Raymond</div><div><br>On Jun 11, 2017, at 09:57, sangjingrui <<a href="mailto:sangjingrui@163.com">sangjingrui@163.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height: 1.7;"><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;">Thank you for your patience of reading this mail.</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;">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.</div><div><div>int main()</div><div>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>osgViewer::Viewer viewer;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>osg::ref_ptr<osg::Group> root = new osg::Group();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>root->addChild(osgDB::readNodeFile("cessna.osg"));</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>osg::ref_ptr<osg::Node> cow = osgDB::readNodeFile("cow.osg");</div><div><br></div><div> root->addChild(cow.get());</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>viewer.setSceneData(root.get());</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>viewer.realize();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>viewer.run();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return 1;</div><div>}</div></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><无标题.jpg></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"> image 1</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;">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.</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><OSG_MFC.png></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"> Image 2</div></div><br>I do not know how to solve this problem. I am looking forward your directions! Thank you again!<br><span title="neteasefooter"><p> </p></span></div><div id="divNeteaseBigAttach" style="clear:both;margin-top:10px;margin-bottom:15px;background:#DEE8F2;padding:4px;font-family:verdana,Arial,Helvetica,sans-serif"><div style="font-size:14px;padding:4px 8px 8px 8px;line-height:16px"><b>从网易163邮箱发来的云附件</b></div><div style="background:#fff;padding:4px"><div style="clear:both;height:36px;padding:6px 4px"><div style="float:left;width:36px"><a href="http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=e65XgrouOQLF6OGC_GQYetuRkoQlWcaFdZ8TcGSKALvITXhL0Wf-ybfFJXgguTC4CkwxLfHGBGPzJuvbn0wlZw&title=Diaplay%20problem%20of%20OSG%203.4.0%20on%20WIN10"><img border="0" src="http://mimg.127.net/xm/all/fj/ico-bfile-7.gif"></a></div><div><div style="padding:0px;font-size:12px;line-height:14px"><a href="http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=e65XgrouOQLF6OGC_GQYetuRkoQlWcaFdZ8TcGSKALvITXhL0Wf-ybfFJXgguTC4CkwxLfHGBGPzJuvbn0wlZw&title=Diaplay%20problem%20of%20OSG%203.4.0%20on%20WIN10" download="http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=e65XgrouOQLF6OGC_GQYetuRkoQlWcaFdZ8TcGSKALvITXhL0Wf-ybfFJXgguTC4CkwxLfHGBGPzJuvbn0wlZw&title=Diaplay%20problem%20of%20OSG%203.4.0%20on%20WIN10" preview="" fileid="undefined" filename="Path_OSG.zip" filesize="76444446" expiretime="1498463586054" target="_blank" style="color:#000;text-decoration:none">Path_OSG.zip</a><span style="color:#bbb"> (72.9M, 2017年6月26日 15:53 到期)</span></div><div style="padding:4px 0px;font-size:12px;line-height:14px"><a href="http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=e65XgrouOQLF6OGC_GQYetuRkoQlWcaFdZ8TcGSKALvITXhL0Wf-ybfFJXgguTC4CkwxLfHGBGPzJuvbn0wlZw&title=Diaplay%20problem%20of%20OSG%203.4.0%20on%20WIN10">下载</a></div></div></div></div></div><br><br><span title="neteasefooter"><p> </p></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>osg-users mailing list</span><br><span><a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a></span><br><span><a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a></span><br></div></blockquote></body></html>