[REL][CLIENT] Green Fab Spray

Discussion in 'Released Mods' started by dom314, July 28, 2015.

  1. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Makes the fab/combat fab spray neon green. Also adds neon green accent to building animations. That is all.

    Comments welcome :3
    Last edited: August 1, 2015
    ace63, cdrkf, doud and 3 others like this.
  2. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Does it also alter the nanoframe or is that still team colored?
  3. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Only the fab spray. If I knew which shader was responsible for the nanoframe I would probably alter it a little bit too.
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I think it is these.
    [​IMG]
    Looking at one of them there is even an explicit comment "mix team color"
    dom314 likes this.
  5. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Does it alter the combat fabber nanospray?
  6. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    pre_light_pa_unit_fab is the shader responsible for the color of the structures being built, you can see the bot factory in porgess in dom's picture, that's the one. I have no idea what the others are but they're in F# so i can't tell very quickly.

    But the combat fabbers don't use shaders, there's a .pfx file in effects/specs called fab_combat_spray which can be modded. A quick fix to make the combat spray "suck inwards" instead of outwards would be to set the velocity flag to a negative value. EDIT: Also the emitter needs to be offset because then the spray would just go through the model
    Last edited: July 28, 2015
  7. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    It does indeed.
    Noice! I might play around with it, I still want the overall color to be teamcolored, but a bit more glowy green accents wouldn't hurt :).
    I would rather not invert the fabber spray, since the idea of sending nanites to reclaim a tree is good enough for me :).
    killerkiwijuice likes this.
  8. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
  9. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    That looks good, I'm assuming you either have ML knowledge or f# knowledge (or both)?

    I'd love to see how you did that :3
  10. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    I think it is actually be GLSL. Not that i know how to program GLSL....
    stuart98 likes this.
  11. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196


    So I learnt a bit more GLSL, from the source of course, and I think I ended up with something cool :).
    Let me know what you think!
    killerkiwijuice likes this.
  12. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196

    Still the same shader, just showing the commander building it so that you may observe the animation at higher speed.
    killerkiwijuice likes this.
  13. stylisticsagittarius

    stylisticsagittarius Active Member

    Messages:
    172
    Likes Received:
    57
    the effect on buildings isn't working with me...
  14. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Hmmm, as in it just looks like the normal effect? If so, could you give me your log file?
  15. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Welp, I accidentally deleted my own version and just uploaded the vanilla effect. *sigh*
    cdrkf and stuart98 like this.
  16. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Should be fixed now.
    cdrkf and stuart98 like this.
  17. stylisticsagittarius

    stylisticsagittarius Active Member

    Messages:
    172
    Likes Received:
    57
    I works now ;).

    Looks awsome! t2 builders that are building quite a bit chaotic but thats okay haha
    dom314 likes this.
  18. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Thanks for bringing it to my attention in the first place :D
  19. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Time for more opinions!

    So peeps, what do you think?
    cdrkf and cola_colin like this.
  20. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    You are having fun with GLSL
    dom314 likes this.

Share This Page