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.


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
-- 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-- 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
| Name | Type | Default | Description |
|---|---|---|---|
| AmbientOcclusion | boolean | false | Turns ambient occlusion on for Solid; Rendered already gets it from the path tracer. |
| AmbientOcclusionIntensity | number | 1 0 to 8 | The exponent on the occlusion. |
| AmbientOcclusionRadius | number | 2 0.05 to 100 | The occlusion radius, in studs. |
Lens
| Aperture | number | 0 to 10000 | The 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. |
| AutoFocus | boolean | false | Focuses every frame on what is under AutoFocusPoint, racking to a new subject over AutoFocusSpeed seconds. |
| AutoFocusDistance | number | ||
| AutoFocusPoint | Vector2 | ||
| AutoFocusSpeed | number | 0 to 10 | |
| Blades | number | 0 to 16 | |
| ChromaticAberration | number | 0 0 to 1 | |
| DenoiseLens | boolean | false | With Denoise on Smooth, averages 8 guide rays a pixel over the lens disc for denoising. |
| DepthOfField | boolean | false | Turns on depth of field: with FStop, the camera becomes a thin lens. |
| Diffraction | boolean | false | |
| Distortion | number | 0 -1 to 1 | |
| FStop | number | 0.001 to 256 | The f-stop of the thin lens Depth of Field makes; in Exposure Mode Camera it also adds to Exposure in stops. |
| Flare | number | 0 0 to 1 | |
| FocusDistance | number | 25 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. |
| FocusTarget | Instance | ||
| Glare | number | 0 0 to 0.1 | |
| Grain | boolean | false | |
| LensShift | Vector2 | 0, 0 | |
| PostDefocus | boolean | false | Draws the depth of field after the picture instead, from its depth, on the video layers that show it. |
| RollingShutter | number | 0 0 to 1 | |
| Sensor | string | Full Frame Full Frame, Super 35, APS-C, Micro 4/3, 1", Phone, Custom | |
| Sharpness | number | -1 -1 to 4 | |
| ShutterAngle | number | 0 0 to 360 | Motion-blurs its pictures in a video over that part of each frame, where 360 is a whole frame. |
| Starburst | number | 0 0 to 1 | |
| Streak | number | 0 0 to 1 | |
| VeilFlat | number | 0 0 to 0.3 | |
| VeilShare | number | -1 -1 to 0.3 | |
| Vignetting | number | 0 0 to 1 |
Render
| AutoExposureSpeed | number | 0 to 30 | |
| Bounces | number | 6 1 to 32 | The bounces a traced picture uses once the view settles; while you interact, it uses at most Preview Bounces. |
| Denoise | string | Detail Off, Smooth, Detail | A string in Luau, which also takes true for Smooth and false for Off. |
| DenoiseKeepsTexture | boolean | false | |
| Dither | boolean | true | Adds noise under one 8-bit level so gradients don't band. |
| Exposure | number | 0 -10 to 10 | |
| ExposureMode | string | Fixed Fixed, Camera, Auto | Camera adds ISO, FStop and ShutterAngle to Exposure in stops; Auto meters the picture and brings it to middle grey. |
| FireflyClamp | number | 40 1 to 1000 | Caps one light path's brightness; below 40 it caps bounced light too. |
| ForceSolid | boolean | false | Keeps the camera Solid everywhere, whatever the project's Rendered / Solid switch says, final renders included. |
| GradAngle | number | 0 -90 to 90 | |
| GradCenter | number | 0.5 0 to 1 | |
| GradFilter | number | 0 -8 to 8 | |
| GradSoftness | number | 0.5 0 to 1 | |
| ISO | number | 1 to 409600 | |
| LocalTone | number | 0 0 to 1 | |
| LocalToneDetail | number | 1 0 to 3 | |
| Look | string | Punchy None, Punchy, Punchy Soft, Natural, Film | A colour look; Punchy Soft is a moderate AgX look that doesn't push already saturated colours. |
| MeteredExposure | boolean | false | |
| NearLights | boolean | false | |
| NoiseSpecks | boolean | false | |
| NoiseThreshold | number | 0.1 0 to 1 | Pixels keep sampling while their noise is above this; the default 0.1 leaves one level in 255 of noise. |
| PixelFilter | string | Box Box, Gaussian | Gaussian uses a 0.5 px sigma cut at 1.5 px and costs nothing extra. |
| PreviewBounces | number | 4 1 to 32 | The bounces the live preview uses while the view moves. |
| PreviewLighting | string | Off 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. |
| Reflections | string | Low Off, Low, High | |
| SamplePattern | string | Random Random, Even | Even gives less grain than Random at the same Samples. |
| Samples | number | 256 1 to 65536 | |
| ThinGapMedia | boolean | false | |
| ThinGapWater | boolean | false | |
| Tonemap | string | AgX AgX, Neutral, ACES, None, Camera | The tone map; AgX applies the Look inside it, Neutral is Khronos PBR Neutral, None just clamps. |
| WhiteBalance | number | 6500 1500 to 15000 | |
| WhiteBalanceTint | number | 0 -1 to 1 |
Advanced
| BladeRotation | number | -360 to 360 |
| DollyA | CFrame | |
| DollyB | CFrame | |
| DollyPath | string | Straight, Orbit |
| FocusBreathing | number | 0 -1 to 2 |
| GlarePower | number | 1 to 3 |
| HandheldFrequency | number | 0 to 30 |
| HandheldPosition | number | 0 to 10 |
| HandheldRotation | number | 0 to 45 |
| HandheldSeed | number | 0 or more |
| SensorWidth | number | 36 1 to 100 |
| StarburstRays | number | 6 2 to 16 |
| StreakLength | number | 0.3 0.01 to 2 |
| VeilSize | number | 56 8 to 56 |
Bloom
| Bloom | boolean | false | Turns the camera's own bloom on, off by default; a BloomEffect that applies takes the pass over from it. |
| BloomHDR | boolean | false | In Rendered, adds the glow inside the path tracer, before exposure and tone map. |
| BloomIntensity | number | 1 0 to 10 | |
| BloomSize | number | 24 0 to 56 | |
| BloomThreshold | number | 0.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
| CFrame | CFrame | Relative to the chain of NullObjects above it, up to the DataModel. | |
| Color | Color3 | 1, 0.541, 0.239 | Viewports looking through the camera get a border in this colour, and its frustum draws in it in other viewports. |
| FieldOfView | number | 70 1 to 179 | |
| FocalLength | number | 14.46 0.5 to 5000 | The lens in millimetres on the Sensor; it follows FieldOfView, which stays the source. |
| Orientation | Vector3 | The rotation half of CFrame, hidden from Properties. | |
| Orthographic | boolean | false | Draws an orthographic view instead of perspective, as parallel rays from a plane when traced. |
| OrthographicSize | number | 20 0.01 to 100000 | The view's height in studs when the camera is orthographic. |
| Position | Vector3 | The position half of CFrame, hidden from Properties. | |
| Target | DataModel | The DataModel it draws; without one, it draws the DataModel it is in. | |
| LookAt | source | Properties window only | Keeps the camera's position and turns it to look at an instance's pivot or a point. |
Moves
| Dolly | boolean | false | Moves the camera from DollyA to DollyB, Straight or in an Orbit, weighted by a DollyTrack in Cook. |
| DollyTrack | Instance | ||
| FocusA | number | 0.1 to 10000 | |
| FocusB | number | 0.1 to 10000 | |
| FocusRack | boolean | false | |
| FocusTrack | Instance | ||
| FovPunch | number | 0 -170 to 170 | |
| FovPunchTrack | Instance | ||
| Handheld | string | Off 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. |
| HandheldAmount | number | 0 to 10 | |
| HandheldTrack | Instance | ||
| LookBlend | boolean | false | |
| LookTarget | Instance | ||
| LookTrack | Instance | ||
| Rig | button | Properties window only | |
| DollyAFromView | button | ||
| DollyBFromView | button |
Image
| Size | Vector2 | 1280, 720 | The size of the picture it renders. |
| Transparent | boolean | false | Leaves the background empty (alpha 0); renders come out premultiplied. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| RenderTo | (target: ImageContent) | () | Draws its Target, or else the DataModel it is in, into the image; errors when it has neither. |
