Saturday, December 7, 2013

XCOM: Enemy Unknown / Within - 3D vision fix

XCOM: Enemy Unknown / Within - 3D vision fix.

Update New:
Tested on Enemy Within
Fixed water/alien shielding on stages

Update Prior
- fixed freezes when minimize game;
- on-screen effects (like lens flares) moved deeper(you can always on/off them by  N/M - keys );

- Light effects;
- Shadows;
- Fog of War;
- effects Halos;
- HUD;

Remaining issues:
Mouse pointer still 2D.
Can't fix this one.

This is not usual fix.

This fix implements new scripting  feature (for test !) and fix all shaders by script template automatically !
That means there can be some broken effects(let me know in comments if you find some), but I'm almost sure it fixes almost everything.

Download this archive. Unpack downloaded archive in to the game folder
Example Enemy Unknown : "C:\Steam\steamapps\common\XCom-Enemy-Unknown\Binaries\Win32"
Example Enemy Within : "C:\Steam\steamapps\common\XCom-Enemy-Unknown\XEW\Binaries\Win32"
When you run the game the fix will search in the game shaders and will fix them automatically and this can take some time.

I/O/P - keys switch HUD depth and on-screen effects (like lens flares).

J/K - switch convergence/separation settings .

If you want to save your custom convergence settings press J(or K) set custom settings , then press F7 and your settings will be saved in the config file. You can set custom settings for both profiles (J/K keys).

 N/M - keys turns On/Off  on-screen effects (like lens flares) - for people who don't like disco 80-x :)

Tested only with steam version of the game. I'm using default game profile from 306.97 display driver.
You need at least R300 driver series to run this version of the fix.

If  you can't get game work in 3D - open "Documents\My Games\XCOM - Enemy Unknown\XComGame\Config\XComEngine.ini" file, serach for "AllowNvidiaStereo3d"  and replace it from "AllowNvidiaStereo3d=False" to "AllowNvidiaStereo3d=True".

If you want to move HUD deeper in the screen open DX9Settings.ini file, search for  " [Preset3] " and change
Const1 = 0x3DCCCCCD


Const1 =  0x3F666666

