[osg-users] Tonemapping, RTT, PixelDataBufferObject, GPU-CPU copy pixel value

2011-01-28 Thread Dan Warrior
Hi, I have implemented the global tonemapping operator (Reinhard). For this task I use a downsampling pass which downsamples the input texture (with log luminance per pixel) to a 1x1 texture computing the avarage log luminance of the input texture. The next step, I try to do, is to copy the ava

[osg-users] How to copy float array into a texture

2011-02-14 Thread Dan Warrior
Hi, i need random float values in my fragment shader for some post-processing. I create the random values on the cpu and stroe them in a float array. The next step is, I try to do is to create a texture and copy the array with random float values in all channels (RGBA) into the texture. In the