1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Putting what you learned about Animated Textures into action

Discussion in '3D Modeling Tutorials' started by dtnmang, Dec 15, 2015.

  1. dtnmang

    dtnmang

    Joined:
    Apr 20, 2010
    Messages:
    465
    Resources:
    7
    Models:
    3
    Tutorials:
    4
    Resources:
    7
    Tutorial difficulty: ADVANCED

    Tools required:
    - Magos's Model Editor
    - MDLvis
    - Any image editor that supports transparency
    - MDX/L converter and text editor

    For the purpose of this tutorial, I will assume that you have understood how to make animated textures from the Animated Textures Tutorial, and is also able to navigate through Magos's Model Editor, as well as MDLvis's functions.

    The example I will make today is a Faceless One who has harnessed the power of water, and as a result his limbs are made of flowing water...
    Image
    [​IMG]
    At this point you've probably thought this could be easily done by putting an animated water texture layer below the Faceless One's body texture layer. Well, not so fast. Although this will work flawlessly in the Model Editor, WC3's engine limitations make the FO's body texture also animate in-game which is not what we want. That's why we will have to do this the ghetto way.
    Explanation
    In WC3, for a texture to animate it needs to be the first rendered layer of a material.
    However, animating the first rendered layer will also move all layers above it in the material.

    Step 1:
    - Extract the Faceless One model & texture using Model Editor's MPQ browser.
    Path
    Units\Creeps\FacelessOne\
    - Edit the extracted texture, make the areas of the FO's limbs transparent. Since we need his limbs animate after all.
    Something like this
    [​IMG]

    Convert it back to .blp afterwards

    Step 2:
    - Open the Faceless One's model in MDLvis. Select the vertices for the Faceless One's limbs.
    - Copy and paste the vertices. Move the duplicated vertices back to the correct position of the original vertices.
    If you haven't known this...
    You can move the duplicated vertices to the EXACT correct position by raising their Z-axis coordinate by 5 units. This is because MDLvis always creates duplication of a vertex 5 units (on Z axis) below it.
    - With the duplicated vertices still selected, click "Reverse normals" (-1 icon). Then click "Detach as new geoset". NOTE: You need to do in this exact order.
    - Save the model.

    Step 3: NOTE: This can be done with MDX/L converter and text editor optionally.
    - Open the edited FO model in Magos's Model Editor. Import (or create) a water texture with the Texture Manager.
    I use Textures\Lords0000.blp because it's the texture for Water Elemental. You will also need to open this water texture's properties and tick on "Wrap Width" and "Wrap Height".
    - Create a new material with the water texture. Use the Material Manager and Geoset manager to find the limbs geoset and align it to the water material.

    Step 4:
    - It's time to animate the material. Follow the Animated Textures Tutorial to make the water flow.
    Final result
    [​IMG]


    TL; DR?
    Animate a texture on a completely new material with what is basically the geoset with reversed normals.
     

    Attached Files:

  2. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,426
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Thanks a ton for making this. I've been inactive, so sorry for letting this sit for so so long. I'm going to add this as a link in the animated textures tutorial, and approve it.