Hi, all!
It seems that I can't get ClsColor working in Blitz3D. Look at the following code (one of the GCUK tutorials slightly amended):
; Setting up ***
; By Paul Gerfen (www.gamecoding.co.uk)
Graphics3D 800,600,32
SetBuffer BackBuffer()
camera=CreateCamera()
CameraViewport camera,0,0,800,600
light=CreateLight()
cube=CreateCube()
PositionEntity cube,0,0,5
ClsColor 255,0,0
While Not KeyHit(1)
ClsColor 255,0,0
Cls
TurnEntity cube,.1,.2,.3
UpdateWorld
RenderWorld
Text 320,500,"First Blitz3D Program"
Flip
Wend
End
The scene's background should be red, right? Well it is black! Am I stupid or what?
Thanks for your help,
Thierry
It seems that I can't get ClsColor working in Blitz3D. Look at the following code (one of the GCUK tutorials slightly amended):
; Setting up ***
; By Paul Gerfen (www.gamecoding.co.uk)
Graphics3D 800,600,32
SetBuffer BackBuffer()
camera=CreateCamera()
CameraViewport camera,0,0,800,600
light=CreateLight()
cube=CreateCube()
PositionEntity cube,0,0,5
ClsColor 255,0,0
While Not KeyHit(1)
ClsColor 255,0,0
Cls
TurnEntity cube,.1,.2,.3
UpdateWorld
RenderWorld
Text 320,500,"First Blitz3D Program"
Flip
Wend
End
The scene's background should be red, right? Well it is black! Am I stupid or what?
Thanks for your help,
Thierry