Hello everyone,
I am trying out this code:
;create clouds plane.
Graphics3D 800,600
camera = CreateCamera()
CameraViewport camera, 0,0,800,600
PositionEntity camera, 0,1,0
clouds=CreatePlane()
img = LoadTexture("piso1.bmp")
EntityTexture clouds,img
;rotate plane so it faces downwards.
RotateEntity clouds,0,0,180
;and position it up in the sky!
PositionEntity clouds,0,100,0
UpdateWorld
RenderWorld
WaitKey()
End
But no matter what texture I use, the plane always assumes the color of the texture, but not the texture itself. What can I be doing wrong?
I am trying out this code:
;create clouds plane.
Graphics3D 800,600
camera = CreateCamera()
CameraViewport camera, 0,0,800,600
PositionEntity camera, 0,1,0
clouds=CreatePlane()
img = LoadTexture("piso1.bmp")
EntityTexture clouds,img
;rotate plane so it faces downwards.
RotateEntity clouds,0,0,180
;and position it up in the sky!
PositionEntity clouds,0,100,0
UpdateWorld
RenderWorld
WaitKey()
End
But no matter what texture I use, the plane always assumes the color of the texture, but not the texture itself. What can I be doing wrong?