CreateMirror() problem?

Blitz3D Forums/Blitz3D Programming/CreateMirror() problem?

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 think there is weird thing about CreateMirror().
An object which is under mirror plane also appear above the mirror. Anyone can help? Here is the code:

Graphics3D 800,600,32,2
SetBuffer BackBuffer()

;Lights
light01=CreateLight()
PositionEntity light01,15,20,15

;Plane
plane=CreatePlane()
EntityColor plane, 0, 30, 255
EntityAlpha plane, 0.8

;Mirror
mirror = CreateMirror();

;Camera
cam=CreateCamera()
PositionEntity cam,0,5,-15
RotateEntity cam,10,0,0

;Cube
cube=CreateCube()
ScaleEntity cube,2,2,2

cube2 = CreateCube() ; no PhysX object
PositionEntity cube2, -10, 3, 0
EntityColor cube2, 255, 0, 0

cube3 = CreateCube() ; no PhysX object
PositionEntity cube3, 10, -3, 0
EntityColor cube3, 255, 0, 0


sp = CreateSphere ()
EntityColor sp, 255, 0, 0


Repeat ;Main Loop

If (KeyDown(31)) ShowEntity mirror ; press S to show mirror
If (KeyDown(35)) HideEntity mirror ; press H to hide mirror

time=MilliSecs ()

UpdateWorld()
RenderWorld()


Text(0, 0,"press S to show mirror")
Text(0,20,"press H to hide mirror")

Flip

Until KeyHit(1)

End