Author Topic: Presets: How to make a scrolling mane without a glitch?  (Read 1555 times)

Offline Windstrider

  • Familiar Grounds Dweller
  • **
  • Posts: 74
  • Country: us
  • Floof-O-Meter: 6
  • Soon-to-be college student!
    • Windstrider2017
    • windstrider2017@gmail.com
    • Windstrider2017
    • View Profile
Presets: How to make a scrolling mane without a glitch?
« on: June 13, 2018, 12:00:32 am »
So there's the mane fix code, and there's the fact that you have to use the fmanemask file and lock the alpha channel and color it in one layer and save that as a png, but for a scrolling texture, how does this work? The only reason I didn't do that is because the last time I tried to do a scrolling texture with a 'normal' mane (the way you make a non-fluffy mane for every other kind of preset), it scrolled the transparent parts as well, and it looked weird. It might be kinda hard to get what I'm saying since I might be doing a bad job wording this, so here's some pics.


The parts where this is transparent did this weird thing b/c they scrolled with the part that's black (or in other cases, a color besides black).



-----

When I used this for a preset I'm working on (its mane is supposed to scroll this texture),



the scrolling code and the picture work perfectly fine, except for these weird square things that aren't supposed to be there.


Lucius

  • Guest
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #1 on: June 13, 2018, 12:06:38 am »
Use this code:

Code: [Select]
material preset_1_maneMat
 {
    technique
    {
       pass
       {
 scene_blend alpha_blend
        alpha_rejection greater 128
          texture_unit
          {
            texture preset_1mane (this is the all black mane mask).png
          }
          texture_unit
          {
            texture preset_1mane (this is the all black mane mask).png           
             colour_op alpha_blend
          }
          texture_unit
          {
        texture SCROLLING TEXTURE.jpg
        colour_op_ex blend_current_alpha src_texture src_current
 tex_address_mode wrap
 filtering trilinear
 scroll_anim 0.0 0.1
          }
       }
    }
 }

Here is the mane mask that goes along with it
« Last Edit: July 19, 2020, 10:06:40 pm by Lucius »

Offline Windstrider

  • Familiar Grounds Dweller
  • **
  • Posts: 74
  • Country: us
  • Floof-O-Meter: 6
  • Soon-to-be college student!
    • Windstrider2017
    • windstrider2017@gmail.com
    • Windstrider2017
    • View Profile
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #2 on: June 13, 2018, 12:39:55 am »
Ok, thanks! I'll go try these.

Offline Tigg

  • Immortal Legend
  • *****
  • Posts: I am a geek!!
  • Country: at
  • Floof-O-Meter: 0
  • Your right hand on 3D-Meshes
    • t-i-g-g
    • channel/UCKuFJTwBJf94Tq07oVBNMrA
    • 76561198118876593
    • TiggDarkfury
    • View Profile
    • Isla Thanatos Gameserver
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #3 on: June 13, 2018, 09:32:25 pm »
The square things are part of the mane, its not possible to get them away if you use a scrolling texture.

Offline Windstrider

  • Familiar Grounds Dweller
  • **
  • Posts: 74
  • Country: us
  • Floof-O-Meter: 6
  • Soon-to-be college student!
    • Windstrider2017
    • windstrider2017@gmail.com
    • Windstrider2017
    • View Profile
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #4 on: June 13, 2018, 10:14:16 pm »
Too bad about that, but at least it's cleared up. Thanks!

Lucius

  • Guest
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #5 on: June 13, 2018, 10:45:48 pm »
The square things are part of the mane, its not possible to get them away if you use a scrolling texture.

That's not true. The code I posted above allows for the masking of the scrolling texture to the shape of the mane.



« Last Edit: June 13, 2018, 11:33:44 pm by Lucius »

Offline Windstrider

  • Familiar Grounds Dweller
  • **
  • Posts: 74
  • Country: us
  • Floof-O-Meter: 6
  • Soon-to-be college student!
    • Windstrider2017
    • windstrider2017@gmail.com
    • Windstrider2017
    • View Profile
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #6 on: June 14, 2018, 10:55:39 pm »
Hm. Maybe I did something wrong when using the code, then. I'll have to try again later.

Offline aryana100

  • Dedicated Supporter
  • ***
  • Posts: 264
  • Country: ro
  • Floof-O-Meter: 7
    • iuliathewolf
    • /c/Ritsukii
    • View Profile
Re: Presets: How to make a scrolling mane without a glitch?
« Reply #7 on: June 17, 2018, 01:09:13 pm »
the code for scrolling mane is not good when i goes on preset maker is scrolling the colors yellow and black