#144336 - Noda - Wed Oct 31, 2007 7:22 pm
Hello, I have (again) another strange problem with lights: on the DS I'm having the effect of a disco light (going in all direction with shutting on/off all the time, like if the light was moving), but I don't get why??
I'm using 1 static light:
I'm using 3D on both screens, and apply the light to my 2 objects with the attributes:
and I set up the material before each object:
Is there something wrong with that? Does anyone had this problem?
Thanks.
Last edited by Noda on Tue Nov 06, 2007 5:39 pm; edited 1 time in total
I'm using 1 static light:
Code: |
glLight(0, RGB15(31, 31, 31) , 0, 0, floattov10(-1)); |
I'm using 3D on both screens, and apply the light to my 2 objects with the attributes:
Code: |
glPolyFmt(POLY_ID(1) | POLY_ALPHA(31) | POLY_CULL_BACK | POLY_FORMAT_LIGHT0); |
and I set up the material before each object:
Code: |
glMaterialf(GL_AMBIENT, RGB15(0, 0, 0)); glMaterialf(GL_DIFFUSE, RGB15(16, 16, 16)); glMaterialf(GL_SPECULAR, BIT(15) | RGB15(31,31,31)); glMaterialf(GL_EMISSION, RGB15(0, 0, 0)); |
Is there something wrong with that? Does anyone had this problem?
Thanks.
Last edited by Noda on Tue Nov 06, 2007 5:39 pm; edited 1 time in total