Press P during gameplay.


  1. Thank you so very, very much for this ! One quick question. I downloaded the previous version of the fix that had removed the shadows. Do I need to re-install the whole game or will this new fix reintroduce shadows ?

  2. Previous version is better for me (however there are missing effects).
    1: With this I cannot minimize the game.
    2: Shadows not rendered correctly.
    3: Some lights rendered only for one eye. e.g. at the base, the lights in the elevators. The left side light is rendered only for right eye, right light for left eye.
    (I'm using LG DM2752D passive FPR 3D with Acer HR274H edid override)

    1. 1. Fixed;
      2. Works good confirmed by other people.
      3. If u talked about lens flares - I put them deeper on the screen in new version. And u can always turn those disco 80-x effects off.

      For everyone who can get it works:
      1. "Tested only with steam version of the game. I'm using default game profile from 306.97 display driver. You need at least R300 driver series to run this version of the fix." The main here that I've tested it with "306.97 display driver" only.
      2. If you used previous fix - remove "ShaderOverride" folder from the game directory and only after that extract new fix files. Do not replace old "ShaderOverride" folder with the new one or you will mess up all files.
      3. Make sure u didn't change the game profile in the Nvidia inspector or something (reinstall drivers if u did, clean install).

    2. User error, ShaderOverride folder was not removed. :)
      It is working fine now thx!

  3. Thank you for continuing working on X-COM - this game shouts for 3D.
    Rain effects seem to be wrong depth
    a couple of other planes in the menu screens as well.
    Otherwise - looks amazing


  4. Thanks Helix.

    I cannot believe how good this game is now. Why doesn't nVidia employ you? You really do a far better job at software support than they do.

    ps thanks to Eqzitara for tiding us over until Helix did his thang!

  5. @Helix

    Is there a way of having a HUD setting half way between your default 0x3DCCCCCD and the 0x3F666666 setting you suggested? If so, what would I need to type in? (If it even works like that...)


    1. 3F666666 is 0.9 and 3DCCCCCD is 0.1 in float.
      You can use for example this converter
      type in decimal any value you want (for example 0.7), convert and copy hex value to the config.

    2. Awesome! Mate. This is great.

    3. Was it wrong to enjoy playing with the decimal conversions on that site? Any-hoo! I found 0.55 (or 0x3F0CCCCD) pretty much hit my sweet spot. :)

      Again, really appreciate your work.

    Upload a preview of first real mission(no spoilers)

  7. Yep. This game is crashing also when I boot it up. I have the newest drivers and 3DTV. What am I doing wrong? I copied the folder and 3 files to the Win32 folder. Still no go.

    1. How do I do that?

    2. Done and it still crashes. The .dll is making it crash.

    3. somethings conflicting. Cant tell u what.

    4. Eqzitara,

      Please bare with me. You helped me before with KOA and I know you can help me here. I don't have any mods. I have these error messages:

      Fatal error!

      Address = 0x6d189119 (filename not found) [in C:\Windows\system32\d3d9.dll]
      Address = 0x616bbfb2 (filename not found) [in C:\Program Files (x86)\Steam\gameoverlayrenderer.dll]
      Address = 0x1765f19 (filename not found) [in C:\Program Files (x86)\Steam\steamapps\common\XCom-Enemy-Unknown\Binaries\Win32\XComGame.exe]
      Address = 0x18f6c16 (filename not found) [in C:\Program Files (x86)\Steam\steamapps\common\XCom-Enemy-Unknown\Binaries\Win32\XComGame.exe]

      I am thinking that the D3D9.dll is looking for some path. I don't have my game installed on anything other than C: driver. It is SSD but that shouldn't matter.

    5. Found it!! Or at least I will find it. I closed out my EVGA Precision X (which was displaying overlay) as well as my FRAPS (which was also displaying overlay). I'll find out which one is crashing the games.


    6. It's EVGA Precision X.

  8. Game still has a LOT of ghosting. Especially in the headquarters view and when picking your team on the player select screen. Is this fixed?

    1. Ghosting is due to display.

      If your talking about anything else been playing all day, no issue.

  9. Hi

    There's a stage where you fight on swampy ground. The shadows (I think) are borked over the water. This is the only dodgy stage I have noticed so far. The rest is spot on. Just thought you might want to know.

    1. Can confirm this, shadows are foobar over the water on swampy mission. Turning 3D off for this level ;-)

      Thanks for the amazing work though, everything else looks great!

  10. My heartfeld thanks for this fix. The game looks almost 3D Vision Ready to me (Asus VG278H monitor).

  11. If anyone wants to play a few multiplayer matches add eqzitara.

    Im not sure if there is a region lock (USA here)

  12. Can you also add an undo perhaps. I'm kinda reluctant to install as I'm playing the game a great deal and don't want to screw something up.

    1. install it. Only effect visuals.
      Want it gone? Delete d3d9.dll

  13. Thanks for the fix!! I thought XCOM had great potential for 3d Vision and was eagerly awaiting a fix like this. This will breathe new life into the game for sure. :)

    Apparently it's been out for a while and I didn't notice it until I noticed a link on the King's Bounty Warriors of the North fix. Have you considered adding it to XCOM Nexus?

  14. HI!

  15. Just beat it, Great time. Sometimes game can be unfair but its a great game non to less and 3D works amazing with the depth setting. Big thanks.

  16. I wonder if a shadow fix for the default UDK version could be made since currently shadows do not scale well when convergence is being changed

  17. I'm not sure if this has anything to do with the Helix Mod, but neither nvidia nor 2K have been helpful with my issue. When running the game in 3D Vision and using Alt + Tab and then getting back into the game 3D Vision will be turned off completely. I have to restart the game manually to enable it again as hitting Ctrl +T nor pushing the button on the 3D Vision sensor does not help.

    1. I dont have xcom install atm so I cant give exact folder directions but here.

      Go into my documents
      go into xcom folder then into config folder(?)
      look for something like a .ini with engine in the name
      Search for AllowNvidiaStereo3d change from AllowNvidiaStereo3d=False to AllowNvidiaStereo3d=True

    2. err nm helix wrote it in instructions
      If you can't get game work in 3D - open "Documents\My Games\XCOM - Enemy Unknown\XComGame\Config\XComEngine.ini" file, serach for "AllowNvidiaStereo3d" and replace it from "AllowNvidiaStereo3d=False" to "AllowNvidiaStereo3d=True".

    3. I guess I wasn't clear enough. 3D Vision works just fine. But when I use "Alt + Tab" to get to the Windows desktop whilst running the game and then getting back into the game afterwards, 3D Vision will be completely turned off. Other games will just go back into 3D Vision after using "Alt + Tab", but not XCOM. I have to completely restart the game to enable 3D Vision again.

    4. Ok nevermind...I saw my error now...I thought I already modified the XComEngini.ini, but I forgot that I reinstalled the game. Since 3D Vision works even without setting the "AlloNvidiaStereo3D flag to true, I assumed I already modified it. Silly me. Alt + Tab works fine now!

      Thanks for pushing me into the right direction ;-)

  18. - I wanted to confirm this fix still work on current versions (below).
    - If shadows are not right after adjusting convergence or separation use the “J” or “K” key to load the profile. It makes it redo the 3D stereo shadows. Then you can tweak your settings and save them with F7.
    - The swamp water tiles seem to cast a shadow. Probably can’t be removed without removing all shadows. I use the “K” profile to set separation (Nvidia calls it depth) to the lowest value so there is no 3D and the water tile ‘shadows’ go away.
    - With this game I don’t mind the toyification so can use high separation. I use the base’s ‘ant farm’ glass cutoff point to set the convergence plane.
    - Use a Windows 360 controller and the 2D screen depth mouse pointer is not an issue. Park it in the lower right corner and you’ll never see it.

    Versions I am running as of 5/30/2013:
    Nvidia 320.18 using 3DTV play.

    XCOM via Steam (from \Steam\steamapps\common\XCom-Enemy-Unknown\Binaries\Win32\Version.txt)
    Date: Wednesday, February 20, 2013 12:47 PM
    Changelist: 356266

    Thanks for providing this!

  19. Damn, I played 9 hours straight to this game lol

    Thanks a lot for your work, before trying helix mod, I tryed the game without it, and thos 3 minutes were awful.
    Like I said 9 hours with it. It's just sad that it's you that have to made the job of Nvidia :o

    1. Ugh... seeing this in my inbox made me want to play Xcom[helix's patch] so much..... especially after the bitter disappointment of the bureau.

  20. Just downloaded the fix, been toying around with a few setting to see where I like things. I have a question though, do I need to use F7 to store my convergence and separation settings for your fixes or can I just use the default save feature that nvidia has? It seems like if I save it using nvidia's tool yours overwrites it?

    This game looks fantastic and the only thing that I had to change from your settings were the hotkeys. Since you can name your characters in this game I didn't want to have my screen spaz out while I typed their names :)

    Keep up the good work my friends!

    1. I think the problem is your nvidia hot key conflicts with F7. [Ctrl F7].
      Can change your keys @
      nvidia control panel-> set up stereoscopic 3d->set keyboard shortcuts-> advanced

      The Key to save settings is for a seperate setting other then your default. So in certain situations like combat/ base.

  21. This fix doesn't appear to be working with the 'Enemy Within' expansion. Is there a way we can enable it?

  22. Thanks for the 'Enemy Within' XEW tip ;)

  23. Thank you for the mod, HeliX. 3d users are often last on the priority list so I really appreciate the support you've shown to the community. A few questions, if I may.

    After installing your mod, the default nvidia overlay comes up now everytime upon loading the game concerning it's compatibility rating. It's not a huge deal, but is there a way to get rid of that while using your mod? Normally it is removed upon ctrl+alt+ins and saving profile, but I'm guessing your mod overwrites the nvidia profile so it seems to think it's being run for the first time each time I run the game, even though I've tried saving the profile, both the nvidia profile and your mods profile.

    Also, are there any settings in any .ini files that may replicate roughly what you're accomplishing? I'm mostly interested in how to remove the "disco" lights without having to run the mod if I have any issues. Thanks again for all your great work!

  24. I've been getting black artifacts on the faces of my soldiers in Enemy Within while running the mod. As of now it's the only thing I've been able to find that is bug related. Any possible fixes that anyone may know of?

  25. I cant get SweetFX to work with this particular fix. I have proxyed it and made duplicates of dx9settings in main folder and also in binaries but no SweetFX

    1. nevermind that. I realise that the helix mod and sweetfx needs to be in BOTH main binaries\win32 and enemy within's binaries\win32 both with seperate proxy's. got it working now :)

  26. Works also great with Long War mod. Thank you very much!

  27. This fixed used to work for me on older windows, but it is crashing now upon launching game for Windows 10.

    I disabled steam community and uninstalled Precision X. Crashes persist for both both Enemy Unknown and Enemy Within, deleting the 3d vision fix files makes the game work again :/

    1. I found the culprit was Razer Synapse. Once I turned it off the game worked.

  28. 3D Vision doesn't disengage when quitting the game. Any ideas? Thanks.

    1. Maybe check your 3D Vision Control Panel and see if the 3D is set to 'always on'. Haven't heard of this problem before. Also check to be sure the game is fully exited. Some games will crash or hang on exit without cleaning up. Look in the task manager.