Add M2/WMO 3D viewer with textured rendering, animation, and audio playback

- New tools/m2_viewer.py: Pygame/OpenGL viewer for M2 models (textured
  rendering, skeletal animation, orbit camera) and WMO buildings
- M2 viewer: per-batch texture mapping, CPU vertex skinning, animation
  playback with play/pause/speed controls, wireframe overlay toggle
- WMO viewer: root+group file parsing (MOTX/MOMT/MOVT/MOVI/MONR/MOTV/MOBA),
  per-batch material rendering with BLP textures
- Asset browser: "Open 3D Viewer" buttons for M2 and WMO previews,
  audio Play/Stop buttons using pygame.mixer in subprocess
- Handles both WotLK (v264) and Vanilla (v256) M2 formats
This commit is contained in:
Kelsi 2026-02-23 22:22:39 -08:00
parent edf0a40759
commit 55faacef96
2 changed files with 2579 additions and 13 deletions

2170
tools/m2_viewer.py Normal file

File diff suppressed because it is too large Load diff