Thursday, March 29, 2012

Call Of Duty 4: Modern Warfare fix


BEFORE
AFTER

This fix adds depth to the HUD.


Editor note(Eqzitara): If this fix doesnt work please try instructions in first comment.

ShaderOverride

Release

To install, unpack both ZIPs where iw3sp.exe is located.

Known issues: subtitles in cut-scenes between missions appear out of focus; sniper zoom overlay does not fit the screen.

Note: the 3D Vision profile says to turn off Glow, however I have not noticed any Glow-related anomalies. There are problems with static light effects but they are unrelated.

This is version 1 of the fix, I'm looking at the possibility of applying fix to HUD textures only, in order to leave the main menu, subtitles and sniper overlay as they are.

It works for both multi-player and single-player. All 2d HUD elements are pushed back including objective markers and player names. Note that some MP servers use Punkbuster and that using a wrapper might get you kicked.

By Anisotonic

6 comments:

  1. On the off chance anyone is still playing this, theres a new fix since it seems that version 1.7 stopped the above fix working. It does the exact same thing, gives the HUD depth. You will still need to create right mouse button bindings for it to be worth playing in 3D though.

    Entirely the work of eqzitara and bo3b, and as always its nothing to do with anyone but yourself if the fix gets you banned online, though as far as I can tell it isn't an issue.

    Head to C:\Program Files (x86)\Activision\Call of Duty 4 Modern Warfare\Shaderoverride\vertexshaders

    Create a text document in that folder named '8CACDB9B'. In that, paste this.

    //
    // Generated by Microsoft (R) D3DX9 Shader Compiler
    //
    // Parameters:
    //
    // float4x4 viewProjectionMatrix;
    // float4x4 worldMatrix;
    //
    //
    // Registers:
    //
    // Name Reg Size
    // -------------------- ----- ----
    // viewProjectionMatrix c0 4
    // worldMatrix c4 4
    //

    vs_3_0
    def c8, 1, 0, 0, 0
    def c220, 0.91, 0, 0.0625, 1
    dcl_position v0
    dcl_color v1
    dcl_texcoord v2
    dcl_2d s0
    dcl_position o0
    dcl_color o1
    dcl_texcoord o2.xy
    mad r0, v0.xyzx, c8.xxxy, c8.yyyx
    dp4 r1.x, r0, c4
    dp4 r1.y, r0, c5
    dp4 r1.z, r0, c6
    dp4 r1.w, r0, c7
    dp4 r3.x, r1, c0
    dp4 r3.y, r1, c1
    dp4 r3.z, r1, c2
    dp4 r3.w, r1, c3
    texldl r1, c220.z, s0
    if_eq r3.w, c220.w
    mul r1.x, r1.x, -c220.x
    add r3.x, r3.x, -r1.x
    endif
    mov o0, r3
    mov o1, v1
    mov o2.xy, v2

    // approximately 11 instruction slots used

    Provided you have the Helix d3d9.dll in the same folder as the EXE, should all work fine. If you find the HUD's depth is too little or too much, the '0.91' in line 'def c220, 0.91, 0, 0.0625, 1' can be increased or decreased to suit what you need.

    ReplyDelete
  2. Convergence isn't unlock, plus cant download convergence unlock just takes me to another website.

    ReplyDelete
  3. Hmmm, is it intentional that the download link is the same as the Sega Rally Revo 3D Fix ?

    ReplyDelete
  4. Is there also a fix for the remastered version of the game?

    ReplyDelete
    Replies
    1. Unlikely, unless someone is willing to put in the effort. Not generally worth the effort because remastered versions are just a scam to re-release the game for XBone and PS4. On PC, it's usually better to play the earlier version.

      Is there something compelling in this remaster, or is it just a money grab? Given the choice between fixing a new game, or a remaster, the ShaderHackers mostly bring new games into 3D.

      Delete
    2. the remaster is actually a nice repolish of the game, I would say it sits above most copy and paste remasters but sits just below metro 2033 redux. They added dialogue, inserted some additional elements and movie moments, and more made the explosions more "micheal bay/pretty/dazzling". To reiterate; it's not as good as Metro 2033 redux but better than most remasters.

      so long story short, if it is not too much trouble and some spare time on your already busy plate, fixing the 3d on this would be amazing and very much appreciated from the CoD fans of the original stuff.

      Delete