3D voxel models and sprite stacks

Use these workflows to turn pixel art into a voxel model, refine it slice by slice, assemble a model from a PNG sprite stack and choose a file format for further editing or sharing.

Create a 3D voxel model from pixel art

Open the Night Camp sample to explore an editable voxel scene alongside its 2D animation. Create a model from a 2D frame with extrusion or build a fuller shape from three views.

Open the Night Camp sample
  1. Open Night Camp and choose 3D model in the editor mode bar to inspect its existing voxel scene. To create a new model, open a project without a voxel model, select the 2D frame, show only the layers you want to include, then choose 3D model.
  2. Set Depth in the model creation controls, then choose Extrude current frame. Penzlik combines the visible layers of the current frame into one voxel layer and repeats the image through the selected depth. Erase unwanted voxels in the slice editor. The 2D artwork and animation remain unchanged; later edits do not sync between modes.
  3. For a fuller form, choose Build visual hull and supply aligned front, side and top images. Use one pixel grid for all three views: Front is width × height, Side is depth × height and Top is width × depth. Choose which view supplies voxel colors, then build the model.
  4. Select a voxel layer and palette color, then paint, erase or sample colors on the active slice. Switch between Front, Side and Top to reach different parts of the model.

A visual hull estimates volume from the three silhouettes. It cannot recover concavities hidden in every view, so inspect the result and edit its slices.

Inspect and edit voxel slices

Choose Front, Side or Top from Slice direction, then move Slice position to inspect a plane through the model. The pixel grid helps align edits with the source artwork. The 3D preview can show the whole model or the selected cross-section, so you can check each slice in context.

Penzlik's voxel editor with a selected 2D slice, 3D voxel preview, palette and layer controls.
Choose a view and slice position, then edit voxels beside the 3D preview.
Open the full-size screenshot
Slice direction selector and slice position slider in the voxel editor.
Choose a direction and move the slider to select the slice to edit.
Open the full-size screenshot

Resize depth and keep control of your slices

Depth sets the number of voxel positions along the model's depth axis. The voxel inspector shows the current value and a Resize action.

  1. To add depth, enter a larger whole number in Depth and choose Resize. Existing voxels stay in place and the added slices start empty. Move to those slices and paint them to extend the model.
    The Depth field and Resize button in the voxel inspector.
    Enter the new depth and select Resize. Added slices start empty.
    Open the full-size screenshot
  2. To reduce depth, enter a smaller value and choose Resize. Penzlik asks you to confirm because slices beyond the new end will be removed. Confirm the change or cancel to keep the current model unchanged.
    Voxel depth reduction confirmation dialog beside the model's slice and depth controls.
    Penzlik asks for confirmation before reducing the model depth.
    Open the full-size screenshot
  3. After a resize, choose Undo in the editor header to restore the previous depth and voxel contents. Redo applies the resize again.

Build a model with Sprite stack

Use Sprite stack when a PNG contains a regular grid of top-view tiles and each tile should become one slice in a voxel model.

Import a PNG sprite stack

  1. Open Sprite stack, choose a PNG sprite sheet and enter the tile width (X), tile depth (Z), grid columns, grid rows and slice count. The grid must fit the PNG exactly. The slice count cannot exceed the number of cells, and each model axis is limited to 256 voxels.
    Sprite stack import controls showing slice dimensions and grid columns and rows.
    Set the slice dimensions and the number of columns and rows in the PNG.
    Open the full-size screenshot
  2. Cells are read left to right, then top to bottom, and Penzlik uses the selected number of cells. Each cell is a top view (X × Z); the cells stack along Y. Choose whether the first slice belongs at the top or bottom of the model.
  3. Choose Preview stack to inspect the volume before applying it. Rotate the preview and adjust the total slice offset to examine the shape; the offset changes the preview only. If the PNG uses a different color profile, review the conversion prompt before allowing conversion.
    Sprite stack preview showing a small model made from four green slices.
    Review the generated stack before applying it to the scene.
    Open the full-size screenshot
  4. Choose Apply to scene and confirm whether to create a voxel model or replace the current one.

Export slices as a PNG sprite sheet

  1. With the model open, choose Export slices as PNG in Sprite stack and set the number of columns per row. Penzlik renders the slices as RGBA tiles. Empty slices keep their positions and unused cells remain transparent.
  2. The PNG flattens visible voxel layers. It does not retain palette indices, material IDs or scene placement, and layer opacity is baked into the pixels. If the project uses Display P3, review the sRGB conversion prompt before exporting.

You can export an optional pixel-studio-sprite-stack v1 JSON manifest with the grid, tile size, slice order and color profile. On import, choose the PNG first and then its matching manifest. This Penzlik metadata helps restore the stack settings; it is not a general sprite-sheet standard.

Save, reopen and share a voxel model

Editable Penzlik project: .pzdoc

In the editor's File menu, choose Save editable drawing (.pzdoc) to download a copy of the project with its 2D artwork and voxel scene. To open it later, go to the app library, choose Import project and select the .pzdoc file.

Voxel exchange: .vox
In 3D model mode, choose Import VOX to load a .vox file or Export VOX to write the current model. Penzlik supports a subset of MagicaVoxel VOX. The importer rejects scene-graph transforms and named layers. VOX files can also contain scene, material and animation data outside this subset, so inspect an imported model and keep a .pzdoc copy when you need to continue editing in Penzlik.
Mesh export: .glb
Choose Export GLB to create mesh geometry from the current voxel scene for use in a 3D tool or game engine. Penzlik exports GLB but does not import it, and a GLB is not an editable project copy. Check the material appearance, scale and scene placement in your target tool. If the project uses Display P3 colors, review the conversion prompt before exporting.

Format references