Results 1 to 14 of 14

Thread: Utility for writing UV map templates in dds format

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    KnightErrant's Avatar Decanus
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    578

    Default Utility for writing UV map templates in dds format

    There's a Python utility for reading the uv maps out of a Milkshape .ms3d
    file and writing two .dds files, one for the Figure maps and one for the
    Attachment maps. It can be downloaded from here:

    http://www.twcenter.net/forums/downl...o=file&id=1888

    After unzipping the file WriteUVMaps2DDS.py, you can run it by
    double-clicking on it in Explorer. It will display a FileChooser from which
    you can double-click on a .ms3d file. The output files are large so it
    takes roughly 30 seconds to run. As an example, suppose you
    double-clicked on armored_sergeants_lod0.ms3d. It will produce
    two .dds files named
    armored_sergeants_lod0_figure.dds
    armored_sergeants_lod0_attachments.dds

    A screenshot of the figure maps is:



    and a slightly zoomed screenshot of the attachments maps is:



    Note that this is the uncompressed format A8R8G8B8 and not the
    compressed dxt5 format. The files can be opened in Photoshop and
    renamed and resaved in the dxt5 format by using save as.
    This takes you to the NVIDIA dds Format dialog where you can select
    dxt5 from the combobox.

    Hopefully this will simplify making uv map templates.

  2. #2
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Utility for writing UV map templates in dds format

    KE, so good to see you still coding away at things. Could you explain what this program does, I thought with converting to Max people's UWV problems were resolved...


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  3. #3
    KnightErrant's Avatar Decanus
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    578

    Default Re: Utility for writing UV map templates in dds format

    Hi SigniferOne,

    Well this started with Max. I couldn't find a good way of getting out the uv
    map templates that Alletun talked about in the Tome. You can export
    the map for a mesh from Max but I couldn't find any tuts on the web for
    exporting every uv map for every mesh in a scene. So the first stab at it
    was a Max Script to write them to a .txt file and then a Python script to
    take that to the .dds format. Then it dawned on me that since the .ms3d
    format is the ultimate goal no matter what you use, Max, Gmax, Milkshape,
    Blender, I might as well just pull the maps from that format and make the
    templates. It was actually EB that suggested this, automate making the
    templates so modellers don't have to put all those screen shots together
    by hand before handing the templates off to their artists to start making
    their textures. I haven't learned Photoshop but from the Tome I gather
    you put the template in one layer and then paint underneath them in
    another layer for alignment.

  4. #4
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Utility for writing UV map templates in dds format

    So this is a way to mass-produce textures, I imagine? Because we've never had to deal with Photoshop-painting over templates in PItalica, we just made them according to each model (in Max).

    Have you taken a look at the path-finding thread? I'm so happy things are developing for MTW2


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  5. #5
    kaiser1993's Avatar Senator
    Join Date
    Jul 2009
    Location
    West Yorkshire
    Posts
    1,191

    Default Re: Utility for writing UV map templates in dds format

    cheers, this tool is extremely useful for a novice

  6. #6

    Default Re: Utility for writing UV map templates in dds format

    Why did this have this low amount of attention ? Looks pretty usefull (as far as I can understand )

  7. #7

    Default Re: Utility for writing UV map templates in dds format

    @Killerbee
    It doesn't and is very handy and extremely useful atleast for me but various other modders out there also use it as well i'm sure of it.

  8. #8
    Kahvipannu's Avatar Bring me Solo & wookie
    Join Date
    May 2009
    Location
    Finland
    Posts
    3,671

    Default Re: Utility for writing UV map templates in dds format

    Big thanks for this. Really easy to use and works like a charm.
    +1

  9. #9

    Default Re: Utility for writing UV map templates in dds format

    For some reason this doesn't work for me I double click, select and double click the ms3d file, then a black screen comes up, some lines of letters pop up and the black screen disappears but no UV maps come up.... Please help!




  10. #10

    Default Re: Utility for writing UV map templates in dds format

    Quote Originally Posted by Master Necromancer View Post
    For some reason this doesn't work for me I double click, select and double click the ms3d file, then a black screen comes up, some lines of letters pop up and the black screen disappears but no UV maps come up.... Please help!
    That some reason would be that u are using a Python version higher than 2.6.
    These scripts are based on v2.5, v2.6 only and install the 32-bit version only 64 bit also doesn't works.

    Good Luck !

  11. #11
    Louis Lux's Avatar Into the Light
    Patrician

    Join Date
    Aug 2008
    Location
    London
    Posts
    4,701

    Default Re: Utility for writing UV map templates in dds format

    Quote Originally Posted by Master Necromancer View Post
    For some reason this doesn't work for me I double click, select and double click the ms3d file, then a black screen comes up, some lines of letters pop up and the black screen disappears but no UV maps come up.... Please help!
    This happened to me sometimes, the reason was that some groups were not asigned to a material.

  12. #12

    Default Re: Utility for writing UV map templates in dds format

    Quote Originally Posted by Louis Lux View Post
    This happened to me sometimes, the reason was that some groups were not asigned to a material.
    Thanks! That was it. +rep




  13. #13
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: Utility for writing UV map templates in dds format

    Hello!
    I am trying to make a UV mapping of an unit, but I've got this error:

    IndexError: list assignment index out of range

    What does it mean and how could I solve it?
    Thank you!

  14. #14

    Default Re: Utility for writing UV map templates in dds format

    Check the UV mapping of it seems some of it might be out of the canvas.

Posting Permissions

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