Feral Heart

Help & Guidance => Game Help => Topic started by: Windstrider on June 13, 2018, 12:00:32 am

Title: Presets: How to make a scrolling mane without a glitch?
Post by: Windstrider 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.

(https://image.ibb.co/cafDvJ/fmane_Mask.png)
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).

(https://image.ibb.co/cCFJUd/preset_5mane.png)

-----

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

(https://image.ibb.co/budBhy/preset_10scroll2.png)

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

(https://image.ibb.co/hqyoUd/screenshot_06122018_195042324.png)
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: Lucius 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
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: Windstrider on June 13, 2018, 12:39:55 am
Ok, thanks! I'll go try these.
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: Tigg 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.
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: Windstrider on June 13, 2018, 10:14:16 pm
Too bad about that, but at least it's cleared up. Thanks!
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: Lucius 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.


(https://i.imgur.com/M8XJJWf.gif)
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: Windstrider 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.
Title: Re: Presets: How to make a scrolling mane without a glitch?
Post by: aryana100 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