Thread: modelguy

Results 1 to 6 of 6
  1. #1
    func_vehicle enthusiaist w00tguy123's Avatar
    Join Date
    Dec 2006
    Location
    U.S. West
    Posts
    1,618

    modelguy

    This modifies models without having to decompile them first. This way there's no chance of UV coordinates being shifted. DoomMusic's compiler also fixes UV shifting, but I don't like that NPOT textures have wasted space when compiled. I also wanted to save some time since I had lots of models to process.

    So far it only does two things:

    Code:
    modelguy merge [model.mdl]
    Merges any submodels into model.mdl (modelT.mdl, model01.mdl, model02.mdl, etc.).

    Code:
    modelguy crop [texture_name] [width]x[height] [model.mdl]
    Crops a texture in the model. Useful if you've already used DoomMusic's compiler and you want to save some space by cropping the POT textures to their original size.

    Once the model is compiled you can change the texture size without affecting the UV coords stored in the model because those are stored as pixel offsets, not a percentage of the texture size. HL/HLMV will calculate slightly different UVs but I haven't noticed a difference in the models I tested.

    Thinking on it again, this crop command could be an option in DoomMusic's compiler. Then this tool wouldn't need to exist. Maybe later...

    Download:
    https://github.com/wootguy/modelguy/releases
    Love,
    w00tguy

  2. #2
    warrior spy-warrior's Avatar  
    Contributor
    Join Date
    Nov 2006
    Location
    Europe, France, Paris
    Posts
    2,971

    Re: modelguy

    +1
    Patience is a virtue greatly needed by those who attempt great things.
    La patience est une vertu fort nécessaire à ceux qui tentent de réaliser de grandes choses.

    Server SvenCoop
    I love the mods svencoop
    World time zone & Look clocks

  3. #3
    Registered User GarompaEstomper's Avatar
    Join Date
    Feb 2014
    Posts
    140

    Re: modelguy

    This is great! will you be using it to repack your scmapdb repack? at least the merge part, in bulk. Many models crash servers during maps because they have model01 model02, modelT.mdl, etc..

  4. #4
    func_vehicle enthusiaist w00tguy123's Avatar
    Join Date
    Dec 2006
    Location
    U.S. West
    Posts
    1,618

    Re: modelguy

    I thought about that, but I'm hesitant since there is some info lost after merging animation models. Animation merging can't be undone because the tool doesn't save any info about which animations used to be external (it's possible, but I don't want to waste space either). If sven were ever updated to run on potatoes again then it could help to have the rarely-used animations loaded on-demand.
    Love,
    w00tguy

  5. #5
    deep-space demon Outerbeast's Avatar
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    9

    Re: modelguy

    Fantastic work! I'm off to go on a repacking adventure on scmapdb

    ___________________________________________
    Sven Co-opedia | SCMapDB Profile | Steam Profile

    "All dreams are but another reality.
    Never forget..."

  6. #6
    Administrator Hezus's Avatar  
    Manager
    Join Date
    Aug 2001
    Location
    The Netherlands
    Posts
    9,074

    Re: modelguy

    Very nice job!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •