light up my mesh

Blitz3D Forums/Blitz3D Programming/light up my mesh

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a mesh, parented to a pivot, parented to another pivot, parented to the camera.
More or less like this:
----------------------------------------
Graphics3D DWidth,DHeight,DDepth
ScapeCam=CreateCamera()
AmbientLight 0,0,0
CameraRange scapecam,1,1000
CameraProjMode ScapeCam,1
ScapePivot=CreatePivot(ScapeCam)
aspect#=Float(viewheight)/viewwidth
PositionEntity ScapePivot,-1,aspect,1
scale#=2.0/scapeviewwidth
ScaleEntity ScapePivot,scale,-scale,-scale
ScapePivot=CreatePivot(ScapePivot)
PositionEntity ScapePivot,-.5,-.5,0
Scapelight=CreateLight(1,scapepivot)
PositionEntity scapelight,0,0,0 ??????(other values have no effect?)

(I create a mesh named QMesh representing a landscape here...)


EntityParent Qmesh,ScapePivot
---------------------------------------------
Now the lighting comes from the direction of the camera and I want it to come from the left, but I can't get it to work.
Anybody any ideas?
Much appreciated!