White object with Lighted Material

Everything is in the title… On some computer my objects are not rendered correctly with the lighting.j3md (and accesory with my test toon shader).

Is this a problem of graphic card or my program ?



this my result on :


  • Windows XP 32 bit + Quadro Fx 3000 = Okay
  • Windows Seven 32bit + Geforce 8800 GTX = Okay
  • Windows XP 32bit + Geforce 8900 Gtx = Okay


  • MacOsX Leopard + Geforce 9400M = Not Okay
  • Windows Seven Family + Mobility Radeon HD 5470 = Not Okay
  • Windows Seven 32bit + Radeon HD 4870 X2 = Not Okay



    Tell me it’s a noob code problem please…

    Thanks in advance

Check the log, maybe there are errors with the shader compilation?

I’ve noticed you also end up with white objects if you set Shininess to 0 or less, no matter if i define a SpecularMap or color or none. Is this the intention?

rickard said:
I've noticed you also end up with white objects if you set Shininess to 0 or less, no matter if i define a SpecularMap or color or none. Is this the intention?


If you're setting the m_Specular parameter, then it is assumed you will also set the m_Shininess parameter.