Hello all,
I am not sure if this is the right board, I’m relatively new to OGL but this issue might be slightly more advanced…
I was just looking at Nehe’s Cel Shading tutorial , I understand from the code that the effect is obtained by applying one uni-color texture to the model… I was wondering if there was a way to have the effect work with a Bitmap texture?.. I understand that the relevant code is:
// Cel-Shading Code
glEnable (GL_TEXTURE_1D); // Enable 1D Texturing
glBindTexture (GL_TEXTURE_1D, shaderTexture[0]); // Bind Our Texture
glColor3f (1.0f, 1.0f, 1.0f);
....
After having processed the shader.txt file… Is there a way to run that on a normal bitmap texture? My model loader starts its drawing code with these lines
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, textureId);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
...
And then goes on do draw the vertices…
Thank you very much!