Skip to content

Allow rendering tech models with destroyed subsystems#7218

Merged
wookieejedi merged 2 commits intoscp-fs2open:masterfrom
MjnMixael:render_tech_model_subsystems
Apr 9, 2026
Merged

Allow rendering tech models with destroyed subsystems#7218
wookieejedi merged 2 commits intoscp-fs2open:masterfrom
MjnMixael:render_tech_model_subsystems

Conversation

@MjnMixael
Copy link
Copy Markdown
Contributor

Pretty much exactly what it says. With this you can pass a table of strings to renderTechModel or renderTechModel2 and if those strings match a subsystem the subsystem will be rendered as destroyed.

This is super useful for models that have variations that go beyond just team colors (already supported) where subsystems/submodels are used to differentiate between versions. Think map UIs. Or even think specialized briefing scenarios where the ship represented by an icon is previously damaged. Now that can be shown during the briefing when the user clicks on that ship in SCPUI.

@wookieejedi wookieejedi added enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting ui A feature or issue specific to the menus portion of the user interface labels Feb 12, 2026
@MjnMixael MjnMixael force-pushed the render_tech_model_subsystems branch 2 times, most recently from 94d086d to 6e66d58 Compare March 16, 2026 03:28
@MjnMixael MjnMixael added this to the Release 26.0 milestone Mar 16, 2026
@MjnMixael MjnMixael force-pushed the render_tech_model_subsystems branch from 6e66d58 to 45d94d7 Compare March 24, 2026 17:36
Comment thread code/model/modelrender.cpp Outdated
Copy link
Copy Markdown
Member

@wookieejedi wookieejedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes incorporated and now looks good

@wookieejedi wookieejedi merged commit 18fd870 into scp-fs2open:master Apr 9, 2026
20 checks passed
@MjnMixael MjnMixael deleted the render_tech_model_subsystems branch April 9, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. scripting A feature or issue related to LUA scripting ui A feature or issue specific to the menus portion of the user interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants