Skip to content

Add Model Viewer - #2903

Merged
daid merged 8 commits into
daid:masterfrom
kzsh:model-viewer
Aug 8, 2026
Merged

Add Model Viewer #2903
daid merged 8 commits into
daid:masterfrom
kzsh:model-viewer

Conversation

@kzsh

@kzsh kzsh commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Model viewer changes:

  • Adds GuiRotatingModelDebugView, a debug-only panel over the rotating
    model view with light azimuth and elevation sliders and a
    light-position marker.
  • Adds a model preview to the GM object creation list and always shows
    the base model viewer on the GM screen; the model debug view is
    reachable from the home screen in debug builds.
  • debug viewer model area is taller so the debug controls don't
    crowd the model.
  • Mouse-wheel zoom is now multiplicative at 10% per notch instead of a
    flat 0.5 step.
  • Included code for a normal-map toggle, but disabled until a pending PR with normal maps lands.

Notes:

  • If there are performance or clutter concerns with rendering a model on the GM screen, we could add an options.ini toggle to enable/disable it, or remove it entirely.
  • The render pipeline for the GuiRotatingModelDebugView performs a lot of rendering logic parts of which match other rendering pipelines in the code. Might be nice to de-duplicate it at some point, but because of the conditional rendering of various shaders, and the experimental nature of the debug model viewer, it felt ok to keep it as separate code. I'm open to alterations.

Screen caps

start screen

2026-08-07T221323

Model debug view

2026-08-07T221332

Gm Screen

2026-08-07T231459 screenrec-20260807-224734

@daid
daid merged commit 178fde4 into daid:master Aug 8, 2026
5 checks passed
@kzsh
kzsh deleted the model-viewer branch August 8, 2026 14:20
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.

2 participants