Hello OpenGl fellas , sorry to disturb you , but i have the most wierd problem wih dot3 bump mapping. Here it is :
1-My dot3 bump code wasn´t working properly, it was showing the scenes in grayscale…but bumpmapped(i wasn´t using grayscale images for this )
2-For debugging purpose, i got the Radeon simple bump example,and ran it in my computer,it worked ok
3-I changed my Render code to one similar to the Radeon example(with inverse modelview matrix multiplication instead of the binormal and tangente vectors code, for calculating tangent space) and this weird thing happened: when dot3 is enabled nothing is rendered, i got one blank screen …
so i changed the (N.L) unit texture to the base map , instead of the normal map , and i got the grayscale scene that was happening before.
When i disable the N.L texture unit , the base map appears ok,the light vector also appears correct as in the ATI demo,and the normal map alone also appear correct as in the demo.
When i change the GL_PRIMARY_COLOR_EXT in
glTexEnvf(GL_TEXTURE_ENV, GL_SOURCE1_RGB_EXT, GL_PRIMARY_COLOR_EXT);
for other constants like GL_TEXTURE , the scene appears(not with the correct bump mapping of course,but the blank screen problem fades)
4-In a desperate moment i simply copy and paste the ATI example render code …nothing …same blank screen
so , do you guys have any idea of what may be going on ?
I´m using the TGA files that come with the radeon demo,i also used .bmp version of them
I´m using a GF4 Ti 4600,and all the extensions needed are supported
Thanks in advance, sorry for the giant post
it´s just that i can´t figure what´s happening
Thank you once more
[This message has been edited by Arashikage (edited 05-23-2003).]