this code fails on second active antialias
the antilias active one only
what is the problem?
; AntiAlias Example
; -----------------
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
RotateEntity light,90,0,0
sphere=CreateSphere()
PositionEntity sphere,0,0,2
While Not KeyDown( 1 )
; Toggle antialias enable value between true and false when spacebar is pressed
If KeyHit( 57 )=True Then enable=1-enable
; Enable/disable antialiasing
AntiAlias enable
RenderWorld
Text 0,0,"Press spacebar to toggle between AntiAlias True/False"
If enable=True Then Text 0,20,"AntiAlias True" Else Text 0,20,"AntiAlias False"
Flip
Wend
End
the antilias active one only
what is the problem?
; AntiAlias Example
; -----------------
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
RotateEntity light,90,0,0
sphere=CreateSphere()
PositionEntity sphere,0,0,2
While Not KeyDown( 1 )
; Toggle antialias enable value between true and false when spacebar is pressed
If KeyHit( 57 )=True Then enable=1-enable
; Enable/disable antialiasing
AntiAlias enable
RenderWorld
Text 0,0,"Press spacebar to toggle between AntiAlias True/False"
If enable=True Then Text 0,20,"AntiAlias True" Else Text 0,20,"AntiAlias False"
Flip
Wend
End