Saturday, August 16, 2014

X-Rebirth - 3D Vision Fix: *** 64bit Update

3D Vision Fix by mike_ar69


**UPDATE 
The latest version of XR (from 2.1 onwards) is now a 64bit executable.  For the current fix to work at all (e.g. the hud etc) you need to use the 64bit helix DLL found here:-
- https://s3.amazonaws.com/-HeliX-/DllsModPack.zip
and then look in this folder:
- dlls->release-x64->d3d9.dll


This worked for me in testing.

NOTE: the SLI fix is still not updated since an earlier game update broke it.  Since they are still making major fixes to this game all the time, I am not keen on wasting my time just yet.  However, this 64 bit update was easy to rectify for now.

You can currently remove the stuff that renders incorrectly in SLI by either (a) setting shaders to "low", or (b) using the "legacy shaders" option.   Option (a) looks much better though.


Fixed - Current version v3.4
- Can now change convergence to higher values and the cockpit remains in place
- Provided two hotkey settings (key "9") for convergence (outside the cockpit)
- Provided Toggle (key "0") to show and hide cockpit - this allows even higher convergence and is nice to fly around and look at the universe unimpeded.
- Added extra toggle key (key "8") to enable or disable the hud fixes so it does not affect walking around when landed
- Added toggle key "7" to toggle the hud (markers etc) on and off when the cockpit has been disabled for a completely 'clean' screen.  Also turns off the round cross-hair.  Does *not* turn off the mouse cursor.
- Provided a separate depth setting for markers and info icons.
- Provided a fix for SLI users that may be experiencing lighting rendering issues (yellow environmental lighting that is turned on with medium or high shaders)




v3.4
- Added toggle key "7" to toggle the hud (markers etc) on and off when the cockpit has been disabled for a completely 'clean' screen.  Also turns off the round cross-hair.  Does *not* turn off the mouse cursor.

v3.3
- Extended the key "8" to make the markers and icons a bit closer for when walking around, and also set the convergence back to a low value so it's tolerable (in case a high value had been used for flying around and was forgotten about).

v3.2
- Fixed loading screen issue
- Fixed minor issue where planet texture was missing when toggling the cockpit off...
- Fixed the defaults for 'fix on/off' and 'cockpit toggle on/off' to be 'on' and 'off' respectively.

Notes
** Walking around on stations - you need to use the low convergence (0.602) toggle, or press the "8" key to disable the cockpit fix.
** It seems the issue with the Mouselook has come back when landing at stations.  I've tried lots of DLLs but they all have the same issue.  The one that fixed it in v2 prevents the hotkeys from working for the cockpit.  It works with keyboard and controller.

- I provide separate installers for the SLI fix and no-SLI fix.
- The approach to 'lock down' the cockpit currently has it fixed and 0.602-ish.  This puts the cockpit steering wheel thing just out of screen depth.  I did not provide a toggle to change this to higher depth.
- I was unable to separate dialog text from other text in the game.  Sorry.
- Menus are currently still at depth.  For whatever reason I can't seem to isolate the textures for the info icons or the menus...
- Using the key "8" toggle can get confusing if used in conjunction with keys "9" for changing separation, and key "0" for toggling the cockpit view on and off, since it disables both operations of correcting convergence and toggling the cockpit.

Outstanding
- The mouse cursor is still at screen depth.  I am looking at this, and if it can be fixed I will do so.
- If anyone can work out why the mouselook is so flakey that would be great.  I noted on Egosoft forums that it seems to be an issue with the game even in 2D for some people, so I am going to wait until Egosoft have a fixed a few more bugs.

Installation
Steps:
NON SLI Version
1. Extract this zip file to the games exe directory.  In my case this is D:\Steam\steamapps\common\X Rebirth
2. Run the game.

SLI LightFix Version
3. Extract this zip file to the games exe directory.  In my case this is D:\Steam\steamapps\common\X Rebirth
2. Run the game.

