Skip to content

About

A native macOS 3D viewer with intuitive sculpting tools. Open, inspect, rotate, and refine your models with a smooth Metal-powered interface designed specifically for Apple hardware.

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Repository files navigation

SculptView logo

SculptView

A native macOS 3D viewer with intuitive sculpting tools.

Open, inspect, organize, and refine 3D models through a smooth, high-performance Metal interface — built with Swift, SwiftUI, and Metal, designed for Apple Silicon.


Showcase

▶  Watch the demo video — import, scene management, and sculpting in action.

Welcome & recent projects Scene outliner & inspector
Welcome window with New Project, Open, Import Model, and crash recovery A multi-mesh character in the viewport with the outliner and scene statistics

Sculpt mode — twelve brushes, live falloff preview, symmetry, and the Normals render mode


Features

  • High-performance Metal viewport — orbit / pan / zoom with trackpad, mouse, or keyboard; perspective & orthographic; grid, axes, selection outlines, and a floating orientation widget.
  • Render modes — Solid, Wireframe, Solid + Wireframe, Material Preview, Normals, procedural Matcap, and Bounding Box, with studio lighting presets.
  • Import — OBJ and STL (pure-Swift, fast) plus USD / USDA / USDC / USDZ / PLY via Model I/O. Drag-and-drop or File ▸ Import.
  • Export — OBJ and STL, with baked transforms and a reveal-in-Finder step.
  • Professional sculpting — twelve brushes (Draw, Clay, Layer, Crease, Smooth, Inflate, Flatten, Scrape, Pinch, Grab, Snake Hook, Nudge) with six falloff curves and a live curve preview, per-brush settings memory, and named brush presets. Strokes get distance-based dab spacing with interpolation, lazy-mouse stabilization, and an auto-smooth pass; tablet / Force Touch pressure can drive strength and radius. Front-face masking, X/Y/Z symmetry, Shift-to-smooth, Option-to-invert, a live on-surface brush cursor, single-undo strokes, and a spatially accelerated raycast round it out.
  • Scene management — hierarchical outliner with groups, multi-select, visibility/lock, rename, duplicate, and reorder; ray-based click selection.
  • Primitives — Cube, Sphere, Icosphere, Plane, Cylinder, Cone, Torus at Low / Medium / High resolution, plus dense sculpt-ready base meshes (Sculpt Sphere and Head Base, up to ~82k evenly-sized triangles) so you can sculpt a face straight away.
  • Mesh utilities — recalculate / flip normals, subdivide, weld, center, validate — all undoable.
  • Materials — simplified PBR (base color, metallic, roughness, opacity, emission) that drives the Solid / Material Preview shading.
  • Projects — a versioned .sculptview document format with save / open / save-as / revert, autosave, crash recovery, recent projects, and saved camera views.
  • Metadata — file / scene / object / mesh metadata plus editable document fields (title, author, tags, notes…).
  • Unified undo/redo — across sculpt strokes, mesh operations, transforms, and structural scene edits (delete / duplicate / group / rename / …).
  • Command palette (⌘⇧P), a VS Code-style activity bar, in-app feedback toasts, a Help window, and a full Settings window.
  • Accessible & native — Reduce Transparency / Reduce Motion aware glass, VoiceOver labels, native menus and keyboard shortcuts, light & dark mode.

Requirements

  • macOS 14 or later (Apple Silicon recommended)
  • Swift 6 toolchain
  • Full Xcode to run the app with a window, run the test suite, and use SwiftUI previews. (Command Line Tools alone can compile the libraries but not the XCTest target.)

Getting started

Run in Xcode (fastest)

Open Package.swift in Xcode, select the SculptView scheme, and press Run.

# or from the command line:
swift build
swift run SculptView
swift test        # requires full Xcode

Build a signed, sandboxed .app

A real macOS app target is defined in project.yml (XcodeGen):

brew install xcodegen              # one-time
./Scripts/generate-xcodeproj.sh    # → SculptView.xcodeproj
open SculptView.xcodeproj           # pick the SculptView scheme, set a team, Run

The generated SculptView.xcodeproj is git-ignored — project.yml is the source of truth. This target also hosts the SculptViewUITests bundle.

A typical first workflow

  1. Import a model (File ▸ Import Model, ⌘I, or drag a file in) — or start from a dense base mesh (Object ▸ Add Primitive ▸ Sculpt Sphere / Head Base).
  2. Navigate — two-finger drag to orbit, Shift + two-finger to pan, pinch to zoom; press F to frame the selection.
  3. Sculpt — press Tab, pick a brush, and click-drag on the model (Shift = smooth, Option = invert, [ / ] = brush size, X = symmetry).
  4. Save (⌘S) a .sculptview project, or Export to OBJ / STL.
  5. Press ⌘⇧P for the command palette; press ⌘? for Help.

Architecture

SculptView is a Swift Package so the module boundaries are enforced by the build graph. The render engine is kept free of SwiftUI, and UI-free logic lives in SculptViewCore (which is what the test suite targets).

Package.swift                 Package manifest & module graph
project.yml                   XcodeGen spec for the signed .app + UI-test target
Sources/
  SculptViewApp/              SwiftUI app shell
    App/                      AppEnvironment, command catalog, services
    Workspace/                Five-region layout, viewport, status bar
    Sidebar/ Inspector/       Multipurpose sidebar + contextual inspector
    Toolbar/ Menus/           Native toolbar + menu bar (route via the registry)
    Welcome/ Settings/ Help/  Welcome, Settings, and Help windows
  SculptViewCore/             Shared, UI-free logic (unit-tested)
    Models/                   Project, SceneGraph, SceneObject, Mesh/Material
    App/                      AppState, EditHistory, FeedbackCenter, settings
    Commands/                 CommandRegistry, ShortcutSpec, CommandID
    Rendering/                Camera, matrices, geometry, mesh utilities, picking
    Sculpt/                   Brushes, sculpt session, spatial + triangle grids
    Import/ Export/           OBJ/STL/Model I/O importers, OBJ/STL exporters
    Persistence/              .sculptview archive, mesh blobs, migration
    Metadata/                 Metadata service and document fields
    Protocols/                Importer, Exporter, Brush, ViewportTool, providers…
  SculptViewRender/           Metal engine (renderer, shaders, MTKView) — no SwiftUI
  SculptViewDiagnostics/      os.Logger wrapper (per-module categories)
Tests/
  SculptViewCoreTests/        Unit, integration & performance tests (XCTest)
  SculptViewUITests/          XCUITest bundle (via the Xcode app target)
AppResources/                 Info.plist, entitlements, Assets.xcassets
docs/                         Screenshots and demo video for this README

Bundle identifier: com.sculptview.app · Version 0.1.0.

Testing

The SculptViewCore test suite covers serialization, metadata, transforms, camera math, brush settings, command registration, importer/exporter selection, undo, migration, the full import → save → reopen → export workflow, spatial-grid raycast parity, hierarchy correctness, and performance baselines.

swift test    # runs the whole suite (requires full Xcode)

Optional linting via SwiftLint (.swiftlint.yml): brew install swiftlint && swiftlint.

Status & roadmap

All core functionality for v1 is implemented — viewer, import/export, sculpting, project files, materials, metadata, undo/redo, command palette, and polish — plus a hardening pass (per-mesh GPU cache invalidation, group-hierarchy correctness, non-blocking saves, and an accelerated sculpt raycast).

Not yet implemented / future work:

  • On-canvas transform gizmos (move/rotate/scale handles) and snapping.
  • glTF / DAE import; USD/Model I/O export.
  • Dynamic topology, voxel remesh, multiresolution sculpting.
  • Masking brushes and texture painting.
  • On-demand viewport redraw for battery/energy savings; instanced draw path.
  • Keyboard-shortcut reassignment UI; a public plugin system.

License

See LICENSE.

About

A native macOS 3D viewer with intuitive sculpting tools. Open, inspect, rotate, and refine your models with a smooth Metal-powered interface designed specifically for Apple hardware.

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages