[osg-users] Diaplay problem of OSG 3.4.0 on WIN10
Robert Osfield
robert.osfield at gmail.com
Mon Jun 12 01:13:01 PDT 2017
Hi,
Please don't repost the same content you've already posted, it just clogs
up the forum/mailing list and splits any replies,
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.
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.
Robert.
On 12 June 2017 at 03:13, 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. 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();
> 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邮箱发来的云附件*
>
> <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>
> Path_OSG.zip
> <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>
> (72.9M, 2017年6月26日 15:53 到期)
> 下载
> <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>
>
>
>
>
>
>
>
> _______________________________________________
> 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/20170612/55d2cf2b/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/55d2cf2b/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/55d2cf2b/attachment-0003.png>
More information about the osg-users
mailing list