SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: Fade to Grayscale on Low HP [v1.33]

Page 1 of 3 123 LastLast
Results 1 to 20 of 58
  1. #1

    Fade to Grayscale on Low HP [v1.33]

    Hey sup! Enjoy my first 'real' mod!
    Big thanks to theli, this is based on his mod.
    Big thanks to Notausgang for his awesome HoN Modification Manager.
    Also thanks to the people at #honlabs on IRC for answering my noob questions

    What does this mod do?
    At default this mod will fade to grayscale based on your Current HP.
    From 20% HP to 10% HP it will fade to grayscale.
    From 10% HP to 0% HP it will stay grayscale.

    Options (screenshot)

    • Disable blur while being dead (default on)
    • Adjust the blur strength while being dead (default 20%)
    • Disable grayscale while being dead (default off)


    • Adjust the 'Start fading threshold' (default 20% HP)
    • Adjust the 'End fading threshold' (default 10% HP)

    Screenshots & a Video (HD) (going from 33% HP to 10% HP, and 20% blur when dead)
    http://i45.tinypic.com/1z5mds0.jpg - Normal
    http://i50.tinypic.com/t4tnj7.jpg - 40% grayscale
    http://i49.tinypic.com/jfyku9.jpg - 100% grayscale
    http://i47.tinypic.com/23l27k.jpg - Dead with 20% blur

    This mod uses pixel shaders and I've only tested Pixel Shader Model 3.0
    I've included Pixel Shader Model 2.0 as well, but this is not yet tested (any feedback on this would be great).

    Linux/Mac users read:
    Blur will not work for Linux/Mac users (or rather OpenGL users). In the options, (un)ticking the 'Disable blur' checkbox does nothing.
    I haven't tried to make a similar shader for OpenGL yet. If one of you out there knows how, be my guest and poke around in the code and see what you can do.

    Download the honmod or the s2z (the s2z has the Mod Options Framework [v0.6.2] included, you still need my custom shader for the s2z!)
    Requires: Mod Options Framework
    Requires: My custom shader (Linux/Mac users do NOT need this, OpenGL shader is already included in honmod/s2z!)
    Extract my custom shader to your Heroes of Newerth folder (Default at C:\Program Files\Heroes of Newerth\)
    It should look like this:
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_2_0\post_grayscaleBlend.psh
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_2_0\post_motionblurBlend.psh
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_3_0\post_grayscaleBlend.psh
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_3_0\post_motionblurBlend.psh

    Please give feedback, bug reports or other improvements/ideas about this mod in a constructive way

    Known Bugs:
    Code:
    At the moment, none!
    Common Problems FAQ:
    Code:
    Q. OMG MY SCREEN JUST TURNED WHITE WHEN I'M LOW HP!
    A. Install my custom shader (double check if its extracted into the right folder) and try again.
    
    Q. Its still not working!
    A. Open console(Ctrl+F8) and type ReloadShaders and press Enter
    Changelog:
    Code:
    v1.33 - Changed to dropbox auto updating. /!\ You need to redownload the honmod for this! /!\
    
    v1.32 - Now supports Mod Options Framework v0.6.2
    
    v1.31 - Now supports Heroes of Newerth v0.3.*
    
    v1.3   - Added grayscale OpenGL shader, no blur for OpenGL though (so in the options, (un)ticking the 'Disable blur' checkbox does nothing).
    
    v1.21 - Fixed another variable not being saved properly.
    
    v1.2   - Fixed variables getting saved properly now.
           - It only watches your Hero's Current HP and not the one you have currently selected.
           - Added the updated .posteffect and .material files to include in the s2z (I forgot them in v1.1)
           - Cleaned up the code a little bit.
    
    v1.1   - Fade to grayscale based on threshold which are configurable via options
           - Removed blurring from < 10% HP, you still can enable blur, with configurable strength, while being dead
           - Honmod is now auto updating
    
    v1.0   - Public release
    Future Plans:
    Code:
    Make the grayscale threshold to fade to adjustable, so instead of always fading to 100% grayscale you can adjust the value.
    Make a blur glsl (OpenGL) shader (very low priority).
    Last edited by Quzzap; 03-27-2010 at 11:13 AM. Reason: v1.33

  2. #2
    Offline
    Account Icon
    Join Date
    Oct 2009
    Posts
    14
    Beautiful! Good job for a first time Keep it up!

  3. #3
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jul 2009
    Location
    Kyiv, Ukraine
    Posts
    1,873

  4. #4
    Offline
    Account Icon
    Join Date
    Jun 2009
    Posts
    273
    Quote Originally Posted by theli View Post

    M as in mancy

  5. #5
    Good Job!
    I'd like to see adjustable thresholds in some future version...

  6. #6
    nice job personally i dont want anything skewing my vision especially when my hp is low

    but good job

  7. #7
    Quote Originally Posted by obi1kinob View Post
    nice job personally i dont want anything skewing my vision especially when my hp is low

    but good job
    I'll make a separate version without blurring <10% hp, as some other people requested this as well. I'll see what I can do next week.
    I'm also thinking about making the 'Low HP' a threshold that be adjusted.
    Last edited by Quzzap; 02-28-2010 at 08:25 AM.

  8. #8
    Offline
    Account Icon
    Join Date
    Dec 2009
    Posts
    11
    not working =(( i did all of ur advice but its still white

  9. #9
    Quote Originally Posted by Quzzap View Post
    I'll make a separate version without blurring
    why can't you just add another checkbox for it in the options menu?
    along with sliders or textfields for thresholds?
    Last edited by Creep666; 02-28-2010 at 09:31 AM.

  10. #10
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jul 2009
    Location
    Rio de Janeiro - Brasil
    Posts
    1,373
    AWESOME mod man =)) will be pretty cool in the game

    Proud for actually beeing one of the 10 to play the first MatchMaking game.
    And for being one of the first to become a SBT.


  11. #11
    Quote Originally Posted by BurningEviL View Post
    not working =(( i did all of ur advice but its still white
    So do you have it like this:
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_2_0\post_grayscaleBle nd.psh
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_2_0\post_motionblurBl end.psh

    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_3_0\post_grayscaleBle nd.psh
    C:\Program Files\Heroes of Newerth\game\core\shaders\ps_3_0\post_motionblurBl end.psh

    If not (which you probably don't have) make it like that, and it should work
    If its still not working, whats your operating system?

    Quote Originally Posted by Creep666 View Post
    why can't you just add another checkbox for it in the options menu?
    along with sliders or textfields for thresholds?
    Because this is working with shaders and as far as I know, there can be only 1 posteffect (one or more materials with their own shader) active. And this is done with files, which cannot be dynamically changed throughout the interface I think
    Last edited by Quzzap; 02-28-2010 at 10:34 AM.

  12. #12
    this reminds me of call of duty.

    the color settings on 14% hp screen are awesome btw ^^

  13. #13
    Offline
    Account Icon
    Join Date
    Jul 2009
    Location
    Sweden
    Posts
    200
    Cheers
    You have two stamp.One red, one green.
    - So ?
    - I have chance to go New York. 50-50.

  14. #14
    Quote Originally Posted by Quzzap View Post
    cannot be dynamically changed throughout the interface I think
    maybe u could deactive/change any trigger/threshold you put in
    (for the shader to actually come into effect) via options menu?

    (tell me if that sentence made sense to you^^)

  15. #15
    I noticed you use a mod_header to display info with. Mod_empty has support for text via label.

  16. #16
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Nov 2009
    Location
    South Africa
    Posts
    175
    mine also goes white..

    running Win 7 64 bit.

    also- dont have the file you said earlier.. will try change stuff

  17. #17
    Quote Originally Posted by Creep666 View Post
    maybe u could deactive/change any trigger/threshold you put in
    (for the shader to actually come into effect) via options menu?

    (tell me if that sentence made sense to you^^)
    Yea this is what I had in mind, but by doing this I need to make all the possibilities with files first. On which I will probably make blur only available while already dead, because else there would be too many files for me to make

    Quote Originally Posted by Tisser View Post
    I noticed you use a mod_header to display info with. Mod_empty has support for text via label.
    Thanks, will use that when I'll release the next version.

    Quote Originally Posted by Typhus` View Post
    mine also goes white..

    running Win 7 64 bit.

    also- dont have the file you said earlier.. will try change stuff
    Don't have what file? the custom shader? then install that first...

  18. #18
    Offline
    Account Icon
    Join Date
    Jul 2009
    Posts
    228
    Looks awesome, I've seen the preview video, and It sure looks nice. But using it for real, in-game... I don't know, I think it takes away much of the visibility when on low hp :\

  19. #19
    Quote Originally Posted by Quzzap View Post
    I need to make all the possibilities with files first
    i don't get why sry

    can't you just make the numbers "20% and 10%" changable with a textbox or slider?
    putting the threshold to 0% would then pretty much do the same as disabling it...
    Last edited by Creep666; 03-01-2010 at 07:14 AM.

  20. #20
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Nov 2009
    Location
    South Africa
    Posts
    175
    found and fixed

    again awesome idea

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •