off topic - Volume Rendering question

HI, Kal Mar ,mobeen
I need your help, I am doing the work just as your guys did. my code is almost the same as yours. I just couldn’t get the result like your guys show .
I stored the log-scale histogram into a 2D texture and then display that texture.the result is show in the follow picture.

glTexImage2D(GL_TEXTURE_2D, 0 , GL_RGBA8, 256, 221, 0, GL_RGBA, GL_UNSIGNED_BYTE, histogram);

glBegin(GL_QUADS);
glTexCoord2f(1, 1); glVertex2f(0, 0);
glTexCoord2f(0, 1); glVertex2f(1.0, 0);
glTexCoord2f(0, 0); glVertex2f(1.0, 1.0);
glTexCoord2f(1, 0); glVertex2f(0, 1.0);
glEnd();

thinks
Bin

Hi Kalmar,
Just use a larger histogram to accomodate the 16-bit values. and then setup the other params as required.

Check your email.

Thanks, Mobeen.
I got the packet you send me.

Hmm so can u now see the gradient magnitde histogram?

yeah! I wrote my own code already.

Thanks a lot