Docs/Tutorials/Loading a Scene

Opening a File

Method 1: Command-line argument

./cmake-build-debug/MeshCraft test/house.mc3.xml

The file is loaded immediately on startup. The window title shows the file name.

Method 2: In-editor dialog (Ctrl+O)

  1. Press Ctrl+O or use File → Open.
  2. An in-editor text field appears. Type the path to the file and press Enter.

Method 3: Recent Files

Use File → Open Recent to see the last 10 opened files. The list is persisted at ~/.config/meshcraft/recent.txt.

Exploring the Scene

Hierarchy Panel (left)

Properties Panel (right)

Viewport

The House Test Scene

The repository includes a simple test scene at test/house.mc3.xml:

<mc3 version="0.1" model="House">
  <!-- sky-blue background + linear fog -->
  <!-- ambient + directional sun -->
  <!-- 4 materials: brick, stone, roof, ground -->
  <objects>
    <group name="House">
      <box name="FrontWall"  size="10 4 0.3" …/>
      <box name="BackWall"   …/>
      <box name="LeftWall"   …/>
      <box name="RightWall"  …/>
      <box name="Floor"      …/>
      <box name="Roof"       …/>
    </group>
    <cylinder name="LeftColumn"  …/>
    <cylinder name="RightColumn" …/>
    <sphere   name="Ornament"    …/>
    <plane    name="Ground"      …/>
  </objects>
</mc3>

Making Edits

Saving

⚠️

The editor modifies the scene in memory. Until you save, your changes are only in RAM. The undo stack (max 20 steps) is also in RAM only — closing the editor without saving loses all changes.