Skip to content
Ciwb

Share

Importing and exporting

Ciwb saves its own projects as .ciwb files and can read and write a range of voxel, mesh and image formats. Everything lives in the File menu.

Formats at a glance

In

FormatHowNotes
Ciwb project (.ciwb)Open Project… (Ctrl+O)Everything: layers, palette, animation, settings
.voxImport Voxel File… (Ctrl+I)Positions, names and hidden state come in. Rotations, materials and layers don't yet.
.qb and .qbtImport Voxel File…Each matrix becomes a layer
.goxImport Voxel File…
.schem and .schematicImport Voxel File…Blocks are turned into colours
.vox as a linked partImport .vox as Linked Part…Remembers the file so you can reload it
Images (PNG and other pictures)Import Image… (Ctrl+Alt+I)Pixel art or heightmap
3D models (.glb, .gltf, .obj)Import 3D Model (GLB, glTF, OBJ)…Turned into voxels

You can also drag any of these files onto the window.

Importing a voxel file opens it as a new, unsaved project. The original file is never changed.

Out

FormatMenu itemUse it for
.voxExport .vox… (Ctrl+E)Other voxel editors
.qbExport .qb…Voxel editors that read .qb, one layer per object
.glbExport GLB… (Ctrl+Shift+E)Quick mesh-and-animation export
.glb for gamesExport for Game…Engine presets, collision, attachment points, LODs
.glb per variantExport Variants as Files…Colour variants as separate files
.objExport OBJ…3D apps, with vertex colours
PNG slicesExport Layer Slices (PNG)…Every horizontal layer side by side
One file per objectExport Each Object Separately…A folder of .vox or .obj files
PNG sprite sheet + JSONExport Sprite Sheet… (Ctrl+Shift+P)2D games
Rendered images and videoThe Render tabSee Rendering

Export Again (Ctrl+Alt+E) repeats your last .vox, .obj or GLB export to the same file without asking. Handy when you're testing a model in a game: edit, press Ctrl+Alt+E, switch to the engine.

Open a voxel file

Ciwb opens .vox, .qb, .qbt and .gox files and Minecraft schematics.

  1. Choose File > Import > Import Voxel File… (Ctrl+I), or drop the file onto the window.
  2. If you have unsaved work, Ciwb asks whether to save it first.
  3. The file opens as a new project. A message tells you how many objects and voxels came in, plus any warnings.

Save it with Save As… to keep it as a .ciwb project.

Export a .vox

  1. Choose File > Export > Export .vox… (Ctrl+E).
  2. Pick where to save.

All visible objects go into one .vox model. A few things to know:

  • .vox models can't be bigger than 256 in any direction. Anything beyond that is dropped, and Ciwb warns you.
  • Face paint from the Texture tab isn't included. See Texture.

Export a .qb file

Choose File > Export > Export .qb…. Every visible object becomes its own layer in the file, with its name and position.

Turn a picture into voxels

  1. Choose File > Import > Import Image… (Ctrl+Alt+I), or drag a picture onto the window.
  2. Pick Pixel art (one voxel per pixel) or Heightmap (brighter means higher ground). If the picture looks like a map, Ciwb suggests Heightmap.
  3. Set the Width in voxels, up to 1024. The other side follows the picture's shape. Original resets it to the picture's own size.
  4. Set the rest (see below), then click Import.

For Pixel art:

  • Placed: Standing up like a sign, or Lying flat like a floor.
  • Thickness: how thick the picture is, 1 to 64 voxels.

For Heightmap:

  • Highest: height in voxels for white.
  • Lowest: height in voxels for black.
  • Water: fills low ground with water up to this height. Off means no water.
  • Solid underneath: off keeps only the surface and its sides (far fewer voxels); on fills the ground all the way down.
  • Add colour image (optional): a second picture with the ground colours, in the same layout as the heightmap.

For both, choose where Colours come from: New palette from image (exact colours) or Closest in my palette.

The Import image window set to Heightmap

Turn a 3D model into voxels

  1. Choose File > Import > Import 3D Model (GLB, glTF, OBJ)…, or drag a .glb or .obj onto the window.
  2. Set Size: the longest side in voxels, from 8 to 512.
  3. Pick Fill: Shell for the surface only, or Solid to fill the inside. Solid needs a closed mesh.
  4. Pick which way is up in the file: Y-up, or Z-up to stand up a model made Z-up.
  5. Pick Colours: Match palette uses the closest colours you already have; Add new puts missing colours into unused palette slots. New colours caps how many it adds (1 to 128).
  6. Tick Separate layers to get one layer per part of the model.
  7. Click Import.

