Umbrella effect in FSX with DX10
Results 1 to 8 of 8

Thread: Umbrella effect in FSX with DX10

  1. #1

    Umbrella effect in FSX with DX10

    Does anyone know where I can find the solution to the "umbrella effect" when raining in FSX that makes the rain appear to form a line when on the ground? I like to use DX10 but the effect is very unrealistic. Thanks

  2. #2
    Senior Administrator Roger's Avatar
    Join Date
    Oct 2000
    Location
    EGCD...they bulldozed it!
    Age
    72
    Posts
    9,775
    Quote Originally Posted by jpmouse View Post
    Does anyone know where I can find the solution to the "umbrella effect" when raining in FSX that makes the rain appear to form a line when on the ground? I like to use DX10 but the effect is very unrealistic. Thanks
    Hi, read a little way down in this Avsim thread.

    http://forum.avsim.net/topic/64868-dx10-rain-void/
    SYSTEM :
    OS:Win7 Home Premium 64 bit UAC OFF!
    DX version Dx10 with Steve's Fixer.
    Processor:I5 4670k overclocked to 4.4 gHz with Corsair CW-9060008-WW hydro cooler
    Motherboard:Z87
    RAM:16 gig 1866 gigaHz Corsair ram
    Video Card:MSI 1070 8 gig ram
    HD:2Tb Samsung 850 evo SSD

    To err is human; to forgive is divine

  3. #3
    Quote Originally Posted by Roger View Post
    Hi, read a little way down in this Avsim thread.

    http://forum.avsim.net/topic/64868-dx10-rain-void/
    Thanks Roger. Unfortunately the post was before the Avsim crash and I can't find the text file to replace rain40.fx. I appreciate the help. Thanks

  4. #4

  5. #5
    Quote Originally Posted by Naismith View Post
    http://www.realenvironmentxtreme.com...n-anyone-help/

    there is an edit 1/2 doiwn here - don't know if any good

    Thanks, I'll try this tonight and let you know. Much appreciated.

  6. #6

    Thanks!

    Tried the link you provided, followed the instructions, and Oh Joy, the rain looks as it should in DX10. Thanks Roger and Naismith. I appreciate the both of you very much.

    Thanks

  7. #7

    Rain Umbrella fix

    For anyone who is trying to get rid of the Rain Umbrella effect that appears when operating FSX in DX10 mode. Here it is:

    .................................................. ...........................

    1.
    Edit a file named Rain40.fx with this content:
    //------------------------------------------------------------------------------
    // Copyright © Microsoft Corporation. All Rights Reserved.
    //------------------------------------------------------------------------------

    #include "Rain40.fxh"
    struct VS_INPUT
    {
    float4 vPosition : POSITION;
    float4 cColor : COLOR0;
    float2 TexCoord : TEXCOORD;
    };

    struct VS_OUTPUT
    {
    float4 vPosition : SV_POSITION;
    float4 cDiffuse : COLOR;
    float2 TexCoord0 : TEXCOORD0;
    float2 TexCoord1 : TEXCOORD1;
    };

    VS_OUTPUT VS(const VS_INPUT In)
    {
    VS_OUTPUT Out = (VS_OUTPUT) 0;
    Out.vPosition = mul(In.vPosition, g_mWorldViewProjection);
    Out.cDiffuse = In.cColor;
    Out.TexCoord0 = mul(In.TexCoord, g_mTextureTransforms[0]);
    Out.TexCoord1 = mul(In.TexCoord, g_mTextureTransforms[1]);
    Out.TexCoord0 += g_mTextureTransforms[0][2];
    Out.TexCoord1 += g_mTextureTransforms[1][2];
    return Out;
    }

    float4 PS(const VS_OUTPUT In): SV_TARGET
    {
    float4 cColor0 = txTexture0.Sample(samSampler, In.TexCoord0);
    float4 cColor1 = txTexture1.Sample(samSampler, In.TexCoord1);
    return float4(0.5,0.5,0.5,In.cDiffuse.w) * (cColor0 + cColor1);
    }

    DepthStencilState EnableDepth
    {
    DepthEnable = TRUE;
    DepthWriteMask = ALL;
    DepthFunc = LESS_EQUAL;
    };

    DepthStencilState DisableDepth
    {
    DepthEnable = FALSE;
    DepthWriteMask = ZERO;
    };

    technique10 T0
    {
    pass P0
    {
    SetVertexShader(CompileShader(vs_4_0, VS()));
    SetGeometryShader(NULL);
    SetPixelShader(CompileShader(ps_4_0, PS()));
    SetDepthStencilState( DisableDepth, 0 );
    }
    }


    2.
    Goto Directory Microsoft Flight Simulator X\ShadersHLSL\misc

    3.
    Backup old Rain40.fx

    4.
    Copy your new file

    5.
    Goto Users\<Your Name Here>\AppData\Local\Microsoft\FSX\Shaders10\Shader sHLSL\misc

    6.
    Delete this file:
    Rain40.fx_0x4700000000000000_0x0f

    7.
    Run FSX in DX10 mode. It will recompile and replace the shader code with the new fixed code

  8. #8
    Senior Administrator Roger's Avatar
    Join Date
    Oct 2000
    Location
    EGCD...they bulldozed it!
    Age
    72
    Posts
    9,775
    Glad you got it fixed!
    SYSTEM :
    OS:Win7 Home Premium 64 bit UAC OFF!
    DX version Dx10 with Steve's Fixer.
    Processor:I5 4670k overclocked to 4.4 gHz with Corsair CW-9060008-WW hydro cooler
    Motherboard:Z87
    RAM:16 gig 1866 gigaHz Corsair ram
    Video Card:MSI 1070 8 gig ram
    HD:2Tb Samsung 850 evo SSD

    To err is human; to forgive is divine

Similar Threads

  1. DX10 for XP
    By Chuck_Jodry-VJPL in forum Ickie's NewsHawks
    Replies: 7
    Last Post: January 27th, 2009, 05:25

Members who have read this thread: 4

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
  •