Skip to content

CameraZoom

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
Blitz3D

CameraZoom

CameraZoom:Void camera:Int32, zoom:Float32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.
zoom In Float32 required Magnification, 1 by default.

Description

Changes how much the camera magnifies the view. 1 is the default, larger values zoom in and smaller values zoom out. Zoom narrows or widens the field of view, so it can imitate a telescope or a wide angle lens. The runtime does not accept values below 0.001.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
normal = CreateCamera()
CameraViewport normal, 0, 0, 158, 240
zoomed = CreateCamera()
CameraViewport zoomed, 162, 0, 158, 240
CameraZoom zoomed, 2.5
light = CreateLight()
RotateEntity light, 45, 45, 0
ball = CreateSphere(16)
PositionEntity ball, 0, 0, 4
EntityColor ball, 80, 200, 120
RenderWorld
Flip
WaitKey

Media

CameraZoom

Related Commands

CameraClsColor, CameraClsMode, CameraCulling, CameraCullingSource, CameraFogColor, CameraFogMode, CameraFogRange, CameraProject

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally