i think ClearLightDirectionals did not work.
(odd, without lights its still grey,maybe ambient?)
the same as "29 games" found with a mix of both:
SetVirtualResolution(1024, 768)
Sync()
for x = 1 to 49
drawline(x,1,x,49,255,255,255)
next x
FloorImg = GetImage(0,0,50,50)
CeilingImg = GetImage(0,0,50,50)
dim FloorObj[10, 10] as integer
dim CeilingObj[10, 10] as integer
//ClearLightDirectionals()
//ClearLightPoints()
createLightDirectional(1,0,-1,0,255,255,0)
CreateLightPoint(1, 50, 5, 50, 2500, 255, 0, 0)
for x = 0 to 9
for y = 0 to 9
FloorObj[x, y] = CreateObjectPlane(10, 10)
SetObjectImage(FloorObj[x, y], FloorImg, 0)
RotateObjectLocalX(FloorObj[x, y], 90.0)
SetObjectPosition(FloorObj[x, y], x * 10, 0, y * 10)
//SetObjectShader(FloorObj[x, y],0)
SetObjectLightMode(FloorObj[x, y], 1)
CeilingObj[x, y] = CreateObjectPlane(10, 10)
id=CeilingObj[x, y]
SetObjectImage(id, CeilingImg, 0)
RotateObjectLocalX(id, 90.0)
SetObjectPosition(id, x * 10, 10, y * 10)
//SetObjectShader(id,0)
SetObjectLightMode(id, 1)
next y
next x
SetCameraPosition(1, 50, 5, 50)
SetCameraRotation( 1, 0, 0, 0)
do
RotateCameraLocalY(1, 45.0 / 60.0)
Sync()
loop
end
AGK 108 B19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670