Sign up - or - Login

Recover password

To recover your password, you must enter the username or e-mail that you used during the registration. After that, a mail with a security code will be sent to your inbox.

Your username or e-mail :

Draw me a WorldDraw me a World

A journey through the strange and abstract worlds of the games made by my friend Max....


First Person Shooter...

Stat overall size ( ALL )

Компилятор моделей

  • Description
  • Screenshots

DoomMusic's StudioMDL V1.02

Компилятор моделей

Views : 113 ( +1 )
Downloads : 3
Uploader : Cep}|{
Created : 01/08/2024 4:54:56 PM
Rating :
 ( 3 ) 
Share :

Following translations are available : | russian |

Цитата с форума Sven Co-op

I've created a fixed version of the studiomdl compiler that's meant to fix the texture coordinate shifting
issue that's been present since time in memoriam. Keep in mind though, that you should keep your texture
resolutions at 512 maximum, as otherwise it will fail. You can override this with the -o command, if you're
using Xash or anything else that supports larger textures.

Part of the fix is that now textures are not resized, but put onto a larger canvas with a power of 2 resolution
closest to the original texture's resolution, but never lower. So if you have a texture with a res of 513x512,
it will be resized to 1024x512. For this reason, it's best to resize it to 512x512 in a program like IrfanView.
The reason this isn't done by studiomdl is that resizing 8-bit bmps without a proper algorithm, like the one in
IrfanView, will lead to artifacts in the texture. This artifact bug was present also in the original studiomdl.

To showcase the changes, this is what the original texture looked like:
And this is what the compiler will put in the model:

This studiomdl should work with any GUI compiler. Also keep in mind that in any models where you applied the
shift, you will have to re-adjust the UV coords to their intended locations.



- This version fixes the issue with bones that only have attachments being removed and causing compile errors.
Now, if your bone has no vertexes, but it still has attachments, it will not be optimized out.
- I've removed texture coord cropping in the 0-1 range, so your texture coords can be freely set as you wish.
- Currently the largest supported texture resolution for Half-Life is 512 in each dimension. If it's larger than
this, HL will resize it back to 512 pixels, and it might even crash.
This can be overriden by setting the -o parameter, which is useful if you are running in an environment that
supports textures larger than 512 pixels, like Xash and so.
- $cliptotextures doesn't do anything anymore.
- It supports Sven Coop's fullbright texture flag.


- Added alpha, nomips, flatshade and chrome support for $texrendermode.
- Added the -b parameter to specify a stretch-out border when padding textures
that are not power of 2. Normally this has a value of 1. It should get rid of
any artifacts with texcoords at the edges of textures.


- An issue was fixed when loading in textures that are not multiples of 4 in width. The cause of this issue
was that internally BMP stores them with the width as a multiple of 4, but studiomdl does not account for
that when setting the bmp's width for itself.


- Added the $protected qc command. This lets you specify bones which cannot
be optimized out by the compiler even if they're not used by any vertices.
$protected "Bip01 Head"

mportant notice:

Altough this tool removes UV capping outside the 0-1 range, you still neeed to make sure you use power of 2 
textures if you have UV coords outside of the 0-1 range, as the padding feature will mess that up.
In general you should never use non-power of 2 textures, since Half-Life already resizes everything to power 
of 2 when loading models, which will cause loss of quality in the process.

1. ( 135.9 Kb )
2. ( 147 Kb )
Similar1. Half-Life MDL Decompiler 1.2 - Декомпилятор моделей
2. Smdlimp.dli - С помощью этого файла вы сможете в 3D Max'е v6 и 7 импортировать вашу модель из *.smd файла.
3. Studiomdl.exe - Компилятор для модели.
4. 3DS Max SMD Importer plug-in v1.1 - Позволяет импортировать SMD файлы
5. FunnkyHD StudioMDL - Компилятор моделей
DoomMusic's StudioMDL V1.02 DoomMusic's StudioMDL V1.02 DoomMusic's StudioMDL V1.02
You cannot comment, because you are not logged-in.
    DSA58 OSW V2 [Chicago Typewriter]
    Resident Evil 4DSA58 OSW V2 [Chicago Typewriter]
    Evil Berry Samurai Edge V2 [Blacktail]
    Resident Evil 4Evil Berry Samurai Edge V2 [Blacktail]
    LaRue OBR 7.62 [Rifle Semi-Auto]
    Resident Evil 4LaRue OBR 7.62 [Rifle Semi-Auto]
    SR-25 Sniper Rifle [Rifle Semi-Altomático]
    Resident Evil 4SR-25 Sniper Rifle [Rifle Semi-Altomático]