70 comments:

  1. Many, many thanks! Downloading right away - extremely delighted that you tackle these issues, thumbs up!

    ReplyDelete
  2. Have somehow lost the ability to move via mosue on stations.. likely an X-Rebirth bug and not related to the 2D marker fix (which works very well! Most welcome!). Will have to investigate further..

    ReplyDelete
  3. I've Updated the DLL with one that BazzaLL (Nvidia forums) found solved the mouse problem - thanks.

    Everyone - please let me know any other issues I've barely played the game yet, but wanted to get this 2D marker fix out to make the game playable.

    ReplyDelete
    Replies
    1. Hey great work btw. for some reason right off to the side in the cockpit down at the floor there is a part where you can see space and it is 2d I believe. Also I stumbled upon a partial fix for the game defiance but don't have the knowledge to fix it myself. Anyways I found that If you add the latest omnipotus sweetfx fix for defiance it renders in 3d with some convergence. just wondering if anyone had time they could take a look at it. thanks.

      Delete
    2. I'll have a look later at the 2d part. Not sure I understand what you mean about Defiance? SweetFX does not do any 3d changes?

      Delete
    3. Hi Mike_ar69, Is it possible for you to let me know where you got the fix from for the mouse problem on stations as im having same trouble and looked on nvidia forum and cant seem to find anything about it, Hoping you reply because fix works great but without that DLL file and getting my mouse control back i will have to take it out. Please some body put me out of my pain, lol

      Delete
    4. I'll have another look at the DLL/Mouse Look issue, now that there have been several X-Rebirth Patches. I followed the Rebirth forums and patches and it was a known issue for non-3D gamers as well. TBH, I've still hardly played the game, so it will be refreshing to have a quick look at it again, though it I am guessing I might need to re-write the DX9Settings.ini file using the old DLL notation. I will note that I use a controller for this game (when I do look at it) and that works in docking stations just fine - that might be a short term solution if you have one.

      Delete
  4. Do you know how to set the convergence higher than it will allow you to? cause I have a game that needs just a little bit more top work.

    ReplyDelete
    Replies
    1. I don't understand? You can keep pressing Ctrl-F5 and it will keep increasing convergence. DO you mean separation (depth)? There is a registry depth hack for that (I am using it myself with this game to counter the slight flatness that the game has due the need for low convergence to keep the cockpit viewable).

      Delete
    2. the game starts of with just the whole screen image pushed back. Then I press convergence and the image splits up and comes back in 3d but with the edges showing and the showing an extra piece of the hud. If the convergence hadn't stopped it would have been perfect. please help

      Delete
    3. I'm still not quite getting it... Is your depth at full 100% (as shown by the on screen green indicator?) Start off by pressing Ctrl-F6 for ages until the convergence is really low and everything looks flat against the back ground. Then press Ctrl-F5 to start increasing the convergence until the cockpit looks normal (the front part of it at screen depth, or just popping out). Are you saying there is something else going on that is 'erratic' in the game? I'm not sure what you mean by "edges showing" and "an extra piece of the hud". Best thing to do is take a screenshot using Ctrl-F1. This will put a screenshot in "C:\Users\\Documents\NVStereoscopic3D.IMG". If you daon't have one already, create a photos account at 3dvisionlive.com here: http://photos.3dvisionlive.com/ (make sure you select the 3D Photos tab). Add the image. When added select the image to view it and copy the browser URL into a new comment here.

      Delete
  5. Does anyone tried it with sli? i cant get the game run with sli on...

    ReplyDelete
    Replies
    1. I am SLI and the game works here (2x770). The game has many issues, and actually no official SLI profile or support anyway. I am running it one one card right now, since I get lighting issues in 3D in SLI...

      Delete
    2. Thanks for your feedback. I have a 570 SLI and im unable to run the game with sli on... I tried bioshock profile too.

      Do you mean that the game show light issues only when sli is activated? that sounds weird...

      Thanks for you work, i think im gonna start this gaem with sli disbled.

      Delete
  6. It's for a different game. I'm just wondering how I can get the convergence up just a little bit higher. I pressed F5 and it went as far as it could go.I was just wondering if it was possible to get it to go a tiny bit further somehow.

    ReplyDelete
    Replies
    1. Ahh right. Sorry, I don't know :-(

      Delete
    2. Thanks I just had to fiddle with it.

      Delete
    3. Change your keys. Its possible that whatever game patch has F5 in use.

      nvidia control panel->set up stereoscopic 3d-> keyboard shortcuts -> advanced.

      Delete
  7. Is there anything you can do about the flatness to space? The 3d is good in the ship but not quite so good outside lol.

    ReplyDelete
    Replies
    1. I doubt it. I just posted here: https://forums.geforce.com/default/topic/638069/x-rebirth-holy-shhh-/?offset=58#4021472 about a way to increase depth which does have some small effect.

      To be fair though, it is realistic that the outside world is flat, because technically it is all a very long way away and our perception of depth stops after about 300m. I guess the problem is that even when flying really close to something there is still never the feeling of it being actually close.

      Delete
  8. Thanks Mike! The 3D looks awesome now!

    ReplyDelete
  9. Do you think you will make any other fixes for this game?

    ReplyDelete
    Replies
    1. I am going to add more granularity to the depth fix for the different icons and so on, and the menus, but that's all. I have a lighting issue that only I seem to have in SLI, so I am not going to spend time on that until the game actually gets an SLI profile. Otherwise there is not much else wrong is there? Game is really very good in 3D right now.

      I *might* have a look at seeing if I can separate the HUD from the World to allow different convergence settings - this could provide two advantages: (1) make the world less flat by increasing convergence but keeping the hud on screen (2) allowing the hud to be removed to you can actually see the world in all its glory. But I don't know if its actually possible.

      Delete
    2. the huds on the monitors are to deep is there something you can do with that?

      Delete
    3. there is a mod on X rebirth nexus mods that allows the cockpit to be removed. don't know if that helps.

      Delete
    4. Thanks for the heads up - I just looked at it, and it is a 'reduction' of the cockpit, but it might allow higher convergence because there is so much less of it. Since the mod works by "moving" cockpit elements about, I might be able to move all the elements into a higher z-value which will also allow higher convergence as well. I'll have a play at some point (not sure when).

      Delete
  10. The icons and texts on stations are a bit problematic right now as they are pushed quite far back right now. Perhaps a solution can be found to ahev those more in the foreground?

    ReplyDelete
    Replies
    1. Yes it can, and I am going to do that :-) There are quite a lot of different textures that need separating and I am still working through it. I put this initial fix out to at least make the game playable. v3 is on its way :-)

      Delete
  11. Cool to hear! Looking forward to that :-)

    ReplyDelete
  12. Fantastic work mike_ar69!!! Thank you, Thank you, Thank you !!!! This is a great space sim and in 3D Vision is totally immersive and perfect!!!
    One little request: Can you do the same fix for hud/crosshair of the game Hawken?? It is a great mech sim and unfortunately is totally unplayable in 3D Vision because of the wrong depth of crosshair which interferes with the central view!!!

    -stamdd

    ReplyDelete
    Replies
    1. Never played Hawken, but as an online FPS you may find yourself getting banned if you used a Helix fix (no one ever has yet, but it's always a risk where there is any suspicion of 'competitive advantage' being gained from a mod). Post this in the Nvidia forums, someone may want to pick it up, but I don't have time, I am sorry :-(

      Delete
  13. Any word on an update Mike?

    ReplyDelete
    Replies
    1. Nope - I have a full time job with an upcoming deadline, a wife and 2 kids... ;-) Hope you understand that. When I get the time to do this, X-Rebirth is my priority (I have a task list for 3 lego games and AVP3 as well). Working on games mid-week is not easy, I tend to do most at weekends.

      Delete
    2. I understand completely thanks for keeping me in the loop. You do great work.

      Delete
  14. merci pour votre travail Mike. :-)

    ReplyDelete
  15. A big thanks for this, Mike !

    ReplyDelete
  16. hi, mike thanks for the fix, i am spanish and i read the subtitules, but is very dificult to read i see double, can you fix the subtitules in 3D too? thanks again

    ReplyDelete
    Replies
    1. Hi - yeah I agree the text is hard to read. I am able to isolate textures, but the feature for setting depth/convergence separately for them does not seem to be working right now, I may need to try out different (older) DLL versions. If I can I will separate the text display.

      Delete
    2. @mike
      I sent you a pm that might help.

      Delete
    3. thanks to mike and eqzitara, if you could fix it that would be great :)))

      Delete
    4. I have updated the fix, but was unable to separate the dialog text from the text that is used on the game screen with icons and so on. The deep text annoys me as well, but I can't see a way around it except for providing a separate toggle key specifically for text. Now there's an idea... Let me look into it...

      Delete
    5. I trust you found a solution, dont hurry, i expect a few more patches from egosoft for improve performance....i get few fps (20-25) in 3d surround (SLI TITANS) :(((.I really like the game so I wait a little longer.
      note: thanks for te new version of the patch, this being very cool :))

      Delete
  17. Big thanks Mike, this is great!
    And can you tell me how to change the cockpit convergence when it's fixed please?

    ReplyDelete
    Replies
    1. Right now I have "hardcoded" the cockpit convergence to just one value, and it is hardcoded in the shaders. I did this because there is not much to be gained from changing it, though I suspect some people may like a slightly higher, some slightly lower, convergence setting. I could add in DX9Settings.ini constants, but these won't be the same as the convergence presets for the game as a whole that the DLL can 'save' when you change them, they will be a set of probably 3 fixed settings for cockpit that can be cycled through. This would allow someone to edit the DX9Settings.ini file and change them though, if they wanted to.

      If you want to change it in the meantime, you can do so as follows:
      1. Get hold of notepad++
      2. Do a "Find in files" from the menu item
      3. Select the VertexShaders subdirectory under ShaderOverride folder
      4. Type in to the "find" box: "def c220, 0.609531, 0.5, 0.0625, 3"
      5. Type in the 'replace' box: "def c220, , 0.5, 0.0625, 3"
      6. Press the 'replace/find all' button and confirm
      7. Start the game and the cockpit should have the new convergence.
      A warning though is that you can only set the convergence to about 0.8 maximum before the cockpit splits up and is impossible to focus on.

      Delete
    2. EDIT Line 5. should say def c220, [some new number], 0.5, 0.0625, 3

      Delete
    3. Thanks for the reply.

      Delete
  18. hey just wondering if I could get a copy of the old fix? the new fix doesn't do anything different with the depth outside of the ship unless I'm doing it wrong. I press 9 and the cockpit smushes up and when I use convergence to bring it back, Its the exact same.

    ReplyDelete
    Replies
    1. Somethings wrong then. Delete the current installation (d3d9.dll, dx9settings.ini and shaderoverride folder) and do a clean install. If when pressing "9" the cockpit goes wrong, press "8" to make sure the fix is enabled. I added this hotkey in to disable the fix when walking around stations and ports etc, and it may be 'initializing' to the 'off' setting - I'll check it out.

      Regarding what happens with the presets. The two presets I provide on the "9" key are entirely configurable - simply press the key to get the setting, change convergence with the nvidia hotkeys or wheel button, then press F7. You can change convergence to anything you like but what happens if you set it too high is that the cockpit starts to stick inside things that it gets really close to. The setting I have of 4.5 (or whatever it is) was chosen to make sure that 'just' stops happening. If you press the "0" key and toggle the cockpit off (and by the way if the "8" is in the disabled setting, the cockpit will not disappear, that's one way to know), then you can set the convergence much higher. I have noted in this comment thread though (I think) that the 'flatness' of space is quite accurate, because it is all so far away. The convergence setting I set of 4.5-ish helps to ensure there is depth and space between objects when you are near to them, but does nothing at all for objects very far away - you need to increase convergence yourself if that is what you want, but actually all that will do is brig objects closer to you and make them look smaller until you get toyification - it's a fantastic 3d effect but has absolutely no sense of scale. Finally, I think I also posted somewhere above that one of the best ways to improve the sense of depth is to modify the registry setting for what nvidia defines as the monitor size - this then increases the IPD and can dramatically increase the farthest depth beyond the default - and note this is actual depth, not convergence.

      Delete
    2. OK I did some testing and the hot keys to enable/disable the fix as a whole and the one to toggle cockpit are defaulting to 'off', which is why you are seeing a mess when pressing "9". I'll fix it asap.

      Delete
    3. The v3.2 fix sorts this initialization out (well it works for me...).

      Delete
  19. Hey just wondering If the hud fix can work with different depths and convergence? Cause when I start the game the huds are always way off, then I try to change convergence but it won't let me. So I have to turn off the hud fix. I like my cockpit normal not smooshed up and I would like the huds to be proper and not sunken in. Can I have both lol? thanks for all your hard work.

    ReplyDelete
  20. Hi - I'm sorry but I don't understand what you are describing? With v3.3 the game should initialize correctly - is this the version you are using? If so, please let me know and I will investigate. You can change convergence as much as you like regardless of this fix - the fix keeps the convergence of the cockpit constant (that's the point of this) but the convergence outside the cockpit changes - just remember you are in space and everything is far away so convergence changes only really affect close up objects.

    ReplyDelete
  21. Hey Mike,

    Let me start by saying what a fantastic mod and it's very much appreciated. Especially love the option of being able to remove the cockpit with a single stroke of the key making it far more enjoyable to fly around, great work.

    Got a quick question though and i am not too sure if you may be able to help. I am looking to also remove the entire hud including the crosshair and mission and soft target arrows for both highres screenshots and movies. I have managed to remove the entire cockpit via the units_player_cockpit_1.xml file but cannot for the life of me figure out how to remove the rest.

    I assume it can be done as when walking in stations the soft and mission targets are not present, only the crosshair is but i am not too sure. If you may have any idea where it may be located or if/how it can be removed it would be greatly appreciated.

    Either way thanks for the mod :)

    ReplyDelete
    Replies
    1. Hi - yes I can easily provide a hotkey to toggle the hud off (including the big round crosshair, and also the spotlight, both of which render at a fixed depth and always render 'inside' close up objects). I meant to do that already, but not had time yet. I do want to fix one issue when the cockpit is toggled off that affects a particular shader when close up to some objects, not a massive issue but from a completeness perspective I want to sort that out.

      Note that I don't do anything at all with game assets or files - I don't touch any of the config files or anything - it's all runtime shader fixes. I was using the 'reduced cockpit' mod myself, but I found it tedious going into the menu and enabling/disabling extensions, and given the problems this game has had with save games that use extensions when new patches have come out, I decided to stay away from them for now. Put a watch on this page, you'll get an alert when I do the update :-)

      Delete
    2. You sir are a legend :)

      Many thanks for the info, it's much appreciated and i look forward to seeing this feature in a future update.

      Cheers.

      Delete
  22. Mike you are awesome!! Thanks for the fix. Any chance on getting a fix for F.E.A.R 3 or Red Faction Armageddon in the near future?

    ReplyDelete
    Replies
    1. I loved FEAR1 and 2, they kinda 'introduced me' to how good 3D games can look. So I looked at FEAR3 ages ago, and it was an absolute mess. I have a lot more experience with these fixes now so I could go back and have a look, but my recollection is that it was just a disaster to look at and sort out - probably the worst game to work with I've ever seen to date...

      I also started to look at Red Faction Armageddon a while back because I'd really like to play that as well. Unfortunately the helix dll did not work well with this game and I was unable to work on it - I think framerate slowed down to 3 FPS or something, so it was impossible to work with, and another DLL version I tried immediately introduced visual artifacts, and yet another dll version crashed the game. That being said I have not tried the very latest DLL and I know a few more tricks about setting sample registers and so on which might stop the game crashing.

      Before I do any of this though I am going to implement the X-Rebirth toggle requested by someone above, and try and fix the shader issue when close to objects in hidden cockpit mode. Then I am going to complete AVP3 (skybox issues). Then my LEGO fixes (patch up the HUDS). So I've a few things on my TODO before starting something new.

      Delete
    2. Awesome thanks a lot. can't wait. Let me know here how it goes after you have checked them out. I understand it will be some time till you get around to it. thanks again

      Delete
  23. thanks for taking it into consideration. And thanks for the AVP fix, that one especially awesome.

    ReplyDelete
  24. OK, I added a toggle key "7" to turn the hud (markers and icons) off when the cockpit is hidden. I do not toggle the hud on and off when the cockpit is visible because that currently also turns off the heads up and information screens. It's basic, but does the job, and provides a clean view when flying around for screenshots, video etc. NOTE: does not turn off the mouse cursor, so if you want nothing on screen at all, use a controller. I tested it an it seems to initialize properly. ALSO NOTE that this toggle hides menus as well, so you need to un toggle it if you need to access the main menu, or un toggle the cockpit view.

    ReplyDelete
    Replies
    1. Gave it a whirl and this feature is fantastic. Love how it also removes markers and icons giving you a totally clean view of the universe. Exactly what i was after.

      Thanks again Mike, very much appreciated.

      Delete
  25. Hi Mike I can't seem to get the mouse look to work on space stations. I tried pressing 8 but it did nothing. I know I'm missing something lol thanks

    ReplyDelete
    Replies
    1. No this is a known problem with the DLL - I put this in the notes above. Pressing 8 disables the cockpit fix.

      Delete
  26. Hi mike

    unfortunately the mod doesn´t work with the 64bit version. Egosoft will cancel the 32Bit Version of the game. I loved to play the game with your mod. It would be great if the mod could be converted to the 64bit version. thx

    ReplyDelete
    Replies
    1. I highly doubt that since then it would be false advertisement for all 32bit users.

      Anywho try..
      https://s3.amazonaws.com/-HeliX-/DllsModPack.zip
      dlls->release-x64->d3d9.dll

      Delete
    2. Thank you very much! The x64.dll works!
      Since the new pacht the default exe is 64 bit. The xrebirth system requirement was allways 64bit OS. So there is no false advertisement ;-)

      Delete
  27. Just in case, if anyone is still interested, I've found that adding the line "InitMouse = false" (without commas) under the section [General] in the file DX9Settings.ini, makes the mouse work again for people who don't play with a controller, like me :)

    ReplyDelete