Skip to content

Add GLB model import and live preview - #8

Merged
ESTONlA merged 1 commit into
mainfrom
feat/glb-model-support
Oct 10, 2026
Merged

ESTONlA merged 1 commit into
mainfrom
feat/glb-model-support

Conversation

@ifBars

@ifBars ifBars commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

GLB models can now be imported directly for custom products and furniture, embedded into the generated mod, and loaded through S1MAPI. Existing Unity AssetBundle projects keep their saved fields and loading path.

The WPF editor includes an offline WebView2/Three.js preview with orbit, zoom, framing, wireframe, and saved scale/rotation/offset controls. Generated projects resolve the correct Mono or IL2CPP MAPI dependency and provide an actionable missing-dependency error and distribution notes. Import and export validate a conservative static GLB profile compatible with the current loader, including indexed triangles, explicit materials, one scene/buffer, and embedded PNG/JPEG textures.

Validation

  • Release editor build and 32 regression tests passed.
  • Exported a synthetic textured GLB as furniture and a custom product; both Mono and IL2CPP projects compiled (four existing unused-field warnings each).
  • Actual WPF/WebView2 preview rendered the textured model; framing, placement updates, and wireframe were exercised and screenshots inspected.
  • Isolated Mono and IL2CPP game runs exercised both generated model loaders in Menu: cached inactive templates, 24-vertex geometry, embedded texture, active clones, and inspected render captures. The isolated runs used S1API 3.2.0; test processes and isolated installs were cleaned up.
  • Added Windows CI for the editor build and tests; release workflows now install Bun to bundle the local viewer.

Boundaries

This supports static GLB visuals for custom products and furniture. Loaded-save placement, icons, scene reloads, and multiplayer behavior remain unverified. WebView2 Runtime is required only for preview; game-side GLB loading requires the matching MAPI DLL in UserLibs. AssetBundle preview, clothing rigs, animation, and compressed/extended GLB features are outside this change.

No game assemblies, extracted assets, test installs, or binary fixtures are included.

Offline GLB preview with item placement controls

@ifBars ifBars added the enhancement New feature or request label Sep 26, 2026
@ESTONlA
ESTONlA merged commit 6d1cf85 into main Oct 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants