> For the complete documentation index, see [llms.txt](https://www.xrdev.app/mixed-reality-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.xrdev.app/mixed-reality-docs/webxr-lessons/babylon.js/concepts/what-is-a-scene.md).

# What is a scene?

To create a basic scene we need to initialize a **scene** object. You can think of a **scene** as a **stage** that will hold your production. Everything that will be visible to the viewer will be added to the scene.

![A scene is an object that holds everything you will display](/files/-MM3-CPShFYuw2n1L4S8)

We need to add a **camera** object to the scene that will be our viewers perspective. Anything on the scene but not in the view of the camera won't be visible on your canvas.&#x20;

![Camera is essential for rendering your scene to canvas](/files/-MM3SUUMwdGK-bNDV_EC)

We also need a **light** source for our objects to be visible.&#x20;

![Without the lights, we will render only black to the canvas.](/files/-MM3Skex0Kd4P2IZQEKH)

Finally, we will create a basic shape(**mesh**), box.&#x20;

![Box Mesh to be rendered](/files/-MM3T2Feu4J9vQ6r7cxJ)

![Geometry vs Material of a mesh](/files/-MNXU27f13T358cUiS2J)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.xrdev.app/mixed-reality-docs/webxr-lessons/babylon.js/concepts/what-is-a-scene.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
