Author Topic: Animated Map Textures??? help  (Read 667 times)

Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
Animated Map Textures??? help
« on: March 28, 2018, 03:52:58 am »
This happened a long time ago, i received a map from someone, and I'm just remembering they had "Animated Map Textures" Typically a lava crack texture where the light of the lava was scrolling in between the cracks... I wanted to ask them how they did it, but i forgot to do that. And now I'm at a stump to where i want to add the Animated Map Texture to one of my maps (Since I'm updating my giant map set)

 Any clues? please help <3

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Animated Map Textures??? help
« Reply #1 on: March 28, 2018, 05:06:42 pm »
This is the scrolling code used in presets. When making a material file to texture an object, you can do the same things you can do to preset code.
Code: [Select]
material ScrollingLavaMat
{
        technique
                {
                pass
                {
                         cull_hardware none
                         cull_software none
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         texture_unit
                         {
                               texture ScrollingLava.jpg
                               tex_address_mode mirror
                               scroll_anim 0.0 0.01
                         }
                }
                pass
                {
                         cull_hardware none
                         cull_software none
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 texture CrackedLava.png
                                 tex_address_mode wrap
                         }

                }
    }
}
I don't know how to animate a ground texture if that's what you're looking for.

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
Re: Animated Map Textures??? help
« Reply #2 on: March 28, 2018, 06:50:02 pm »
This is the scrolling code used in presets. When making a material file to texture an object, you can do the same things you can do to preset code.
Code: [Select]
material ScrollingLavaMat
{
        technique
                {
                pass
                {
                         cull_hardware none
                         cull_software none
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         texture_unit
                         {
                               texture ScrollingLava.jpg
                               tex_address_mode mirror
                               scroll_anim 0.0 0.01
                         }
                }
                pass
                {
                         cull_hardware none
                         cull_software none
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 texture CrackedLava.png
                                 tex_address_mode wrap
                         }

                }
    }
}
I don't know how to animate a ground texture if that's what you're looking for.

IK the one for preset, hmm but to implement that code into a material file for a ground texture ;;