Re: [osg-users] Bug in Viewer::setReferenceTime
Hi Benjamin, Well spotted, can't believe how long that bug will have been lurking without being picked up. I've applied your suggested fix to CompositeViewer and Viewer in OSG-svn/trunk and the OSG-3.2 branch. Cheers, Robert. On 6 June 2015 at 21:44, Benjamin Richter b...@waldteufel.eu wrote: Hi everybody. I was having some trouble with Viewer::setReferenceTime today and while debugging found the issue in the following line [1] double delta_ticks = (time-currentTime)*(osg::Timer::instance()-getSecondsPerTick()); As currentTime and time are given in seconds (see link below for context) but the result should be in ticks, dividing by getSecondsPerTick would be correct. (Apart from that: Thank you for this great library :D) Regards Benjamin [1] https://github.com/openscenegraph/osg/blob/3c55e5bc765aff03ed0850ef9b9b62dc6aabe6a8/src/osgViewer/Viewer.cpp#L446 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Bug in Viewer::setReferenceTime
Hi everybody. I was having some trouble with Viewer::setReferenceTime today and while debugging found the issue in the following line [1] double delta_ticks = (time-currentTime)*(osg::Timer::instance()-getSecondsPerTick()); As currentTime and time are given in seconds (see link below for context) but the result should be in ticks, dividing by getSecondsPerTick would be correct. (Apart from that: Thank you for this great library :D) Regards Benjamin [1] https://github.com/openscenegraph/osg/blob/3c55e5bc765aff03ed0850ef9b9b62dc6aabe6a8/src/osgViewer/Viewer.cpp#L446 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] bug in Viewer::setUpViewerAsEmbeddedInWindow?
Hi, While using the Viewer::setUpViewerAsEmbeddedInWindow() I saw a possible problem with it. If you setup your viewer that way, all GUI events seem to bring incorrect information about the window size. This is because that method does not call GUIEventAdapter::setWindowRectangle() while the other setup methods do call it. So for example a call to ea.getWindowHeight() will always return the default 1024 value, no matter what your window size actually is. Is that a bug or is that the way it is supposed to work? Cheers, Luca -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42446#42446 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Hi Robert, Hi Tugkan, I've just tried the same thing on my system and it worked fine. What window manager are you using? I use KDE 3.5.7 on Suse10.3. I tested with Gnome (buggy) and FVWM (seems ok). I also made a test with a different computer with Suse10.3 and the same KDE version. There it works. An important difference is that my machine (where the bug is observed) has a dual monitor configuration. A couple of things you could try: Enable vsync Didn't help. Disable any 3D desktop effects if they are on They are off. Tugkan. Robert. On Tue, Nov 25, 2008 at 8:02 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: Hi all, I observe a problem in my own application and also on osgviewer. There are two images that show the problem attached to the email. I use following command: osgviewer --window 0 0 1280 1024 cow.osg After 3D window appears I press S to tun on statistics. The result is shot1.jpg. You can see that frame rate and threading model is not visible. After I minimize and maximize the window shot2.jpg appears. Sometimes osgviewer starts correctly but most of the time not. Here are details regarding the test environment: Suse 10.3 OpenGL renderer string: GeForce 7900 GTX/PCI/SSE2 OpenGL version string: 2.1.2 NVIDIA 173.13 OSG version : latest SVN version Regards, Tugkan Calapoglu, VIRES Simulationstechnologie GmbH ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Tugkan Calapoglu - VIRES Simulationstechnologie GmbH Oberaustrasse 34 83026 Rosenheim Germany phone+49.8031.463641 fax +49.8031.463645 email[EMAIL PROTECTED] internet www.vires.com - Sitz der Gesellschaft: Rosenheim Handelsregister Traunstein HRB 10410 Geschaeftsfuehrer: Marius Dupuis Wunibald Karl - ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Hi Robert, This is not a Gnome only problem. KDE and Gnome both have it. Only FVWM worked. (I didn't try with any other WM). It seems to be about the dual monitor configuration because a single monitor computer (same OS and KDE) does not have the problem. Tugkan Hi Tugkan, On Wed, Nov 26, 2008 at 10:14 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: I use KDE 3.5.7 on Suse10.3. I tested with Gnome (buggy) and FVWM (seems ok). I also made a test with a different computer with Suse10.3 and the same KDE version. There it works. An important difference is that my machine (where the bug is observed) has a dual monitor configuration. My guess is that the Gnome isn't sending the same X11 window events to osgViewer::GraphicsWindowX11 so it isn't reposition things. Or it could be just a bug in Gnome. I'm not a Gnome user, nor an Gnome/X11 expert so I'll have to defer to others which more knowledge/experience in this area to what might be going amiss. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Tugkan Calapoglu - VIRES Simulationstechnologie GmbH Oberaustrasse 34 83026 Rosenheim Germany phone+49.8031.463641 fax +49.8031.463645 email[EMAIL PROTECTED] internet www.vires.com - Sitz der Gesellschaft: Rosenheim Handelsregister Traunstein HRB 10410 Geschaeftsfuehrer: Marius Dupuis Wunibald Karl - ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Hi, what happens when you make it fullscreen and then windowed again? jp Tugkan Calapoglu wrote: Hi Robert, This is not a Gnome only problem. KDE and Gnome both have it. Only FVWM worked. (I didn't try with any other WM). It seems to be about the dual monitor configuration because a single monitor computer (same OS and KDE) does not have the problem. Tugkan Hi Tugkan, On Wed, Nov 26, 2008 at 10:14 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: I use KDE 3.5.7 on Suse10.3. I tested with Gnome (buggy) and FVWM (seems ok). I also made a test with a different computer with Suse10.3 and the same KDE version. There it works. An important difference is that my machine (where the bug is observed) has a dual monitor configuration. My guess is that the Gnome isn't sending the same X11 window events to osgViewer::GraphicsWindowX11 so it isn't reposition things. Or it could be just a bug in Gnome. I'm not a Gnome user, nor an Gnome/X11 expert so I'll have to defer to others which more knowledge/experience in this area to what might be going amiss. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Then everything looks ok. Actually, any type of interaction with the window (for example moving it) seems to solve the problem. Hi, what happens when you make it fullscreen and then windowed again? jp Tugkan Calapoglu wrote: Hi Robert, This is not a Gnome only problem. KDE and Gnome both have it. Only FVWM worked. (I didn't try with any other WM). It seems to be about the dual monitor configuration because a single monitor computer (same OS and KDE) does not have the problem. Tugkan Hi Tugkan, On Wed, Nov 26, 2008 at 10:14 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: I use KDE 3.5.7 on Suse10.3. I tested with Gnome (buggy) and FVWM (seems ok). I also made a test with a different computer with Suse10.3 and the same KDE version. There it works. An important difference is that my machine (where the bug is observed) has a dual monitor configuration. My guess is that the Gnome isn't sending the same X11 window events to osgViewer::GraphicsWindowX11 so it isn't reposition things. Or it could be just a bug in Gnome. I'm not a Gnome user, nor an Gnome/X11 expert so I'll have to defer to others which more knowledge/experience in this area to what might be going amiss. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Tugkan Calapoglu - VIRES Simulationstechnologie GmbH Oberaustrasse 34 83026 Rosenheim Germany phone+49.8031.463641 fax +49.8031.463645 email[EMAIL PROTECTED] internet www.vires.com - Sitz der Gesellschaft: Rosenheim Handelsregister Traunstein HRB 10410 Geschaeftsfuehrer: Marius Dupuis Wunibald Karl - ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Robert Osfield wrote: Hi Tugkan, On Wed, Nov 26, 2008 at 11:05 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: This is not a Gnome only problem. KDE and Gnome both have it. Only FVWM worked. (I didn't try with any other WM). Um.. just re-read your post and it kinda looked like Gnome had the buggy label attached to it. Could you try to be more precise as it's easy to get the wrong end of the stick. Hmm, as I remember I mentioned that I use KDE and also tested on Gnome and FVWM. Here is a list: Computer OS WM Monitors Result ASuse 10.3 KDE2buggy ASuse 10.3 Gnome 2buggy ASuse 10.3 FVWM 2buggy BSuse 10.3 KDE1OK Note: The difference between computer A and B is not only monitor configuration. It seems to be about the dual monitor configuration because a single monitor computer (same OS and KDE) does not have the problem. I've been using dual monitor set ups with KDE without problems so I don't believe this is specific to dual monitor. My guess it's a window manager/GraphicsWindowX11 issue of some kind. As I wrote above the monitor configuration is not the only difference between the test computers so I can't claim that should be the problem. It only seemed to be a useful hint because window initialization code might follow different paths for these configurations. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Tugkan Calapoglu - VIRES Simulationstechnologie GmbH Oberaustrasse 34 83026 Rosenheim Germany phone+49.8031.463641 fax +49.8031.463645 email[EMAIL PROTECTED] internet www.vires.com - Sitz der Gesellschaft: Rosenheim Handelsregister Traunstein HRB 10410 Geschaeftsfuehrer: Marius Dupuis Wunibald Karl - ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Hi Tugkan, On Wed, Nov 26, 2008 at 10:14 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: I use KDE 3.5.7 on Suse10.3. I tested with Gnome (buggy) and FVWM (seems ok). I also made a test with a different computer with Suse10.3 and the same KDE version. There it works. An important difference is that my machine (where the bug is observed) has a dual monitor configuration. My guess is that the Gnome isn't sending the same X11 window events to osgViewer::GraphicsWindowX11 so it isn't reposition things. Or it could be just a bug in Gnome. I'm not a Gnome user, nor an Gnome/X11 expert so I'll have to defer to others which more knowledge/experience in this area to what might be going amiss. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Hi Tugkan, On Wed, Nov 26, 2008 at 11:05 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: This is not a Gnome only problem. KDE and Gnome both have it. Only FVWM worked. (I didn't try with any other WM). Um.. just re-read your post and it kinda looked like Gnome had the buggy label attached to it. Could you try to be more precise as it's easy to get the wrong end of the stick. It seems to be about the dual monitor configuration because a single monitor computer (same OS and KDE) does not have the problem. I've been using dual monitor set ups with KDE without problems so I don't believe this is specific to dual monitor. My guess it's a window manager/GraphicsWindowX11 issue of some kind. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Bug in viewer
Hi Tugkan, I've just tried the same thing on my system and it worked fine. What window manager are you using? A couple of things you could try: Enable vsync Disable any 3D desktop effects if they are on Robert. On Tue, Nov 25, 2008 at 8:02 AM, Tugkan Calapoglu [EMAIL PROTECTED] wrote: Hi all, I observe a problem in my own application and also on osgviewer. There are two images that show the problem attached to the email. I use following command: osgviewer --window 0 0 1280 1024 cow.osg After 3D window appears I press S to tun on statistics. The result is shot1.jpg. You can see that frame rate and threading model is not visible. After I minimize and maximize the window shot2.jpg appears. Sometimes osgviewer starts correctly but most of the time not. Here are details regarding the test environment: Suse 10.3 OpenGL renderer string: GeForce 7900 GTX/PCI/SSE2 OpenGL version string: 2.1.2 NVIDIA 173.13 OSG version : latest SVN version Regards, Tugkan Calapoglu, VIRES Simulationstechnologie GmbH ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org