Re: [osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user code to remain disabled

2014-01-08 Thread webmaster
Hi Robert, Yeah,you are right! cheers zhuwan 01,09,2014 在2014-1-9 4:11:25,"Robert Osfield" 写道: -原始邮件- 发件人: "Robert Osfield" 发送时间: 2014-1-9 4:11:25 收件人: "OpenSceneGraph Users" 主题: Re: [osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user c

Re: [osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user code to remain disabled

2014-01-08 Thread Judson Weissert
Hi Robert, On 1/8/2014 3:11 PM, Robert Osfield wrote: Hi Judson, The push/pop approach has to be protected by platform specifics and has to be splurged all over the code, and it can't be tested by everyone so it will invariable lead to build breakages as things don't get added/or removed. I

Re: [osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user code to remain disabled

2014-01-08 Thread Robert Osfield
Hi Judson, The push/pop approach has to be protected by platform specifics and has to be splurged all over the code, and it can't be tested by everyone so it will invariable lead to build breakages as things don't get added/or removed. I firmly believe it's a *TERRIBLE* solution so will not be al

Re: [osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user code to remain disabled

2014-01-08 Thread Judson Weissert
Hi Robert, Thank you for your reply, I appreciate the amount of time you dedicate to the mailing list, and the OSG project in general. On 1/8/2014 12:19 PM, Robert Osfield wrote: Hi Judson, Over the years we've found VS products lots of unhelpful warnings are perfectly correct code so we've

Re: [osg-users] Minimap

2014-01-08 Thread Jason Beverage
There is a minimap example in osgEarth: https://github.com/gwaldron/osgearth/blob/master/src/applications/osgearth_minimap/osgearth_minimap.cpp Might not be exactly what you're looking for if you're not using osgEarth but it's a good starting point for setting up your CompositeViewer and seeing ho

Re: [osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user code to remain disabled

2014-01-08 Thread Robert Osfield
Hi Judson, Over the years we've found VS products lots of unhelpful warnings are perfectly correct code so we've had to resort to disabling them. Adding lots special VS only pragmas to OSG code would be VERY painful to maintain so we don't do it. If you want to do it in your own code then fine,

[osg-users] Compiling in MSVC with OSG_DISABLE_MSVC_WARNINGS defined causes warnings in user code to remain disabled

2014-01-08 Thread Judson Weissert
Hi, I recently noticed that some of the source files in my project were compiling, but were not generating some expected warnings. I believe I have tracked the problem back to a number of OSG headers that are disabling warnings, but never set them back to their original setting. The headers

Re: [osg-users] Rendering performance

2014-01-08 Thread Robert Osfield
Hi Ale, I don't know what might be wrong, but specs of your computer should be higher enough to tackle these scenes without problems. I don't use Windows so don't have any specific expertise on the platform. The only things I can suggest right now is have a look to see whether OpenGL hardware dri

[osg-users] Minimap

2014-01-08 Thread Filip Arlet
Hi, I want to display minimap in my scene, top view of scene, centered on my position and rotation where my main view is heading. What is the best aproach here (including, if first persona manipulator moves in main view, it will be reflected on minimap). Thank you! Cheers, Filip

Re: [osg-users] Rendering performance

2014-01-08 Thread Ale Maro
Hi Robert, I have the same problem on a PC Windows 7, i7 processor and an NVidia Quadro card and on a PC with Windows 8.1, i3 processor and entry level AMD card. I tried both in debug and in release (in release framerate is only a little better with simple scenes) I also tried different threadin

Re: [osg-users] Problem replacing shader built-ins (gl_EyePlane)

2014-01-08 Thread Garrett Cope
Hi Robert, Thanks for the reply. So the proper construction of the set of gl_EyePlaneX planes would be: InvMVL * ProjL * osg::Matrix::translate(1.0,1.0,1.0) * osg::Matrix::scale(0.5,0.5,0.5) with InvMVL == Inverse ModelView matrix for shadow camera and ProjL == Projection matrix for shadow ca

Re: [osg-users] Rendering performance

2014-01-08 Thread Robert Osfield
Hi Ale, With the provided details it's not possible to pinpoint what might be wrong with your setup, but for sure I the performance figures look very poor for such a simple scene. You don't specify what OS, what hardware and whether you are using a debug or release build. You should do all bench

[osg-users] Rendering performance

2014-01-08 Thread Ale Maro
Hi, in my application I recently noticed a performance slowdown. During my tests I always have 60FPS even for complex scenes. After recent changes I notices that even with empty or very simple scenes frame rate go up and down mostly from 40FPS to 50FPS When I enable default on-screen diagnostics

Re: [osg-users] osgviewerQt strange effect on mac os x Qt5.2

2014-01-08 Thread Roni Zanolli
Hi, I was able to get everything working fine for the retina display. The last problem I had was related to the pick and I had to make sure all mouse events are multiplied devicePixelRatio() and also the gw->getEventQueue()->windowResize function. Some of the other reported bugs the problem w