This DirectX 9 mod is now included as a part of WOFF 2.0 Expansion [edit Polovski: and now updated versions included in WOFF3 and further in WOFFUE]

Only use it wiith WOFF1.


If you have WOFF2, WOFF3 or WOFF UE you should NOT replace its files with any existing versions of my converter. They aren't compatible for now.
If you accidentally do it you will most likely need to reinstall the expansion to repair the DX 9 shaders.[/b]


Updated on August 30th.
A new version. Hopefully stable this time smile
If you are not into testing, crashing your game and losing your pilots then just want to try previous version from March which is available below. And for those who like the risk here is download options:
Installer: https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_DirectX9.20140830.Setup.exe
JSGME: https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_DirectX9.20140830.JSGME.7z
Plain zip: https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_DirectX9.20140830.zip

Quote
Change list:
- Should solve frequent crashes a few minutes into a mission.
- Removed ambient lighting tint until better times (it was an experiment).
- Added a setting into the ini file which allows to reduce shadow quality for better performance and lower memory usage. The highest quality (#5) is the same as it was in prior versions. It is also possible to turn shadows off completely by setting the quality to 0.
- No more shadows on the blurred propeller disc. Also should slightly improve performance.
- Improved performance of point lights (especially noticeable in CFS3 with many guns firing).
- Slight changes in water shader. This one is really difficult to get right.
- CFS3: Experimental self-illumination for reflector sights. Only for stock textures.
- Some compatibility fallbacks for older AMD GPUs. Theoretically it may even run on X1000 series (with shadows turned off though). Of course it is irrelevant for WOFF, but some people play CFS3 on rather old PCs.


Please report any issues in this thread, even if I don't answer immediately I'm still reading everything.

Previous stable version (March 25th) is still available at:
Installer: https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_DirectX9_Mod_Setup.20140325.zip
JSGME: https://dl.dropboxusercontent.com/u/2918136/cfs/D3D8%20Self%20Shadowing%20Mod%2020140325.7z
Plain zip: https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_D3D9_Extended.20140325.Beta.zip

Installer will automatically detect the folder where WOFF (or OFF, or CFS3) is installed or you can specify another folder, but it has to be the one where CFS3.exe is located.
Then it will ask whether you need SweetFX compatibility - this option is turned off by default but you can always edit d3d8.ini manually to change it after installation.
Finally, it will suggest to open DirectX 9 download page. If you are installing my mod for the first time - it is recommended to download and run DirectX installer from that page. If you already have this mod working - you may uncheck the option to skip this step.
You can always uninstall the mod via Control Panel -> Remove Programs. It is called "DirectX 9 Mod for Wings: Over Flanders Fields (version NNNNNNNN)" there.

Very Important!
If the game fails to start a mission while using this converter, make sure you have the latest DirectX 9 installed.
Download automatic DirectX installer here: http://www.microsoft.com/en-us/download/details.aspx?id=35

It will check whether you have the latest version. You see, there are probably 20 versions of DirectX 9, and even though it stopped being updated few years ago you may still happen not to have the latest one.

With this version you can use numpad "0" to switch extended graphics on and off while in game. This is debugging feature useful for comparing the image quality and checking FPS difference.

Additionally a simple version of the D3D9 converter (January 1st) is still available here:
https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_D3D9_Converter.20140101.zip
This version does not enhance graphics on its own, but provides a good FPS boost over the original WOFF rendering.

Important Note:
To be able to use SweetFX with any of these versions you should edit d3d8.ini with a notepad (Windows often shows this file without the .ini part just as "d3d8" with a type "Configuration Settings") and change
NoMultisampling=0
to be
NoMultisampling=1
This will turns off ingame antialiasing which seems to be incompatible with SweetFX.
Please note that I'm not providing support for SweetFX installation and settings, I just made it work with this game and now you are on your own.

-------------------------------------------------

(Original post)

Updated on January, 1st. Happy New Year! smile
Reworked the way display modes are selected which hopefully should solve some issues. If you used older versions of the converter and updated to this one you may need to select screen resolution again in the game (even if it already shows correct one!).
This version may be considered final and stable (of course until I implement extended features like improved lighting).
It gives a good FPS boost (around 20-30%) on my rather old PC (i7 860 2.8 GHz, 4GB RAM, GTX 285 1Gb, 1680*1050), so it may be worth a try even if you aren't going to use SweetFX.

Don't forget to edit the d3d8.ini and set NoMultisampling=1 if you overwrite it with this new version and want to use SweetFX.


As you may know the DX8 to DX9 converter from ENB Series doesn't work with CFS3. That's why I just went and built my own converter with blackjack and h... well no, actually it is just the simplest and straightforward convert at the moment, but I have some ideas about extending it if I have time (per-pixel lighting and shadows anyone? wink ).

See note above. Use at your own risk!
Get it here: https://dl.dropboxusercontent.com/u/2918136/cfs/WOFF_D3D9_Converter.20140101.zip
There are two files in the archive - extract them into your "WOFF\OBDWW1 Over Flanders Fields" folder (i.e. the folder with CFS3.exe).

After that you will be able to use actual DirectX 9 graphics enhancers like ENB Series or SweetFX.

However, to use WOFF with SweetFX you will have to edit d3d8.ini and change one line there:
NoMultisampling=1
By default it is set 0 which means than WOFF multisampling settings are applied. The problem is that SweetFX doesn't like it and requires multisampling to be turned off in the game.
Note that I'm saying "in the game" because you still can use your videocard driver's control panel (or nVidia Inspector) to override any setting and they won't conflict with SweetFX.


Last edited by Polovski; 11/29/17 12:25 PM.