New Listerplugin: mdlviewer (beta) for Half-Life .mdl's

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

New Listerplugin: mdlviewer (beta) for Half-Life .mdl's

Post by *Jonas »

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)
Last edited by Jonas on 2003-10-16, 16:21 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Wow, nice! Can you give us some links where to get sample mdl files, please?
Author of Total Commander
https://www.ghisler.com
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

Post by *Jonas »

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...
User avatar
Strogg
Junior Member
Junior Member
Posts: 89
Joined: 2003-08-24, 17:16 UTC
Location: Georgia

Post by *Strogg »

Cool!
It is a great gift to all CS - Half-life fans! Thanks a lot!

It would be great if you add an possibility to save viewed textures as an *.bmp or *.jpg graphical files!
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

Post by *Jonas »

I'll try to add all the features of the HLMV (by Mete, the Milkshape3D-author) which I've extendet a bit.
a Pic
Download
But this will take a while.....
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

Post by *Jonas »

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)
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

This is the 64bit port of the existing Modelviewer lister plugin.

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
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex »

Thank you! :D
Post Reply