Camera

Every picture starts here. Aim it, move it, pick a lens and give it its own look with exposure, bloom, depth of field and motion blur.

A wide view of four plain coloured shapes on a low granite plinth on a paved patio before a sunlit cream plaster wall, from a Camera at Field of View 70.
Before
The same Camera at Field of View 25 from the same spot: a blue block, a red ball, a yellow cylinder and a green wedge fill the frame.
After

After: The Camera with Field of View 25.

A Camera is a point of view, perspective (FieldOfView) or orthographic (OrthographicSize). camera:RenderTo(image) draws its Target, or else the DataModel it is in, path traced or Solid as the project's Rendered / Solid switch says (final renders always trace); ForceSolid keeps it Solid everywhere. Like a real camera it has a Focal Length on a Sensor, Depth of Field from an F-Stop and an Exposure Mode, Camera or Auto. Cook tracks drive its Moves, like Dolly, Handheld and Focus Rack.

Examples

Picture size, samples and bouncesLuau
-- Studio is the scene a new project starts with
local studio = Root.Studio
local cam = studio.CurrentCamera
cam.Size = Vector2.new(256, 256)
cam.Samples = 48
cam.Bounces = 2
Draw the camera's view every frameLuau
-- in an InitScript, which runs in Play
local studio = Root.Studio
local cam = studio.CurrentCamera
local shot = Instance.new('ImageContent', game); shot.Name = 'Shot'; shot.Size = Vector2.new(320, 240)
Root.Heartbeat:Connect(function()
	cam:RenderTo(shot)
end)

Properties

Ambient Occlusion

NameTypeDefaultDescription
AmbientOcclusionbooleanfalseTurns ambient occlusion on for Solid; Rendered already gets it from the path tracer.
AmbientOcclusionIntensitynumber1
0 to 8
The exponent on the occlusion.
AmbientOcclusionRadiusnumber2
0.05 to 100
The occlusion radius, in studs.

Lens

Aperturenumber0 to 10000The lens radius in studs, worked out from Depth of Field and F-Stop; setting it turns Depth of Field on and solves the F-Stop.
AutoFocusbooleanfalseFocuses every frame on what is under AutoFocusPoint, racking to a new subject over AutoFocusSpeed seconds.
AutoFocusDistancenumber
AutoFocusPointVector2
AutoFocusSpeednumber0 to 10
Bladesnumber0 to 16
ChromaticAberrationnumber0
0 to 1
DenoiseLensbooleanfalseWith Denoise on Smooth, averages 8 guide rays a pixel over the lens disc for denoising.
DepthOfFieldbooleanfalseTurns on depth of field: with FStop, the camera becomes a thin lens.
Diffractionbooleanfalse
Distortionnumber0
-1 to 1
FStopnumber0.001 to 256The f-stop of the thin lens Depth of Field makes; in Exposure Mode Camera it also adds to Exposure in stops.
Flarenumber0
0 to 1
FocusDistancenumber25
0.1 to 10000
The distance Depth of Field and Post Defocus focus at; a Focus Target, Focus Rack or Auto Focus takes over from it.
FocusTargetInstance
Glarenumber0
0 to 0.1
Grainbooleanfalse
LensShiftVector20, 0
PostDefocusbooleanfalseDraws the depth of field after the picture instead, from its depth, on the video layers that show it.
RollingShutternumber0
0 to 1
SensorstringFull Frame
Full Frame, Super 35, APS-C, Micro 4/3, 1", Phone, Custom
Sharpnessnumber-1
-1 to 4
ShutterAnglenumber0
0 to 360
Motion-blurs its pictures in a video over that part of each frame, where 360 is a whole frame.
Starburstnumber0
0 to 1
Streaknumber0
0 to 1
VeilFlatnumber0
0 to 0.3
VeilSharenumber-1
-1 to 0.3
Vignettingnumber0
0 to 1

Render

AutoExposureSpeednumber0 to 30
Bouncesnumber6
1 to 32
The bounces a traced picture uses once the view settles; while you interact, it uses at most Preview Bounces.
DenoisestringDetail
Off, Smooth, Detail
A string in Luau, which also takes true for Smooth and false for Off.
DenoiseKeepsTexturebooleanfalse
DitherbooleantrueAdds noise under one 8-bit level so gradients don't band.
Exposurenumber0
-10 to 10
ExposureModestringFixed
Fixed, Camera, Auto
Camera adds ISO, FStop and ShutterAngle to Exposure in stops; Auto meters the picture and brings it to middle grey.
FireflyClampnumber40
1 to 1000
Caps one light path's brightness; below 40 it caps bounced light too.
ForceSolidbooleanfalseKeeps the camera Solid everywhere, whatever the project's Rendered / Solid switch says, final renders included.
GradAnglenumber0
-90 to 90
GradCenternumber0.5
0 to 1
GradFilternumber0
-8 to 8
GradSoftnessnumber0.5
0 to 1
ISOnumber1 to 409600
LocalTonenumber0
0 to 1
LocalToneDetailnumber1
0 to 3
LookstringPunchy
None, Punchy, Punchy Soft, Natural, Film
A colour look; Punchy Soft is a moderate AgX look that doesn't push already saturated colours.
MeteredExposurebooleanfalse
NearLightsbooleanfalse
NoiseSpecksbooleanfalse
NoiseThresholdnumber0.1
0 to 1
Pixels keep sampling while their noise is above this; the default 0.1 leaves one level in 255 of noise.
PixelFilterstringBox
Box, Gaussian
Gaussian uses a 0.5 px sigma cut at 1.5 px and costs nothing extra.
PreviewBouncesnumber4
1 to 32
The bounces the live preview uses while the view moves.
PreviewLightingstringOff
Off, Sun, Sky
How Solid is lit: Off is its fixed light, Sun the DataModel's sun with shadows, Sky that plus the sky as ambient and blurred reflections.
ReflectionsstringLow
Off, Low, High
SamplePatternstringRandom
Random, Even
Even gives less grain than Random at the same Samples.
Samplesnumber256
1 to 65536
ThinGapMediabooleanfalse
ThinGapWaterbooleanfalse
TonemapstringAgX
AgX, Neutral, ACES, None, Camera
The tone map; AgX applies the Look inside it, Neutral is Khronos PBR Neutral, None just clamps.
WhiteBalancenumber6500
1500 to 15000
WhiteBalanceTintnumber0
-1 to 1

Advanced

BladeRotationnumber-360 to 360
DollyACFrame
DollyBCFrame
DollyPathstringStraight, Orbit
FocusBreathingnumber0
-1 to 2
GlarePowernumber1 to 3
HandheldFrequencynumber0 to 30
HandheldPositionnumber0 to 10
HandheldRotationnumber0 to 45
HandheldSeednumber0 or more
SensorWidthnumber36
1 to 100
StarburstRaysnumber6
2 to 16
StreakLengthnumber0.3
0.01 to 2
VeilSizenumber56
8 to 56

Bloom

BloombooleanfalseTurns the camera's own bloom on, off by default; a BloomEffect that applies takes the pass over from it.
BloomHDRbooleanfalseIn Rendered, adds the glow inside the path tracer, before exposure and tone map.
BloomIntensitynumber1
0 to 10
BloomSizenumber24
0 to 56
BloomThresholdnumber0.9
0 to 1
A low threshold makes a bright sky glow as a whole; 0.9 keeps a normal sky out and catches highlights and emissive parts.

Camera

CFrameCFrameRelative to the chain of NullObjects above it, up to the DataModel.
ColorColor31, 0.541, 0.239Viewports looking through the camera get a border in this colour, and its frustum draws in it in other viewports.
FieldOfViewnumber70
1 to 179
FocalLengthnumber14.46
0.5 to 5000
The lens in millimetres on the Sensor; it follows FieldOfView, which stays the source.
OrientationVector3The rotation half of CFrame, hidden from Properties.
OrthographicbooleanfalseDraws an orthographic view instead of perspective, as parallel rays from a plane when traced.
OrthographicSizenumber20
0.01 to 100000
The view's height in studs when the camera is orthographic.
PositionVector3The position half of CFrame, hidden from Properties.
TargetDataModelThe DataModel it draws; without one, it draws the DataModel it is in.
LookAtsourceProperties window onlyKeeps the camera's position and turns it to look at an instance's pivot or a point.

Moves

DollybooleanfalseMoves the camera from DollyA to DollyB, Straight or in an Orbit, weighted by a DollyTrack in Cook.
DollyTrackInstance
FocusAnumber0.1 to 10000
FocusBnumber0.1 to 10000
FocusRackbooleanfalse
FocusTrackInstance
FovPunchnumber0
-170 to 170
FovPunchTrackInstance
HandheldstringOff
Off, Subtle, Walking, Running, Shaky, Recorded
Moves the camera as if hand-held: Subtle, Walking, Running, Shaky or Recorded, a real hand-held recording; the same in every render.
HandheldAmountnumber0 to 10
HandheldTrackInstance
LookBlendbooleanfalse
LookTargetInstance
LookTrackInstance
RigbuttonProperties window only
DollyAFromViewbutton
DollyBFromViewbutton

Image

SizeVector21280, 720The size of the picture it renders.
TransparentbooleanfalseLeaves the background empty (alpha 0); renders come out premultiplied.

Scripts

WorldCFrameCFramescripts onlyIts CFrame in world space; CFrame itself is local.

Methods

NameArgumentsReturnsDescription
RenderTo(target: ImageContent)()Draws its Target, or else the DataModel it is in, into the image; errors when it has neither.
From Instance 22