New Listerplugin: mdlviewer (beta) for Half-Life .mdl's
Moderators: Hacker, petermad, Stefan2, white
New Listerplugin: mdlviewer (beta) for Half-Life .mdl's
Hi,
I played around with the TC and Half-Life SDK and managed it to warp the HL-Modelviewer into a TC-Listerplugin. It's not perfect yet, but it supports the basics like move, rotate, zoom your .mdl and skip Animation forward/backward
It works for all models made for the HL-engine, so also for the lot of mod's such as Counter-Strike, Day of Defeat, etc.
Two main issues that I didn't managed to fix:
-) The animation play only while the 'a'-Key is pressed.
-) When multiple mdlviewers open, you can only interact with the last.
You can look at the source, perhaps you get the clou.
Take a look (.jpg, 133k)
wlx_mdlviewer (.zip, 33k)
source (.zip, 25k)
I played around with the TC and Half-Life SDK and managed it to warp the HL-Modelviewer into a TC-Listerplugin. It's not perfect yet, but it supports the basics like move, rotate, zoom your .mdl and skip Animation forward/backward
It works for all models made for the HL-engine, so also for the lot of mod's such as Counter-Strike, Day of Defeat, etc.
Two main issues that I didn't managed to fix:
-) The animation play only while the 'a'-Key is pressed.
-) When multiple mdlviewers open, you can only interact with the last.
You can look at the source, perhaps you get the clou.
Take a look (.jpg, 133k)
wlx_mdlviewer (.zip, 33k)
source (.zip, 25k)
Last edited by Jonas on 2003-10-16, 16:21 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Wow, nice! Can you give us some links where to get sample mdl files, please?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Here are 2 Models (.zip, 660k)
I've discoverd 2 more bugs:
-) Sometime the window stays blank after loding the .mdl But after the first event that requires a repaint, all is normal again
-) Some .mdl-Files are compiled with external textures (in a file called '<modelname>t.mdl') if these could't be loaded, the plugin quits and takes the TC with it!
Perhaps I can fix it during the next few days...
I've discoverd 2 more bugs:
-) Sometime the window stays blank after loding the .mdl But after the first event that requires a repaint, all is normal again
-) Some .mdl-Files are compiled with external textures (in a file called '<modelname>t.mdl') if these could't be loaded, the plugin quits and takes the TC with it!
Perhaps I can fix it during the next few days...
New Version!
Animation is now playing automaticly (it's not nessesary to hold 'a' down any more!).
's' lets the animation freeze and while frozen you can use 'a' to advance 100ms in the currend animation ('A' to rewind).
Also new are different rendermodes. Press 'r' to cyrcle wireframe, flat-, smoothshaded and textured.
Now it's in a quite usable state. But be careful, these bugs are remaining:
-) When multiple mdlviewers open, you can only interact with the last.
-) Some .mdl-Files are compiled with external textures (in a file called '<modelname>t.mdl') if this could't be loaded, the plugin quits and takes the TC with it!
wlx_mdlviewer (.zip, 33k)
source (.zip, 25k)
Animation is now playing automaticly (it's not nessesary to hold 'a' down any more!).
's' lets the animation freeze and while frozen you can use 'a' to advance 100ms in the currend animation ('A' to rewind).
Also new are different rendermodes. Press 'r' to cyrcle wireframe, flat-, smoothshaded and textured.
Now it's in a quite usable state. But be careful, these bugs are remaining:
-) When multiple mdlviewers open, you can only interact with the last.
-) Some .mdl-Files are compiled with external textures (in a file called '<modelname>t.mdl') if this could't be loaded, the plugin quits and takes the TC with it!
wlx_mdlviewer (.zip, 33k)
source (.zip, 25k)
This is the 64bit port of the existing Modelviewer lister plugin.
Download: wlx_mdlviewer.rar (x86/x86-64) (C++ sources included)
Download: wlx_mdlviewer.rar (x86/x86-64) (C++ sources included)
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more