Re: [osg-users] Height of the terrain on a given lang/long
Thanks for your help, It is working but performance is too bad. Terrain elevation completed in 20 ms. I will use this calculation five or six times in every simulation loop. Do you have any suggestions? Regards. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53697#53697 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to build OpenSceneGraph for Android in Windows
Hi Nick, is there any problem working with ndk r8b? It seems that Android example has been done using r8b version. Thank you very much, Francesco Trajce Nikolov NICK wrote: Hi Francesco, this top was discussed heavely last week (look for osgAndroidExample in the archive). Here is a fix for that error - you have to edit a file http://stackoverflow.com/questions/10285242/openssl-using-androids-ndk-problems/10295653#10295653 (http://stackoverflow.com/questions/10285242/openssl-using-androids-ndk-problems/10295653#10295653) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53698#53698 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to build OpenSceneGraph for Android in Windows
Hi Francesco, no idea. Others have to answer this one. I was adviced to use r8d. After that small fix it should work ok Nick On Fri, Apr 19, 2013 at 9:10 AM, Francesco Argese kekk...@gmail.com wrote: Hi Nick, is there any problem working with ndk r8b? It seems that Android example has been done using r8b version. Thank you very much, Francesco Trajce Nikolov NICK wrote: Hi Francesco, this top was discussed heavely last week (look for osgAndroidExample in the archive). Here is a fix for that error - you have to edit a file http://stackoverflow.com/questions/10285242/openssl-using-androids-ndk-problems/10295653#10295653( http://stackoverflow.com/questions/10285242/openssl-using-androids-ndk-problems/10295653#10295653 ) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53698#53698 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgQt rendering issues with NVIDIA 304.88 drivers and Ubuntu 12.04 (kernel 3.2.0-40-generic)
Dear list, after the most recent update of our NVIDIA drivers (going from 295.40 to 304.88) under Ubuntu 12.04 (with kernel 3.2.0-40-generic), we experience rendering issues with osgQt bindings: After some time passes, the osgViewer widgets simply *stops* redrawing/refreshing the content. We can reproduce this problem with the osgviewerQt example application shipped with OpenSceneGraph 3.0.1 (the default version installed from the Ubuntu sources), as well as with a custom-built compiled version of OpenSceneGraph 3.0.1 (compile from the most current sources). We already tried debugging the issue using the techniques described in the OSG wiki [1]. Even with OSG_NOTIFY_LEVEL=DEBUG, no detailed error message is shown. Did anyone on the list experience similar issues? What can we do to debug this problem further? Kind regards, Bastian [1]: http://www.openscenegraph.org/projects/osg/wiki/Support/TipsAndTricks ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgQt rendering issues with NVIDIA 304.88 drivers and Ubuntu 12.04 (kernel 3.2.0-40-generic)
Bastian Rieck writes: Dear list, after the most recent update of our NVIDIA drivers (going from 295.40 to 304.88) under Ubuntu 12.04 (with kernel 3.2.0-40-generic), we experience rendering issues with osgQt bindings: After some time passes, the osgViewer widgets simply *stops* redrawing/refreshing the content. [...] Did anyone on the list experience similar issues? What can we do to debug this problem further? Hello, Maybe using https://github.com/apitrace/apitrace to debug what opengl commands are being issued to the driver until it stops... -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgQt rendering issues with NVIDIA 304.88 drivers and Ubuntu 12.04 (kernel 3.2.0-40-generic)
Hi Alberto, Maybe using https://github.com/apitrace/apitrace to debug what opengl commands are being issued to the driver until it stops... Thanks for the suggestion. I have not used this tool previously, but these are the last calls that are issued in osgviewerQt before everything ceases to work: 1098785 glXGetVideoSyncSGI(count = 0x7f66bce62ccc) = 0 1098786 glXWaitVideoSyncSGI(divisor = 2, remainder = 0, count = 0x7f66abffeccc) = 0 1098788 glXWaitVideoSyncSGI(divisor = 2, remainder = 0, count = 0x7f66bde64ccc) = 0 1098789 glXWaitVideoSyncSGI(divisor = 2, remainder = 0, count = 0x7f66bce62ccc) = 0 1098787 glXWaitVideoSyncSGI(divisor = 2, remainder = 0, count = 0x7f66be665ccc) = 0 1098793 glXSwapBuffers(dpy = 0xed30a0, drawable = 58720303) 1098791 glXSwapBuffers(dpy = 0xed30a0, drawable = 58720305) 1098792 glXSwapBuffers(dpy = 0xed30a0, drawable = 58720309) 1098790 glXSwapBuffers(dpy = 0xed30a0, drawable = 58720293) 1098780 glXWaitVideoSyncSGI(divisor = 2, remainder = 0, count = 0x7f66bd663ccc) // incomplete This looks fine by me, except for the incomplete call at the very end. This is probably caused by me, as I killed the program forcefully after waiting for some time. I have the full trace available if anybody is interested. Kind regards, Bastian ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to build OpenSceneGraph for Android in Windows
On Fri, Apr 19, 2013 at 9:10 AM, Francesco Argese kekk...@gmail.com wrote: Hi Nick, is there any problem working with ndk r8b? It seems that Android example has been done using r8b version. I am using the r8d version with no major problems. The r8e (the latest) has some issues, though. Regards, Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Height of the terrain on a given lang/long
Hi Shayne, Now, my code runs faster. But I have another problem :(. I am calling terrain elevation computation in my simulation loop and Osg loop will not used in my application. I understand that Osg does not read whole terrain tiles/pages when I call osgDB::readNodeFile, And the the results is not real values when I use intersection computation. How can I read whole terrain tiles/pages at first time? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53704#53704 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgQt rendering issues with NVIDIA 304.88 drivers and Ubuntu 12.04 (kernel 3.2.0-40-generic)
Dear list, I found a potential workaround for this problem. Some people [1,2] say that this can be solved by disabling the VSync in the NVIDIA driver. I did just that by setting export __GL_SYNC_TO_VBLANK = 0 in my .bashrc. Now everything seems to work like a charm again. Can anyone confirm this behaviour? This seems to point to a bug in the NVIDIA driver... Kind regards, Bastian [1] = https://groups.google.com/forum/#!msg/pyglet-users/HZybWjgw3TE/vUfy5WmM3t0J [2] = https://www.opengl.org/discussion_boards/showthread.php/176560-glXWaitVideoSyncSGI-hangs-in-Nvidia-290-10-Linux ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Height of the terrain on a given lang/long
On the performance issue, you need to leverage the database cache feature for LOS and HAT. Take a look at the osgintersection example to see how this is done for los and hat. Using the computeHeightAboveTerrain method is sort of an immediate mode for HAT queries which isn't the best for performance when you have a bunch of them to do per frame. I'm not sure I understand your last issue. The readNodeFile() reads the paged terrain database (*.ive) file and the database pager pages in whatever LOD is needed without any work on your part. When you query HAT, the highest LOD is paged in to get the correct value, again without any extra work on your part. Shayne -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53706#53706 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org