Can someone explain to me why this..........
dbMakeObjectPlane(17, 1000, 1000 );
dbPositionObject ( 17, 0, -50, 400 );
dbRotateObject ( 17, -90,0,0 );
dbSetAmbientLight( 12 );
dbMakeLight(1);
dbSetPointLight (1, 100, 800, 100 );
dbColorLight ( 1, 200, 200, 255 );
dbSetLightRange ( 1, 70000 );
Results in the plane being illuminated a bright yellow, evenly across its entire area.
Whereas this...
dbMakeObjectPlane(17, 6000, 6000 );
dbPositionObject ( 17, 0, -50, 400 );
dbRotateObject ( 17, -90,0,0 );
dbSetAmbientLight( 12 );
dbMakeLight(1);
dbSetPointLight (1, 100, 800, 100 );
dbColorLight ( 1, 200, 200, 255 );
dbSetLightRange ( 1, 70000 );
Results in the same plane being illuminated a much darker brown, evenly across its entire area.
The only change between the two chunks of code being the size of the plane.
Normally I would expect to see an illuminated \'hotspot\' closer to the light source and the light levels tapering off the further away the surface is from it. Ie thats how \'real\' lights work.
Not in this case though, so what do I have to do to achieve \'realistic\' illumination drop off in relation to distance from source.
I will leave the issue of how to get objects to cast shadows on the plane for the next post ??!