Skip to content

Add a reusable model class#1436

Merged
chreden merged 7 commits intomasterfrom
issue/1435-model
May 31, 2025
Merged

Add a reusable model class#1436
chreden merged 7 commits intomasterfrom
issue/1435-model

Conversation

@chreden
Copy link
Owner

@chreden chreden commented May 30, 2025

Move the 'model' (collection of meshes) logic out of the Item class and into the new Model class. Stored in ModelStorage the Item, they are all generated on level load and requested by Item.

This can be used next for the model viewer.

Also when doing this a lot of the references to ITextureStorage/ILevelTextureStorage have been removed as it can be provided directly to the mesh on creation via the mesh source.

Related to #1435

@chreden chreden added this to the Next milestone May 30, 2025
@chreden chreden requested review from lahm86 and makotocchi May 30, 2025 20:32
@chreden chreden self-assigned this May 30, 2025
chreden added 5 commits May 30, 2025 21:32
Don't calculate BB if there's no meshes
If num meshes is giant, don't do anything
These seem like hacks
@chreden chreden merged commit 1a6dcd0 into master May 31, 2025
1 check passed
@chreden chreden deleted the issue/1435-model branch May 31, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants