Hi there!
I want to display a texture, which is calculated based on a vertex value. That means i have one value on each vertex between 0-1.0. Therfore i made the following:
Init:
tripeImage=new float[4*stripeImageWidth];//filled with RGBA values
glGenTextures(1,&texResult);
glBindTexture( GL_TEXTURE_1D, texResult );
glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA, 130, 0, GL_RGBA, GL_UNSIGNED_BYTE,stripeImage);
glEnable(GL_TEXTURE_1D);
In my Draw:
glBindTexture( GL_TEXTURE_1D, texResult );
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(1, GL_FLOAT, 0, result_damage);
But nothing is shown. Whats wrang??
Juergen



