Skip to content

Your first scene

This tutorial builds a small scene from primitives and components: a ground, a cube, a light, and a script. It uses the components that ship in Kolpa.Engine.

  1. Open a project. If you have none, File -> New Project creates one.
  2. File -> New Scene.
  3. File -> Save Scene (Ctrl+S) and give it a name.

The scene is saved as a .scene file under the project’s scenes/ folder.

  • View -> Scene Hierarchy (Shift+1): the object tree.
  • View -> Inspector: components of the selected object.
  • View -> Asset Browser (Shift+Space): project assets.
  1. Create a new empty GameObject from the Scene Hierarchy.
  2. Rename it ground.
  3. In the inspector, Add Component -> Mesh Filter. Set Kind to Cube.
  4. Set Size so it looks like a wide floor, for example 10, 1, 10.
  5. Add Component -> Mesh Renderer so it draws.

Because the cube is centered on its origin, set the Transform Position to 0, -0.5, 0 so the top surface sits at y = 0.

  1. Create another GameObject and rename it cube.
  2. Add Component -> Mesh Filter, Kind = Cube, Size = 1, 1, 1.
  3. Add Component -> Mesh Renderer.
  4. Set Position to 0, 1, 0 so it rests on the ground.
  1. Create a GameObject and rename it sun (or use the world sun if the scene has one).
  2. Add Component -> Point Light.
  3. Set Position above the ground, for example 1, 2.5, 1.
  4. In the inspector, enable Cast Shadows.

The cube should cast a shadow on the ground.

  1. File -> Save Scene (Ctrl+S).
  2. Press the Play button, or Ctrl+P / Alt+P.
  3. Use the demo player controls to look around, then toggle back to the editor with Ctrl+P / Alt+P.

Previous: Sample content: demo scenes and prefabs.

Next: Your first prefab: save a GameObject setup and reuse it.