The model arrives in a new layer. The window shows how many triangles and parts the file has.

The Import 3D model window

Export a GLB

File > Export > Export GLB… (Ctrl+Shift+E) is the quick route. It asks for Voxels per metre (16 by default) and saves a .glb with each visible object as a part and every clip as an animation.

When it's done, a message lists the parts, triangles and animations. Hidden objects are skipped and named. Loop settings aren't part of GLB, so set them in your engine.

For engine-specific settings, use Export for Game… instead.

Export for a game engine

File > Export > Export for Game… opens the Export for game window. Pick your engine at the top and the settings follow.

PresetCollidersAttachment pointsColoursOrigin
Godot-colonly nodesNamed emptiesVertex coloursBase
UnityMarked in node extras (userData)Marked in node extrasTexture atlasBase
UnrealUCX_ meshesSOCKET_ emptiesTexture atlasBase
Generic glTFExtras on collidersExtras on socketsVertex coloursScene

The settings:

  • Voxels / m: how many voxels make one metre in the game. 16 is the default for every preset.
  • Up: shown for information. glTF is always Y-up and engines convert on import.
  • Origin: Base puts the model's bottom-centre at the origin. Scene keeps your scene coordinates.
  • Animations: include your clips.
  • Collision: include collision shapes (see below).
  • Attachment points: include sockets.
  • Colours as: Vertex colours stores colour on each vertex. Texture atlas makes one small texture with UVs and nearest filtering. Most engines' default materials ignore vertex colours, which is why Unity and Unreal default to the atlas.
  • Merge static parts: joins parts that never move into one mesh.
  • Optimise: welds shared vertices on merged faces.
  • Lower-detail copies (LOD): adds _LOD1 and _LOD2 copies at half and quarter voxel detail.

Click Export and pick where to save. The window then shows a report: parts, triangles, clips, sockets and colliders, the real-world size in metres, the origin, the up axis, LOD triangle counts and texture size. It warns about anything that might not come through, such as a collider with the wrong name for the engine.

Click Open in viewer to load the file back and check it. The preview lets you orbit, play each clip and show or hide collision shapes. Click Done to close.

The Export for game window with the report and viewer

Bring it into Godot 4

  1. Export with the Godot preset.
  2. Save or copy the .glb into your Godot project folder.
  3. Godot imports it on its own. It appears in the FileSystem dock.
  4. Drag it into a scene, or double-click it to open its import settings.
  5. Nodes ending in -colonly become collision shapes, and your clips appear in the AnimationPlayer.

Bring it into Unity

  1. Export with the Unity preset. It uses Texture atlas colours, since Unity's standard shaders ignore vertex colours.
  2. Unity doesn't read .glb out of the box. Install a glTF importer package first (Unity's own glTFast package is a common choice).
  3. Copy the .glb into your project's Assets folder.
  4. Drag it into the scene.
  5. Colliders and attachment points are marked in each node's extras. How these turn into Unity colliders depends on your importer, so you may need a small script to read them.

Bring it into Unreal

  1. Export with the Unreal preset.
  2. In the Content Browser, click Import (or drag the .glb in).
  3. In the import options, import it as a static or skeletal mesh as suits the model.
  4. Meshes named UCX_ become collision, and SOCKET_ empties become sockets.
  5. Unreal converts from Y-up on import, and the report shows Y-up (converted on import) to remind you.

Give parts collision

  1. Select a part in the Layers panel.
  2. In its properties, set Collision to:
    • None
    • Box: the part's bounding box.
    • Boxes: a few merged boxes that follow the shape (up to 64).
    • Mesh: a simplified mesh.
  3. Turn on Collision in Export for Game….

View > Show Collision shows every collision shape in the viewport, not just the active object's.

Add attachment points

An attachment point is a named spot on a part, such as a hand or a hat position. It follows the part's animation and exports as an empty node, so your game can attach a sword or a hat to it.

  1. Select the part.
  2. Choose Object > Add Attachment Point. A point called Socket appears just above the part.
  3. Move it into place and rename it (F2).
  4. Under Points, choose which way it faces: +X, −X, +Y, −Y, +Z or −Z. That direction becomes its +Y axis in the export.

