Skip to content

[WIP] [Model] Add "load model from code" feature#3

Open
w0wca7a wants to merge 8 commits intofeaturesfrom
ModelImporterFeature
Open

[WIP] [Model] Add "load model from code" feature#3
w0wca7a wants to merge 8 commits intofeaturesfrom
ModelImporterFeature

Conversation

@w0wca7a
Copy link
Copy Markdown
Owner

@w0wca7a w0wca7a commented Apr 4, 2026

PR Details

Enables loading 3D models (FBX, GLTF, OBJ, etc.) at runtime directly from code using MeshConverter, without requiring asset compilation or ContentManager.

Usage example:

using Stride.Core.Mathematics;
using Stride.Engine;
using Stride.Importer.ThreeD;

public class FileImporter : StartupScript
{
    public override void Start()
    {
        base.Start();
        if (Entity.Scene == null) return;

        string InputFile = "D:\\model.fbx";
        var model = ModelBuilder.CreateFromFile(GraphicsDevice, InputFile);
        var modelComponent = new ModelComponent(model);
        var importedEntity = new Entity("Imported", position: new Vector3(0, 1, 0)) { modelComponent };
        Entity.Scene.Entities.Add(importedEntity);
    }
}

Related Issue

N/A

Importan NOTE

At this time model can not be unload and load again #2101
Post-effects in graphics compositor also not working now and causes exceptions.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

Add model loading from code
@w0wca7a w0wca7a changed the title Update MeshConverter.cs [Model] Add runtime model loading Apr 4, 2026
@w0wca7a w0wca7a changed the title [Model] Add runtime model loading [Model] Add "load model from code" feature Apr 8, 2026
@w0wca7a w0wca7a changed the title [Model] Add "load model from code" feature [WP] [Model] Add "load model from code" feature Apr 8, 2026
@w0wca7a w0wca7a changed the title [WP] [Model] Add "load model from code" feature [WIP] [Model] Add "load model from code" feature Apr 8, 2026
w0wca7a pushed a commit that referenced this pull request Apr 20, 2026
- Gap stride3d#11: Localization satellite assemblies (Gettext, 8 languages)
- Gap stride3d#12: Auto-pack/deploy (guarded by StridePackageBuild to avoid
  pack failures during standalone builds)
- Gap stride3d#13: StrideCompilerTargetsEnable + DisableBuild empty targets
- Gap stride3d#15: StridePlatformFullName build dir extension suffix
- Gap stride3d#16: _StrideTriggerPackOnInnerBuild for CLI pack ordering
- Gap stride3d#17: SharedAssemblyInfo.NuGet.cs replacement for package builds

Only Gap stride3d#18 (UWP) remains intentionally deferred. Critical gaps #1
(inner build dispatch) and #3 (.ssdeps) still open for Phase 8.2.
w0wca7a pushed a commit that referenced this pull request Apr 20, 2026
Add Stride.Dependencies.targets with full port of the native dependency
management system from Stride.Core.PostSettings.Dependencies.targets.
Handles reading/writing .ssdeps manifests, copying native libs and content
to output, and NuGet package inclusion with platform-specific handling
(desktop, Android, iOS).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant