This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL] Adding an Animated Texture Layer  (Read 5342 times)

Tigurius

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 126
    • View Profile
[TUTORIAL] Adding an Animated Texture Layer
« on: September 29, 2010, 12:57:50 am »
In this tutorial I will show you how to add animated textures to a model.
Animated textures can eg be found on the clouds in character selection screen or is used for the floating "lava" effect on Goshujinsamas Dark Matter Blade.
Here I show, how I added the effect to the Dark Matter Blade (it's also the Test.m2 which is distributed with PyModelEditor)
I'm adding the effect via PyModelEditor, but this can be also done via hexediting :P

So first to the Interface of PyModelEditor:

The "Open File" Button is used to open a *.m2 file.
The Buttons where the big red arrow points to, are used to open the different editors.

So now we've opened the Dark Matter Blade in the Editor and the first thing we need, is to know, to which geoset we want to add the effect. Therefore we open the geoset editor and check which geoset is the blade.

-> Geoset Number 1 (the numeration of the geoset is 0,1,2...)

Now we need to add the Texture we want to animate on the blade to the model:

Hardcoded is used for textures that can't be changed via DBC or ingame via Cloth change.
(the x and y-wrap is used to make the animation fluent)


As we want the texture animation continual, and not for each animation a different one, we add a Global Sequence to the model



At this point, we implement how the texture animates:

We use the translation for the flow of the lava.
In the first comboBox is no entry, so we need to add an AnimSub.
As interpolation type we choose "Linear Interpolation".
The fourth comboBox is for the GlobalSequence.
The format of the AnimEditor is:
"Timestamp":"Value"


To define how the animated texture layer is blended on the primer, we add a new renderflag:




Now we have everything prepared, so we can add finally the texture layer:

You need to set the "animated flag", choose the correct submesh, texture, uv animation and renderflag.


So now you've got an animated texture in your model.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Eluo

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 509
    • View Profile
Re: [TUTORIAL] Adding an Animated Texture Layer
« Reply #1 on: October 01, 2010, 05:40:15 pm »
Yay thanks for that!
I really have to get used with that tool it sure can do amazing stuff....
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
One is a genius, the other\'s insane!

gorq

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 141
    • View Profile
Re: [TUTORIAL] Adding an Animated Texture Layer
« Reply #2 on: October 03, 2010, 02:24:20 pm »
have to try ^^ thx!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Elinora

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 187
    • View Profile
Re: [TUTORIAL] Adding an Animated Texture Layer
« Reply #3 on: May 24, 2012, 07:22:19 am »
I love it :i
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Currently studying Game Design at Copenhagen University. I also have a big project going on, sadly I have no portfolio of it (yet).