SweetFX Shader Suite release and discussion thread #4

Discussion in 'Games, Gaming & Game-demos' started by CeeJay.dk, Sep 30, 2013.

Thread Status:
Not open for further replies.
  1. Zomgerd

    Zomgerd Guest

    Messages:
    304
    Likes Received:
    0
    GPU:
    Asus R9 280X DC2T
    Radeon.Pro.Use.It.For.Now.Works.With.Nvidia.Cards.Uses.SweetFX.1.4.Works.With.Win.8.1.PERIOD.
     
  2. eclap

    eclap Banned

    Messages:
    31,468
    Likes Received:
    4
    GPU:
    Palit GR 1080 2000/11000
    really? does 1.4 work with 8.1? I'll try that now.
     
  3. wellison

    wellison Active Member

    Messages:
    60
    Likes Received:
    0
    GPU:
    GTX 970 ASUS Strix 4gb
    I can make work Battlefield 4 this SweetFX+EFX in Windows 8.1 x64, not my work i just mix some files. Plz people with someone test with other games i think can work.


    is preloaded dxgi to work with x64 games, if u wanna try a x86 (32bit) game in sweetFX folder rename eFX32.dll to d3d9.dll and move to the root toghether with dxgi.dll

    https://www.facebook.com/download/403124456458011/SweetFX+EFX Beta win 8.1.rar
     
  4. Zomgerd

    Zomgerd Guest

    Messages:
    304
    Likes Received:
    0
    GPU:
    Asus R9 280X DC2T
    RadeonPro uses SweetFX 1.4 and it also happens to work with 8.1.
     

  5. eclap

    eclap Banned

    Messages:
    31,468
    Likes Received:
    4
    GPU:
    Palit GR 1080 2000/11000
    Can't find 1.4 anywhere :/
     
  6. Loadus

    Loadus Guest

    Messages:
    3
    Likes Received:
    0
    GPU:
    Nvidia GTX 580
    Hey guys,

    Groovy to see that my DPX shader got added into the package, very much appreciated. ^.^

    I ported my film shader to SweetFX as well, I'll post the raw code here so anyone can use it - it's the raw code that I use, it's not optimized etc.



    Code that I've been using with Borderlands 2:

    Code:
       /*-----------------------------------------------------------.
      /                           Custom                            /
      '-----------------------------------------------------------*/
    /*
    
    */
    
    float4 CustomPass( float4 colorInput, float2 tex )
    {
    
    	float CurveR = 8.0;
    	float CurveG = 6.0;
    	float CurveB = 2.0;
    
        float Contrast = 0.2;
    	
    	float4 B = colorInput;
    
    	float4 C = B;
    
    
    	
    	float A = dot(float3(0.333, 0.333, 0.333), B.rgb); 
    	
    	if (A < 0.5)
    
    		C = (2 * A - 1) * (B - B * B) + B;
    	
    	else
    
    		C = (2 * A - 1) * (sqrt(B) - B) + B;	
    	
    	C.r = pow(C.r, 0.7);
    	C.g = pow(C.g, 0.7);
    	C.b = pow(C.b, 0.9);
    
    	C.r = (1 /(1 + exp(- CurveR * (C.r - .5))) - (1 / (1 + exp(CurveR / 2))))/(1 - 2 * (1 / (1 + exp(CurveR / 2))));				
    	C.g = (1 /(1 + exp(- CurveG * (C.g - .5))) - (1 / (1 + exp(CurveG / 2))))/(1 - 2 * (1 / (1 + exp(CurveG / 2))));				
    	C.b = (1 /(1 + exp(- CurveB * (C.b - .5))) - (1 / (1 + exp(CurveB / 2))))/(1 - 2 * (1 / (1 + exp(CurveB / 2))));				
    
    	C = lerp(B, C, 0.75);
    	
    	C.rgb = lerp(C.rgb, float3(Contrast, Contrast, Contrast), 0.1);
    	
    	return C; 
    }
    

    Have fun with it. This snippet will not work with engines that use linear rendering, like Deus Ex Human Revolution.

    Here's a quick-n-dirty tweak for Deus Ex, using a little more harsh composition:

    Code:
       /*-----------------------------------------------------------.
      /                           Custom                            /
      '-----------------------------------------------------------*/
    /*
    
    */
    
    float4 CustomPass( float4 colorInput, float2 tex )
    {
    
    	float CurveR = 8.0;
    	float CurveG = 6.0;
    	float CurveB = 1.0;
    
        float Contrast = 0.5;
    	
    	float4 B = colorInput;
    
    		B = pow(B, 0.5); 
    	
    	float4 C = B;
    
    
    	
    	float A = dot(float3(0.333, 0.333, 0.333), B.rgb); 
    	
    	C = (1 - A) * (A * B) + A * (1 - (1 - A) * (1 - B));	
    	
    	C.r = pow(C.r, 0.7);
    	C.g = pow(C.g, 0.62);
    	C.b = pow(C.b, 0.6);
    
    	C.r = (1 /(1 + exp(- CurveR * (C.r - .5))) - (1 / (1 + exp(CurveR / 2))))/(1 - 2 * (1 / (1 + exp(CurveR / 2))));				
    	C.g = (1 /(1 + exp(- CurveG * (C.g - .5))) - (1 / (1 + exp(CurveG / 2))))/(1 - 2 * (1 / (1 + exp(CurveG / 2))));				
    	C.b = (1 /(1 + exp(- CurveB * (C.b - .5))) - (1 / (1 + exp(CurveB / 2))))/(1 - 2 * (1 / (1 + exp(CurveB / 2))));				
    
    	C = lerp(B, C, 0.75);
    	
    	C.rgb = lerp(C.rgb, float3(Contrast, Contrast, Contrast), 0.1);
    	
    	return C; 
    }
    
    These were just quickly ported from my videoshaders and I haven't done any optimizing or benchmarking with them (Borderlands 2 plays very smoothly with the shader), but there is much room for improvement.

    Also, the code is pretty ugly and undocumented and provided 'as-is'.

    Anyhoo, have fun with it. ^.^
     
  7. S1eB

    S1eB Guest

    Messages:
    14
    Likes Received:
    0
    GPU:
    Sapphire R9 290 Tri-X
    SweetFX 1.4 and RadeonPro still doesn't work with BF4 in DX11 for Windows 8.1.
    You need the x64 .dlls which curently do not work with DX11.2.

    Here is a download for 1.4 though if anyone needs it.

    http://www.multiupload.nl/S7FIPTKOWG
     
  8. slickric21

    slickric21 Guest

    Messages:
    2,458
    Likes Received:
    4
    GPU:
    eVGA 1080ti SC / Gsync
    hmmm complicated all this.

    Hopefully we will have working injectors for Win 8.1 and x64 soon.

    Cant wait to add SMAA to BF4 !!
     
  9. K-putt

    K-putt Guest

    Messages:
    472
    Likes Received:
    0
    GPU:
    GTX 1080Ti
    Thanks a lot for this! :) Playing around with new shaders is always nice.
    I have to ask though, how can i change those values within the sweetfx settings?
    Which lines do i need to add?
     
  10. Loadus

    Loadus Guest

    Messages:
    3
    Likes Received:
    0
    GPU:
    Nvidia GTX 580
    Np,

    The quickest way is to paste the code snippet into SweetFX\Shaders\Custom.h and enabling (change 0 to 1) the custom shader in the SweetFX_settings.txt:
    Code:
    #define USE_CUSTOM        1 //[0 or 1] Custom : Write your own shader by editing custom.h, and then enable it here.
    
    
     

  11. boxariel

    boxariel Guest

    Messages:
    10
    Likes Received:
    0
    GPU:
    Nvidia gtx680 2Gb
    Hey, it's worked perfectly for me in battlefield 4 (win 8.1), but in no way I could make it work in COD Black ops 2.
    Any idea?
    Thank you.
     
    Last edited: Nov 7, 2013
  12. K-putt

    K-putt Guest

    Messages:
    472
    Likes Received:
    0
    GPU:
    GTX 1080Ti
    Yea, that's what i did.
    But i only can change the rgb values inside your shader, and not inside the sweetfx settings.

    That's what i want to know :)
     
  13. Crosire

    Crosire Member Guru

    Messages:
    164
    Likes Received:
    0
    GPU:
    -
    I think it's a DirectX 11 32 bit game, so you need the "eFX32.dll" (Battlefield 4 is a 64 bit game, that's why it required "eFX64.dll"). Rename it to "d3d11.dll" or "dxgi.dll" (not "d3d9.dll" as suggested, as your game doesn't seem to run on DirectX 9) and put it in the directory the game executable lies in. Should work then.
     
    Last edited: Nov 7, 2013
  14. Boulotaur2024

    Boulotaur2024 Guest

    Messages:
    142
    Likes Received:
    0
    GPU:
    AMD HD7950
    [​IMG]

    8 shaders stacked together if I read everything correctly. Looks cool. I don't know if it has any use outside emulation of old school systems but I thought it was nice to see how creative people can be with shaders
     
  15. OrdinaryOregano

    OrdinaryOregano Guest

    Messages:
    433
    Likes Received:
    6
    GPU:
    MSI 1080 Gaming X
    NEW SHADERS TO PLAY WITH!!!!

    What does it do, K-putt tried it? screenies?
     

  16. boxariel

    boxariel Guest

    Messages:
    10
    Likes Received:
    0
    GPU:
    Nvidia gtx680 2Gb
    Hello again, I tried what you suggested but the results are not satisfactory.
    Try what I try can not get it to work in COD Black ops 2.
    PS: Assassin's creed 3 (win8.1) not working in any way sweetfx
     
    Last edited: Nov 8, 2013
  17. styckx

    styckx Ancient Guru

    Messages:
    1,557
    Likes Received:
    169
    GPU:
    2080 Ti XC Ultra
    Win 8.1 w/ the Radeon Pro / SweetFX 1.4 method works fine for me.
     
  18. Loadus

    Loadus Guest

    Messages:
    3
    Likes Received:
    0
    GPU:
    Nvidia GTX 580
    Ah, yeah. : D

    It doesn't have any tweakable settings, sry about that.
     
  19. kaicooper

    kaicooper Guest

    Messages:
    519
    Likes Received:
    42
    GPU:
    GTX 780 SC ACX
    K-putt

    i'll be glad to c COD ghosts preset from u
     
  20. Apu889

    Apu889 Guest

    Messages:
    7
    Likes Received:
    0
    GPU:
    Nvidia GT650m 2GB
    Last edited: Nov 8, 2013
Thread Status:
Not open for further replies.

Share This Page