Unless I'm overlooking something completely obvious, I think I've found a bug with ScaleEntity: It does not seem to scale the applicable entity on the Z axis.
BlitzMax + MiniB3D Code:
Equivalent Blitz3D Code:
BlitzMax + MiniB3D Code:
'Left/Right arrows To decrease/increase cube Z scale. Import "c:\temp\MiniB3D-v030\MiniB3D.bmx" Graphics3D 640,480 camera=CreateCamera() PositionEntity camera, 5.0, 0.0, 1.5 light=CreateLight() RotateEntity light, 90.0, 0.0, 0.0 cube=CreateCube() PositionEntity cube, 0.0, 0.0, 5.0 scalez# = 0.5 ScaleEntity cube, 2.0, 1.0, scalez# PointEntity camera, cube WireFrame True While Not KeyHit(KEY_ESCAPE) Cls If KeyDown(KEY_RIGHT) Then scalez# = scalez# + 0.1 ScaleEntity cube, 2.0, 1.0, scalez# EndIf If KeyDown(KEY_LEFT) Then scalez# = scalez# - 0.1 ScaleEntity cube, 2.0, 1.0, scalez# EndIf UpdateWorld RenderWorld Flip Wend End
Equivalent Blitz3D Code:
;Left/Right arrows to decrease/increase cube Z scale. Graphics3D 640,480 camera=CreateCamera() PositionEntity camera, 5.0, 0.0, 1.5 light=CreateLight() RotateEntity light, 90.0, 0.0, 0.0 cube=CreateCube() PositionEntity cube, 0.0, 0.0, 5.0 scalez# = 0.5 ScaleEntity cube, 2.0, 1.0, scalez# PointEntity camera, cube WireFrame True While Not KeyHit(1) Cls If KeyDown(205) Then scalez# = scalez# + 0.1 ScaleEntity cube, 2.0, 1.0, scalez# EndIf If KeyDown(203) Then scalez# = scalez# - 0.1 ScaleEntity cube, 2.0, 1.0, scalez# EndIf UpdateWorld RenderWorld Flip Wend End