Repository navigation
Add GLB model import and live preview - #8
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.