Hi,
I am testing the lights in a simple scene 3d. This is my code.
//My scene is a texturized sphere
img=loadimage("img\img.jpg")
sphere=createobjectsphere(20,10,10):setobjectimage(sphere,img,0):setobjectlightmode(sphere,1)
//green Light (ball is used for testing the position of the light)
ball=createobjectsphere(1,5,5)
createlightpoint(1,0,0,0,50,0,255,0)
//Camera Postion
setcameraposition(1,0,0,-50)
setcameralookat(1,0,0,0,0)
do
//ball (and light) move around sphere
setobjectposition(ball,cos(b)*(getobjectx(sphere)+15),0,sin(b)*(getobjecty(sphere)+15)) setlightpointposition(1,getobjectx(ball),getobjecty(ball),getobjectz(ball))
inc b
Sync()
loop
The problem is that I don't see the light effect... (you can see it the attachment image).
Where is the mistake?
Thanks