Themabewertung:
  • 1 Bewertung(en) - 5 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
[WR2][GFX][REL] WR2 DX9 by AnKor (SweetFX Support)
#1
Hi!

This is so called DirectX converter which allows to run World Racing 2 in DirectX 9 mode.
While such upgrade doesn't immediately provide much benefits it allows to use SweetFX which doesn't work with DX8.
All you have to do is to extract the archive into the game's folder (the one where WR2_PC.exe is).

You may also need to get the latest version of DirectX 9.0c: http://www.microsoft.com/en-us/download/...aspx?id=35

Finally, you should know that SweetFX has one specific requirement: in-game antialiasing (MSAA) must be turned off.
And this converter is already configured to automatically turn antialiasing off - this can be changed in d3d8.ini if needed.
Good news are that even if in-game antialiasing must be disabled you can still use your video driver's control panel to override and enable it again.
This may sound kind of odd ("disable here, enable there, what's the difference?"), but that's how it works.

Well, that's all (almost).

Good luck!
AnKor.

-- And now some more info for advanced users --

This converter may work with other DX8 games, not just WR2, but I haven't tested it.
It comes with a single file in ShaderMods folder which is WR2 specific, so you may get rid of that file for other games.

Additionaly it has one advanced feature, which was initially required to make it work properly with WR2, but may be used for other purposes.
WR2 uses pixel and vertex shaders version 1.1 which were standard for DirectX 8.
DirectX 9 introduced shaders 2.0 (and later 3.0) but it seems the compatibility with shaders 1.1 was slightly broken somewhere.
For one of the pixel shaders I was getting "error X5539: Modifiers are not allowed on constants for ps_1_x." which is a mystery even for google.
Luckily there was just one such shader which I successfully rewritten with using PS 2.0 HLSL.
To make it possible I've build a simple framework allowing to save all in-game shaders as PS/VS assembly and then load updated ones even with more modern profiles.

If anyone familiar with DirectX shaders will ever want to tackle with this feature, here is the details:
To save ingame shaders set
DumpShaders=1
in d3d8.ini and run the game. Note that if you also have LoadShaders=1 and a shader is loaded from the file it won't be written this time.
Shaders will be stored in "ShaderMods" folder and named ps_NNNNNN.psa and vs_NNNNNN.vsa.
Pixel shaders are stored exactly as they are in game.
Vertex shaders are upgraded to DX9 standard by adding vertex input declarations.
NNNNNN is unique number by which the shader is identified in game. I believe it is a pure luck that these numbers are constant in WR2, so it may or may not work with other games.

To support modern shader profiles you need to make a copy of the file with the same base name but different extension:
.psa -> PS assembler.
.ps20 -> HLSL, 2.b.
.ps30 -> HLSL, 3.0.
.vsa -> VS assembler.
.vs20 -> HLSL, 2.0.
.vs30 -> HLSL, 3.0.

Entry point for HLSL is either "ps_main" or "vs_main".

Note that Shader Model 3.0 requires both pixel and vertex shader to be SM 3.0. However, that one shader compiled as PS 3.0 worked well even without corresponding VS 3.0. Not sure why.

I doubt there is much demand for such modding of DirectX 8 games, but the feature is there and if anyone is willing to waste some time - you are welcome Smile

AnKor.
-----------------------------

Many thanks to AnKor who made this great Converter. Smile
Many thanks to Synetic, who gave me original WR2 Shaders, as them helped the development!
Thanks alot to CeeJay.dk for SweetFX!
Thanks alot to Terrasque for SweetFX Configurator!

A.G.
-----------------------------

DOWNLOAD HERE DX9 Converter by: AnKor

DOWNLOAD HERE SweetFX 1.5.1 by: CeeJay.dk + Configurator 1.3.3 by: Terrasque

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

SweetFX: OFF

[Bild: WR2_SWFX_OFF.th.png]

SweetFX: ON (Personal Settings)

[Bild: WR2_SWFX_ON.th.png]
Antworten
#2
It's a really good tool! There is a noticeable difference in original game 8X AA and (for me) 32X AA, especially on grass and trees. I hope You will inform us about future updates here, in this topicWink

Greets
Matt55
[Bild: mnHbKcd.jpg]
Antworten
#3
sweet mod, I was waiting for something like that so long, thanks a lot for sharing.

Is possible now make car models with bumpmapping texture effect?
[Bild: LPB_signature.png]
MBWR/WR2 modder since 2004 untill 10.12.2011
Antworten
#4
@TomWin: No You can't, This works almost on the same way as ENB series mod.
To make WR2 work with bump-mapping, someone should redo the WR2 code to make this possible.
[Bild: mnHbKcd.jpg]
Antworten
#5
This is a converter that allows using all the effects of SweetFX correctly in wr2, but it also works with ENB Series too, even if the only working effects are Bloom (like the old vice city ENB we already know) and the Motion Blur. So this is why I recommend you using SweetFX than ENB, you have more edit options, and the FPS drop is lower than ENB Series.

If you still want to try ENB Series, you need the Generic ENB though,
no more Vice City ENB:
http://enbdev.com/mod_generic_v0076.htm

I hope there are some Coders here interested in this, as half work is done about the shaders, maybe we can get further effects and improvements, like Ambient Occlusion, Depth of Field etc. Wink
Antworten
#6
Can the converter be uploaded in the database? Thanks.
Maybe in a package with the SweetFX standalone included, would be even better.
Antworten
#7
What settings do you recommend? I balanced colors and WR2 and it looks so much better.
Antworten
#8
Here are my current settings so you can know what I have activated and what not: http://www.mediafire.com/view/r2hjcyofi4...ttings.txt
Antworten
#9
I can't add sweetFX to my wr2. I already reinstalled the sweetFX files but I can't select add sweetFX to the game.

Can anybody help or give some advice? Thanks.
[Bild: fc1njm.png]
Antworten
#10
Unpack the SweetFX Configurator inside your WR2 folder, then open it, choose WR2, and activate it.
After this, unpack the DX9 Converter by AnKor inside your WR2 folder.
Antworten




Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste