NEOLearn

Camera examples

The engine's camera examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

Camera projections, viewports, controllers and following a target. There are 9 examples on this page. For the concepts behind them, see Cameras.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
2D on NEO UIShows how to render 2D objects on top of NEO UIYescargo run --example 2d_on_ui
2D top-down cameraA 2D top-down camera smoothly following player movementsYescargo run --example 2d_top_down_camera
Camera OrbitShows how to orbit a static scene using pitch, yaw, and roll.Yescargo run --example camera_orbit
Custom ProjectionShows how to create custom camera projections.Yescargo run --example custom_projection
First person view modelA first-person camera that uses a world model and a view model with different field of views (FOV)Yescargo run --example first_person_view_model
Free Camera controllerDemonstrates the FreeCamera controller for 3D scenes.Yescargo run --example free_camera_controller --features free_camera
Pan CameraExample Pan-Camera Styled Camera Controller for 2D scenesYescargo run --example pan_camera_controller --features pan_camera
Projection ZoomShows how to zoom orthographic and perspective projection cameras.Yescargo run --example projection_zoom
Screen ShakeA simple 2D screen shake effectYescargo run --example 2d_screen_shake

See also#