Perspective and Environment: Camera, Sky, and Ground

Get an introduction to the camera component and its features. Learn to add sky and ground components to your scene.

The camera component in A-Frame represents the perspective from which the user views the scene. To create a camera component in A-Frame, we can use the <a-camera> primitive, which is a convenience layer (i.e., syntactic sugar) for the <a-entity> element with camera components.

Recreating the default camera

A-Frame adds a default camera on its own if we don’t explicitly define the camera in the scene. The camera component is just an entity with the camera, look-controls, and wasd-controls properties as shown below:

Get hands-on with 1200+ tech skills courses.