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: Stefan2, white, sheep, Hacker

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 » 2003-08-28, 15:33 UTC

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: 36544
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2003-08-29, 13:09 UTC

Wow, nice! Can you give us some links where to get sample mdl files, please?
Author of Total Commander
http://www.ghisler.com

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

Post by *Jonas » 2003-08-29, 16:31 UTC

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: 79
Joined: 2003-08-24, 17:16 UTC
Location: Georgia

Post by *Strogg » 2003-08-31, 17:52 UTC

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 » 2003-08-31, 18:00 UTC

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 » 2003-09-08, 20:06 UTC

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: 1197
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu » 2012-06-19, 10:03 UTC

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 Preview, Autodesk Revit Preview, Blat Mailer, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

User avatar
deus-ex
Power Member
Power Member
Posts: 723
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex » 2012-06-19, 14:07 UTC

Thank you! :D

Post Reply