Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-27 Thread Robert Osfield
HI Nick, If you Camera that is following the main camera requires the same view matrix then could you not simply set the Camera::ReferenceFrame to REALATVE_TF so that it inherits the view and projection matrix from above? Robert. On 25 October 2014 08:35, Trajce Nikolov NICK

Re: [osg-users] GeometryTechnique race condition crash

2014-10-27 Thread Pjotr Svetachov
Thanks for the helgrind tip. I think I pinpointed the crash in our program, this is working from trunk: As said we have multiple files that reference the same image for a texture, I have found two spots that can cause problems: - In InputStream::readImage(bool readFromExternal) at line 777 the

Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-27 Thread Trajce Nikolov NICK
Hi Robert, this is really good idea .. Haven't thought of Thanks again Nick On Mon, Oct 27, 2014 at 11:52 AM, Robert Osfield robert.osfi...@gmail.com wrote: HI Nick, If you Camera that is following the main camera requires the same view matrix then could you not simply set the

Re: [osg-users] GeometryTechnique race condition crash

2014-10-27 Thread Robert Osfield
Hi Pjotr, On 27 October 2014 10:58, Pjotr Svetachov pjotrsvetac...@gmail.com wrote: As said we have multiple files that reference the same image for a texture, I have found two spots that can cause problems: - In InputStream::readImage(bool readFromExternal) at line 777 the program could get

Re: [osg-users] GeometryTechnique race condition crash

2014-10-27 Thread Pjotr Svetachov
Hi Robert, You said that you were working with shaders. A race condition that looks like the Texture2D::setImage example above can also happen with shaders in .osg files: The method Shader_readLocalData can get shaders out of a cache when files are referenced. Then later in Program::addShader

Re: [osg-users] GeometryTechnique race condition crash

2014-10-27 Thread Robert Osfield
HI Pjotr, On 27 October 2014 11:50, Pjotr Svetachov pjotrsvetac...@gmail.com wrote: You said that you were working with shaders. A race condition that looks like the Texture2D::setImage example above can also happen with shaders in .osg files: The method Shader_readLocalData can get shaders

Re: [osg-users] GeometryTechnique race condition crash

2014-10-27 Thread Pjotr Svetachov
robertosfield wrote: In the case when the image is shared it looks to me like the best approach would be to not allow any additional modifications to the image by the InputStream::readImage() method.  Even if you added mutex locks around the write operations to the mutex you'd ended with

Re: [osg-users] [osgOcean] Wake effects?

2014-10-27 Thread Dario Minieri
Hi, I'm bringing back this thread up also after 2 years. Did anyone get any success about the wake effect? I'm working around foam+shoreline without any interesting results at moment Thank you! Cheers, Dario -- Read this topic online here:

Re: [osg-users] Picking geometry

2014-10-27 Thread Martin Ferry
Hi, Robert I repeat the same question because , I have little problem with internet connection, sorry. You have very clever reply, it force me to think different and I find solution. Thank you! Cheers, Martin -- Read this topic online here: