Results 1 to 18 of 18
  1. #1
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Question How can I make a PP material that desaterate Green,Blue but Not red?

    How can I make a material in Unreal Editor that desaturated only blue and green but red is still saturated. I want to make a Post Process filter that keeps only the red color but everything else is black & white? I do not have a lot of experience with the unreal editor but others showing me pictures or the .upk file, show me how you did it. I am a visual learner...

    Here is a example of what I want:
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  2. #2
    MSgt. Shooter Person
    Join Date
    Oct 2009
    Posts
    298

    Default

    why don't you use a post-processing volume?
    otherwise, you could try make a red-translucent material,
    so that only red light can pass through...
    ~proud to be within the top 50.000 UT3 players of the world ~


    DM-Elysium
    VCTF-Dreaming Ruins
    CTF-Simplicissimus SE
    DM-Hanoi
    VCTF-Valhalla_2010

  3. #3
    MSgt. Shooter Person
    Join Date
    Apr 2008
    Posts
    358

    Default

    Post processing volumes are not colour specific afaik, so the best you could do using that method would be to totally desaturate the entire level, and then highlight in red. This would not achieve what you want though.

    I have been experimenting with materials and have come up with a result similar to what you want, but maybe not so pronounced. With a little more fiddling you may be able to get a better look, I don't know. Anyway this is what I did.

    Connect the texture sample to two Masks, select one as (G), one as (R). Put in a Clamp and connect the (G) mask to the min value and the (R) mask to the max value. Also connect the same texture sample to the input on the clamp. This should create a filter for only Red on that texture. Just before the textures are inputted into the final material, you need to have the standard texture completely desaturated, and then use the Add function to combine the desaturated texture and the Clamped texture, which should create a black and white texture with only the red showing. The failing in this method is that it will show the reds in other colours, such as orange and lilac, they will just be a different shade of red to anything that was originally red. I am sure with more adjustments and a better clamping method these could be removed, but I haven't experimented for too long.
    CTF-Nucleus - MSUC finalist
    DM-Stormdrain - Beta

  4. #4
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    Quote Originally Posted by Syphix View Post
    Post processing volumes are not colour specific afaik, so the best you could do using that method would be to totally desaturate the entire level, and then highlight in red. This would not achieve what you want though.

    I have been experimenting with materials and have come up with a result similar to what you want, but maybe not so pronounced. With a little more fiddling you may be able to get a better look, I don't know. Anyway this is what I did.

    Connect the texture sample to two Masks, select one as (G), one as (R). Put in a Clamp and connect the (G) mask to the min value and the (R) mask to the max value. Also connect the same texture sample to the input on the clamp. This should create a filter for only Red on that texture. Just before the textures are inputted into the final material, you need to have the standard texture completely desaturated, and then use the Add function to combine the desaturated texture and the Clamped texture, which should create a black and white texture with only the red showing. The failing in this method is that it will show the reds in other colours, such as orange and lilac, they will just be a different shade of red to anything that was originally red. I am sure with more adjustments and a better clamping method these could be removed, but I haven't experimented for too long.
    Can you print screen and show me the picture instead please? But I will try that. P.S. I also have to make a texture sample of what?
    Last edited by Oblivion2500; 05-24-2010 at 04:17 PM.
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  5. #5
    Iron Guard
    Join Date
    Aug 2006
    Location
    Suffolk, UK
    Posts
    587
    Gamer IDs

    Gamertag: plugh

    Default

    Here's a simple colour pass filter, it might be what you're looking for :

    This Image Was Automatically Resized by using the Screenshot Tag.  Click to view the full version

  6. #6
    MSgt. Shooter Person
    Join Date
    Apr 2008
    Posts
    358

    Default

    Quote Originally Posted by plugh View Post
    Here's a simple colour pass filter, it might be what you're looking for :

    This Image Was Automatically Resized by using the Screenshot Tag.  Click to view the full version
    Go with that one. The effect is a lot better than I achieved :P
    CTF-Nucleus - MSUC finalist
    DM-Stormdrain - Beta

  7. #7
    Iron Guard
    Join Date
    Aug 2006
    Location
    Suffolk, UK
    Posts
    587
    Gamer IDs

    Gamertag: plugh

    Default

    Well it works fine with the base colours of red, green and blue. It would be nice to know how to get it working with colours such as yellow, if I get time I'll have a play.

  8. #8
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    Quote Originally Posted by plugh View Post
    Well it works fine with the base colours of red, green and blue. It would be nice to know how to get it working with colours such as yellow, if I get time I'll have a play.
    Do I need a texture to make the PP effect? or no?
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  9. #9
    Iron Guard
    Join Date
    Aug 2006
    Location
    Suffolk, UK
    Posts
    587
    Gamer IDs

    Gamertag: plugh

    Default

    I believe you need to replace the Texture Sample in the material with a Scene Texture Sample, in it's properties set ScreenAlign to true. You will also need to set up a Post Process Effect using your new material. You must then edit your UTEngine.ini, and change the DefaultPostProcess to point to your new Post Process Effect.

    Here's a UDK tutorial which may help somewhat : http://www.daveprout.com/hack-this/2...cts-chain.html
    Last edited by plugh; 06-03-2010 at 05:35 PM.

  10. #10
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    Quote Originally Posted by plugh View Post
    Here's a simple colour pass filter, it might be what you're looking for :

    This Image Was Automatically Resized by using the Screenshot Tag.  Click to view the full version
    Can you give me that round rainbow texture for me to download? What is Param 'CutDesaturation' and Param 'PassColour'? Sorry I am sort of new to post process materials.
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  11. #11

    Default

    Dude, you don't want a rainbow, but the screen content. Remember, you asked for post-processing and only got an example for a static texture.
    Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives

    <@Mych|Lockdown> ...and the award for the most creative spelling of "Jailbreak" goes to ... "Gandis Jealbrake Server"
    Note that your questions via PMs will be ignored if they actually belong in the forum.

  12. #12
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    Quote Originally Posted by Wormbo View Post
    Dude, you don't want a rainbow, but the screen content. Remember, you asked for post-processing and only got an example for a static texture.
    Ok. So I don't need diffuse texture at all? I run into some problems if i get rid of it. What is Param 'CutDesaturation' and Param 'PassColour'?
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  13. #13

    Default

    Looks like the amount of desaturation and the color to keep. Of course you need to add a screen sample expression in place of the texture sample.
    Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives

    <@Mych|Lockdown> ...and the award for the most creative spelling of "Jailbreak" goes to ... "Gandis Jealbrake Server"
    Note that your questions via PMs will be ignored if they actually belong in the forum.

  14. #14
    MSgt. Shooter Person
    Join Date
    Apr 2008
    Posts
    358

    Default

    Quote Originally Posted by Oblivion2500 View Post
    Ok. So I don't need diffuse texture at all? I run into some problems if i get rid of it. What is Param 'CutDesaturation' and Param 'PassColour'?
    Just do everything that was done in that picture, but use whatever texture you require for the mesh in place of that rainbow texture that is being used as an example.
    CTF-Nucleus - MSUC finalist
    DM-Stormdrain - Beta

  15. #15
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    I can't find Param "CutDesaturation and Param PassColour'. Where can I find it/What is it called?
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  16. #16
    Iron Guard
    Join Date
    Aug 2006
    Location
    Suffolk, UK
    Posts
    587
    Gamer IDs

    Gamertag: plugh

    Default

    CutDesaturaion and PassColour are just names I gave to the parameters, CutDesaturaion is a Scalar Parameter which controls the amount of Desaturation applied to the colours which aren't your pass colour (in this case green and blue), and PassColour is a Vector Parameter which allows only one particular colour to pass through (in this case, red).
    Last edited by plugh; 06-11-2010 at 01:25 AM.

  17. #17
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    When I tried the post process in game. All I see a 4 squares (Grey & white). I uploaded a picture. What am I doing wrong?
    Attached Images Attached Images
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693

  18. #18
    Iron Guard
    Join Date
    Apr 2009
    Location
    you would like to know wouldn't you?
    Posts
    604

    Default

    Oh come on! No one knows what I am doing wrong?
    "The right to play god...is now mine"
    ~Albert Wesker


    PureUT3Mods: Volume 1 - Mutator Pack:
    http://utforums.epicgames.com/showthread.php?t=723693


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.