Black Bumpmaps

Hello its my first time posting in these forums and I had an interesting dilemma....Tonight I finally figured out how to implement bumpmaps but for some reason just as soon as I add them in all my textures go black except for spectural light....I am using glMaterial to colorise and have blending disabled but unfortunately this also disables my ability to properly colorise the base texture....

Here is a simple rundown of what I do to enable my bumpmaps and draw...

It bumps just great and draws the texture underneath but I have to totally disable glMaterial with : glEnable(GL_COLOR_MATERIAL); and use the conventional calls with glColor4f etc... And then I only get a small patch of light on my quad like a large specular reflection....Is it something to do with my combiners? Do I have to add in some extra combiners to get it to be properly lit? All I know is everything went to black when I added bumpmaps...I take them out and everything looks fine...

I am the one who ported the above mentioned example code. I am really a newbee at glTexEnvf calls and I just made a port. I don't really understand the OpenGL calls. I do understand the theory however. I may think that your rendering with bump mapping may actually be correct. My example has no ambient light and no specular light. For a sphere as used in your example this would indeed mean that the non lit parts will be black. I however see no extra bumpiness on your example so I might wonder if anything at all happens.

Also my example explicitly tells the light position in the rendering pass (by using a (normalising) cube map texture). I see nothing of that kind in your code. I assume therefor that you are using another technique. If you get it to work with your technique could you post the source code and maybe reference to the theory behind your technique?