275c1a9976
Overhaul race and lod combos in mdlviewer
...
The number of lods are now properly loaded from the model data, and race
is checked by checking for the existence of race-specific models (I
think this is the current best way?).
Also, magic_enum is added as a dependency for some enum magic involving
enumerating Race.
2022-04-17 20:02:06 -04:00
7ec107dfd8
Add level of detail selection in mdlviewer
2022-04-14 10:32:41 -04:00
de2b6f6307
Add export button and support for exporting all mesh parts
2022-04-12 20:18:22 -04:00
bef13de12f
Support mdlviewer on macOS
...
Qt5 for macOS can actually use the same code as on Linux/Win, but
apparently no one wants to build it with Vulkan support. Instead, we
spawn a standalone SDL2 window.
2022-04-12 16:19:06 -04:00
98edd9e57d
Add gear list to mdlviewer
...
It doesn't (yet) grab gear information automatically, but
you can select between smallclothes body/legs now, and it
works.
2022-04-12 12:19:46 -04:00
d168592db9
Remove the hideous red and green colors in the mdlviewer viewport
2022-04-12 09:55:48 -04:00
93c6bf726a
Fixup vertex normals
2022-04-12 09:47:36 -04:00
0b01715824
Use mdl normals to display some lighting
2022-04-12 09:11:31 -04:00
a2688ca2dc
Load all parts in render model
2022-04-12 08:55:38 -04:00
4123dc3f3f
Fix camera
2022-04-12 08:49:43 -04:00
eb13fbbb64
Properly set camera so model is visible
...
There's still a long way to go, but now it finally works :-)
2022-04-12 02:06:16 -04:00
92c52e358a
Properly render out model
...
Right now it doesn't actually display anything, because we
don't have any camera.
2022-04-12 01:57:37 -04:00
338c485018
Load vertex data and load shaders from disk
2022-04-12 00:54:11 -04:00
fd9ce7c361
Properly handle window resize events in mdlview renderer
2022-04-12 00:30:17 -04:00
7aadf086de
Add basic vulkan renderer to mdlviewer
...
Right now it just displays a red screen
2022-04-11 23:11:33 -04:00