Hi,

In effect, I see the env_color computation in the fragment shader. I'm able to 
multiply this one by a tiny constant < 1 (like 0.2) to obtain the result 
desired, but the problem is that the total final tone change drastically. 

I don't know if I've made right operation, but I'm trying to re-calibrate the 
total tone using wave and bottom top color and come another problem: changing 
those values at runtime I receive a double corruption from FFTOceanSurface like 
this:


Code:
*** glibc detected *** bin/Demo: double free or corruption (!prev): 
0x0000000006fab330 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f0ac5ab8b96]
/usr/local/lib/libosgOcean.so(_ZNSt12_Destroy_auxILb0EE9__destroyIPSt6vectorIN8osgOcean9OceanTileESaIS4_EEEEvT_S8_+0x52)[0x7f0ac126d602]
/usr/local/lib/libosgOcean.so(_ZN8osgOcean15FFTOceanSurface10computeSeaEj+0x142)[0x7f0ac126b782]
/usr/local/lib/libosgOcean.so(_ZN8osgOcean15FFTOceanSurface5buildEv+0x40)[0x7f0ac126c970]
/usr/local/lib/libosgOcean.so(_ZN8osgOcean15FFTOceanSurface18getSurfaceHeightAtEffPN3osg5Vec3fE+0x145)[0x7f0ac12676d5]




Parameters for wave and top color are thought to runtime change? I need to 
perform some operation to achieve the runtime modification?

Best

Thank you!

Cheers,
Dario

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56573#56573





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to