Re: [osg-users] When is the DatabasePager created and destroyed?
Hi Chris, On 13 September 2013 00:09, Chris Stankevitz chrisstankev...@gmail.comwrote: Thank you. I implemented this and it is rock solid. I had to do some head scratching as all my viewers might be running at different resolutions but I solved this by 1) making the pbuffer large enough and 2) changing the camera viewports as needed. Great to hear it worked out well, and the multi-resolution trick you took is exactly what I would have recommended. The only other thing you might be able to add to the mix is that I believe NVidia and/or ATI now have API's for controlling encoding down on the GPU so you might be able to offload the work of compressing the video stream down to the GPU too. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] When is the DatabasePager created and destroyed?
I've only just got round to reading this, but for the sake of clarification, I think I know what your problem was. OSG will run perfectly happily at the start with a CompositeViewer but no views. But after some are created, as soon as they are all destroyed, the CompositeViewer decides that it's finished with and enters a kind of 'living death' state, where it won't try to render anything anymore - in code terms ViewerBase::_done is set. The only thing you can do at this point is destroy the CompositeViewer and make a new one when you want a new scene. Our application has multiple types of view windows, not all using OpenSceneGraph, so that is a problem we have had to face. I'd really rather not have to do this, so it would be nice if CompositeViewer was changed, even optionally, to be allowed to exist with no views in it. Perhaps is a view is added to a compositeViewer that is _done, the value could be set back to false? Alistair Baxter Software Engineer Our September newsletter is now available to view online: http://www.mve.com/news Midland Valley Exploration Ltd. 144 West George Street Glasgow G2 2HG United Kingdom Tel: +44 (0) 141 332 2681 Fax:+44 (0) 141 332 6792 The structural geology experts ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] When is the DatabasePager created and destroyed?
Hi Aliastair. Interesting problem, not one I had thought of before. The idea of setting done to true when all the views are closed is just a mechanism to ensure exit from the frame loop. When adding views back in it certainly should be possible to get the frame loop restarted so _done should be reset to false. In your own app just having your own frame loop that doesn't check viewer.done() would also resolve the issue and won't require any modifications to the core OSG. I will look at the the core OSG to make sure it resets _done to false, it might not be possible to get this fix into OSG-3.2 branch though as it might require API changes. Robert. On 13 September 2013 12:01, Alistair Baxter alist...@mve.com wrote: I've only just got round to reading this, but for the sake of clarification, I think I know what your problem was. OSG will run perfectly happily at the start with a CompositeViewer but no views. But after some are created, as soon as they are all destroyed, the CompositeViewer decides that it's finished with and enters a kind of 'living death' state, where it won't try to render anything anymore - in code terms ViewerBase::_done is set. The only thing you can do at this point is destroy the CompositeViewer and make a new one when you want a new scene. Our application has multiple types of view windows, not all using OpenSceneGraph, so that is a problem we have had to face. I'd really rather not have to do this, so it would be nice if CompositeViewer was changed, even optionally, to be allowed to exist with no views in it. Perhaps is a view is added to a compositeViewer that is _done, the value could be set back to false? Alistair Baxter Software Engineer Our September newsletter is now available to view online: http://www.mve.com/news Midland Valley Exploration Ltd. 144 West George Street Glasgow G2 2HG United Kingdom Tel: +44 (0) 141 332 2681 Fax:+44 (0) 141 332 6792 The structural geology experts ___ 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
Re: [osg-users] There's no water when osgRiver running, please help me?
Hi, I have just tested osgRiver, the water is on the right corner of the river.3DS but only 1 segment is displayed( (-15 to 0). I had tried to change the code of osgRiver in RiverGraph::MergeRiverFromPoints(vectorRiverControlPoint points) at : RiverControlPoint next2 = curvePoint (changed to :(points[i-1] * 0.4 + points[i] * 0.6)) ; and now I have 3 segments from 9 that are displayed, I don't know what is the probleme exactly but I will do some search to find the probleme. if you have any suggestion I hope that you share it with us. Thank you! Cheers, Mohammed -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56349#56349 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org