Recon
Newbie

Posts: 24
|
 |
« on: September 29, 2006, 08:59:36 pm » |
|
Hi, I created a light using
csRef<iLight> light; iLightList* ll = room->GetLights ();
light = engine->CreateLight(0, csVector3( 0, 0, 0), 1000000, csColor(1, 1, 1)); ll->Add (light);
and created a bunch of sphere's using
csRef<iMeshWrapper> mesh (engine->CreateMeshWrapper (ballFact, "ball", room));
the sphere's are
createsphere( "100000" , radius, center, "grid.jpg" , csVector3 (100000,0,0) ); createsphere( "100250" , radius, center, "grid.jpg" , csVector3 (100250,0,0) ); createsphere( "100500" , radius, center, "grid.jpg" , csVector3 (100500,0,0) ); createsphere( "100700" , radius, center, "grid.jpg" , csVector3 (100700,0,0) ); createsphere( "101000" , radius, center, "grid.jpg" , csVector3 (101000,0,0) );
createsphere( "146000" , radius, center, "grid.jpg" , csVector3 (146000,0,0) );
The problem is that after the 100500 sphere the ligh only seems to work if camera can see the light. say i am at 109000,0,0 looking at a sphere it's totaly black, but if i move the camera to 101100, 500, 0 and look back to 0,0,0 I can see the sphere.
is this expected behavior?
CS Rev 25428
regards
|