Hi,
I’m trying to simulate sunshine in an outdoor environment. I’ve tried searching these forums, but typing ‘sun’ and ‘light’ into the search you can imagine the number of hits I get back!
Anyway, here are the values I’m using
//Lights settings
float[] light_ambient = new float[] { 0.1f, 0.1f, 0.1f, 0.1f };
float[] light_diffuse = new float[] { 1.0f, 1.0f, 1.0f, 0.0f };
float[] light_specular = new float[] { 1.0f, 1.0f, 1.0f, 0.0f };
float[] light_position = new float[] { X_POS, Y_POS, Z_POS, 1.0f };
//Materials settings
float[] mat_ambient = new float[] { 0.2f, 0.2f, 0.2f, 0.0f };
float[] mat_diffuse = new float[] { 0.2f, 0.2f, 0.2f, 0.0f };
float[] mat_specular = new float[] { 1.0f, 1.0f, 1.0f, 0.0f };
float[] mat_shininess = new float[] { 1.0f };
but my scene is still very dark, the models are almost completely back. Does anyone have any ideas what the correct settings should be?
If any of the guys working on Tribal Trouble or Wurm Online see this post, what values are you using?
Cheers,
Andy.