<div dir="ltr"><div><div>Hi,<br><br></div>Please don't repost the same content you've already posted, it just clogs up the forum/mailing list and splits any replies,<br><br></div><div>Also can you please sign with the name you'd like to be addressed as so we know how to address you, this is both a social help (we're all human being just trying to helo each other out, not bots) and also makes it easier for others to follow.  Small things like this really help oil the cogs of the community.<br><br></div><div>As for the technical issues, I'm not going to reply on this thread, as I have no wish to break up the original thread.<br></div><div><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 June 2017 at 03:13, sangjingrui <span dir="ltr"><<a href="mailto:sangjingrui@163.com" target="_blank">sangjingrui@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><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. Some advises said it is the a window scaling issue, but I do not know how to adjust it to normalize the view display!</div><div><div>int main()</div><div>{</div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap">     </span>osgViewer::Viewer viewer;</div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap"> </span>osg::ref_ptr<osg::Group> root = new osg::Group();</div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap">   </span>root->addChild(osgDB::<wbr>readNodeFile("cessna.osg"));</div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap">        </span>osg::ref_ptr<osg::Node> cow = osgDB::readNodeFile("cow.osg")<wbr>;</div><div><br></div><div>        root->addChild(cow.get());</div><div><br></div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap">        </span>viewer.setSceneData(root.get()<wbr>);</div><div><br></div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap">      </span>viewer.realize();</div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap"> </span>viewer.run();</div><div><span class="m_-2348403472982386876Apple-tab-span" style="white-space:pre-wrap">     </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"><img src="cid:774d8d1d$1$15c9a13cd28$Coremail$sangjingrui$163.com" style="width:979px;height:550px"></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"><img src="cid:1ded339d$2$15c9a13cd28$Coremail$sangjingrui$163.com" style="width:979px;height:550px;border:none"></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="m_-2348403472982386876divNeteaseBigAttach" 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" target="_blank"><img src="http://mimg.127.net/xm/all/fj/ico-bfile-7.gif" border="0"></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" style="color:#000;text-decoration:none" target="_blank">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" target="_blank">下载</a></div></div></div></div></div><br><br><span title="neteasefooter"><p> </p></span></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br></div>