> 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](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-050b465ea5381ea71f6fd48834fcaa516ca021d9%2F2019-09-02_1246-660x400.png?alt=media)

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](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-5257d6d91b32b7a0342f31e4190f3000fec970e5%2Fprofessional-video-camera-high-definition-video-camcorder-png-favpng-Deeud9GbWKFW1f1ge4pmNZpR6.jpg?alt=media)

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

![Without the lights, we will render only black to the canvas.](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-893b367865cf2168babc594ca289d8fd8470a660%2Fkisspng-stage-lighting-fresnel-lantern-light-emitting-diod-stage-light-5abfe733c8a9c2.4839009215225260038219.jpg?alt=media)

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

![Box Mesh to be rendered](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-f657313273239f5ce64a0587d1d59ea05376fa0b%2FboxMesh.png?alt=media)

![Geometry vs Material of a mesh](https://1227696974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoMjAI1irMPA8c0ezFQ%2Fuploads%2Fgit-blob-af01019c95f844fdb6621cb06bd6366121ad4c80%2Fvertex.png?alt=media)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
