[osg-users] Question about multipass rendering of Cookbook simple water example

2013-09-29 Thread michael kapelko
Hi. I'm having the problem understanding the multipass rendering of the simple water effect as seen in here: https://github.com/xarray/osgRecipes/blob/master/cookbook/chapter6/ch06_08/simple_water.cpp The example contains: * scene (airplane); * RTT camera (renders reversed scene to texture); * wate

Re: [osg-users] Picking implementation

2013-09-29 Thread Aurelien Albert
Hi, > but I can't really afford the per-frame cost On modern GPU, the per-frame cost is near zero with reasonable scenes. (not a full 3d scene of 1+ objects like in video games). The heavy cost is paid when you actually download some data from GPU to read back, but you can do that only o

Re: [osg-users] Picking implementation

2013-09-29 Thread Max Bandazian
That would work, but I can't really afford the per-frame cost - I'm trying to only pay for picking when it's actually being used (in which case a pretty high lag is fine). Maybe I should be asking this differently - what's the best way to render one frame of a small portion of my scene graph off sc

[osg-users] Issue With osgDB::writeNodeFile Writing New Material to .osgb

2013-09-29 Thread Patrick Keenan
Hello, I have an osg::ProxyNode model that I change the material on then I try to update the file itself so that next time I run the program the changes persist. If I save it to my_model.osgb then the next time I go to open it osgDB::readNodeFile locks up trying to read the file, however if I s