Make colour variants

Variants let one model come in several colours, like a red and a blue soldier.

  1. Select the part or group.
  2. Choose Object > Make Variant. A named copy appears.
  3. With the variant selected, its Colours row shows the colours it uses. Pick a paint colour, then click a swatch to swap it for that colour.
  4. Choose File > Export > Export Variants as Files… to save each original and its variants as separate .glb files in a folder.

Keep a .vox file linked

If you build parts in another editor, link them so you can pull in changes.

  1. Choose File > Import > Import .vox as Linked Part… and pick the file.
  2. The parts come in and remember the file.
  3. After you change the file, choose File > Import > Reload Linked Parts. Position, parent, animation and name are kept.

Linking needs the desktop app. If a linked file has gone missing, the message names it.

Export a sprite sheet

File > Export > Export Sprite Sheet… (Ctrl+Shift+P) renders the model from several directions into a PNG with a JSON file of frame data. It's built for 2D games.

Camera

  • Pick a view: Iso (isometric), 2:1 (pixel-art dimetric), Top (straight down) or Side (level with the model).
  • Directions: 1, 4, 8 or 16 views around the model.
  • Pixels / voxel: how many pixels one voxel takes.
  • Frame rate for animated clips.
  • Pixel snap: keeps frame sizes in whole voxels and the camera on the voxel grid, so pixels stay crisp.

Look

  • Outline: a 1-pixel outline around the silhouette. Pick its colour from the swatches.
  • Palette lock: no anti-aliasing; every pixel uses the nearest colour in your palette.
  • Shading: bands the lighting into steps.
  • Light follows view: on, the light turns with the camera so every direction is lit alike; off, the light stays fixed.
  • Light angle and Light height.

Sheet

  • Format:
    • Generic JSON: clips, directions, frames, events and boxes.
    • Hash JSON: TexturePacker JSON hash, for Phaser, PixiJS, Unity and Defold importers.
    • Array JSON: TexturePacker JSON array.
    • Sheet JSON (tags): frames and frame tags, with boxes as slices.
    • Godot SpriteFrames: a Godot 4 .tres. Put the PNG at the project root (res://).
  • Trim: cuts empty borders. The offsets go in the metadata.
  • Padding and Extrude. Extrude repeats edge pixels outward so texture filtering doesn't show seams.
  • Power-of-two size: rounds the sheet up to a power of two.

Clips

Choose which animation clip to export, or Rest pose only. The preview plays it. Use the numbered buttons to check each direction, and the toolbar for Onion skin, Checker background and zoom.

Add events and hitboxes

  1. Click a frame in the strip.
  2. To mark an event, click the flag (Add event on this frame), type a name such as footstep and press Enter. Events show as chips you can remove.
  3. To mark a hitbox, click the swords icon (Draw hitbox) and drag a box on the preview. The shield icon (Draw hurtbox) draws a hurtbox.
  4. In the box list, name each box, set its active frames with From and To, and optionally pick a part for it to follow. Click a box's label to swap it between hitbox and hurtbox. The bin deletes it.

Events and boxes need a clip; they're greyed out for the rest pose.

Save

  • Export saves the current clip as a PNG plus its data file.
  • All clips saves every clip in every direction, one sheet per clip, into a folder.

The sprite sheet window with hitboxes drawn

Other exports

  • Export OBJ…: visible objects as an .obj with vertex colours.
  • Export Layer Slices (PNG)…: every horizontal layer side by side in one PNG, bottom layer first, one pixel per voxel.
  • Export Each Object Separately…: choose .vox models or .obj meshes, then a folder. Each file is named after its layer.

Use the Library

The Library panel in the Model tab keeps models you reuse, shown as thumbnails. It starts folded; click its title to open it.

  • Click a thumbnail to add that model to the scene.
  • Save the selected layer into the Library (the bookmark icon) adds the active layer. It needs the desktop app.
  • Choose the Library folder points it at any folder of .vox and .ciwb files. The default is Documents\Ciwb\Library.
  • Refresh re-reads the folder.

Starter models

The Library always includes a Starter set to get you going: Crate, Barrel, Tree, Bush, Rock, Lamp post, Fence and Bench.

The Library panel