Welcome, Guest.
Username: Password: Remember me

TOPIC: d3d8to9

d3d8to9 1 year 8 months ago #1

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
ReShade's Direct3D8 to Direct3D9 component, a pseudo-driver module that intends to improve compatibility and stability in games using Direct3D8 for rendering by converting all API calls and lowlevel shaders to equivalent Direct3D9 ones, is now open source under the terms of the BSD 2-clause license.

I decided to go down this route in the hope for it being useful to the community and to improve it together, since it's still one of the most problematic parts of ReShade. Any contributions to the project are highly welcomed =).

Source: https://github.com/crosire/d3d8to9
Download: http://reshade.me/d3d8to9
Cheers, crosire =)
Last Edit: 1 month 2 weeks ago by crosire.
The administrator has disabled public write access.
The following user(s) said Thank You: JPulowski, Wicked Sick, Alex_outer, padolamap, BillyAlt, brussell, Ganossa, jas01, TinchO, YOBA and this user have 4 others thankyou

d3d8to9 1 year 8 months ago #2

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
Thanks man! We owe you so much for this!
The administrator has disabled public write access.

d3d8to9 1 year 4 weeks ago #3

  • ScarecrowDM
  • ScarecrowDM's Avatar
  • Offline
  • The HUE Maker
  • Posts: 22
  • Thank you received: 6
I must be blind or my google skills are failling me, but can you please link the binaries?
Thanks in advance!
The administrator has disabled public write access.

d3d8to9 1 year 4 weeks ago #4

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
ScarecrowDM wrote:
I must be blind or my google skills are failling me, but can you please link the binaries?
Thanks in advance!
It's part of the ReShade binaries. A standalone binary is not provided, you would need to build it from source code if you want one.
Cheers, crosire =)
Last Edit: 1 year 4 weeks ago by crosire.
The administrator has disabled public write access.

d3d8to9 1 year 4 weeks ago #5

  • ScarecrowDM
  • ScarecrowDM's Avatar
  • Offline
  • The HUE Maker
  • Posts: 22
  • Thank you received: 6
I see.
I remember of previous versions being shared by CeeJay on Guru3D, but I realize now that maybe was a different thing.
I'm wanting to test some DX8 games under Wine using it.

No worries though, thanks for the reply!
I'll sure take a look on github later.
Last Edit: 1 year 4 weeks ago by ScarecrowDM.
The administrator has disabled public write access.

d3d8to9 11 months 3 days ago #6

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
Last Edit: 11 months 3 days ago by lowenz.
The administrator has disabled public write access.

d3d8to9 9 months 1 week ago #7

  • ScureHD
  • ScureHD's Avatar
  • Offline
  • Posts: 4
  • Thank you received: 1
Any news on better DX8 to 9 conversion? No one used the sources?
The administrator has disabled public write access.

d3d8to9 8 months 4 days ago #8

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
There's still a lot of work to do.
Same old Z-fighting issues with version 2.0.3 (dege found a way to solve this problem in dgvoodoo2, but dgvoodoo2 wrap to d3d10.1/d3d11 not d3d9):

The administrator has disabled public write access.

d3d8to9 8 months 4 days ago #9

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
Another bug (Chrome): see the tree shading issue just moving the mouse (camera) a little bit

The administrator has disabled public write access.

d3d8to9 8 months 4 days ago #10

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
The project is open source. Anybody is welcomed to send in changes. I personally don't have the time to continue, it works well enough for me.
Cheers, crosire =)
The administrator has disabled public write access.

d3d8to9 1 month 3 weeks ago #11

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
Good news!

The *complete* DXSDK is not really needed.
This subset is enough: github.com/hrydgard/minidx9

You can simply
1) copy the "include" folder files in crosire project "source" folder
2) modify: #include <d3dx9shader.h> -> #include "d3dx9shader.h" (<> -> "")
3) copy the "lib\x86" folder files in crosire project root folder
4) retarget the solution to your SDK (mine is Win10SDK + MSVC 2015 CE)
5) compile&link and you're good to go!
Last Edit: 1 month 3 weeks ago by lowenz.
The administrator has disabled public write access.

d3d8to9 2 weeks 9 hours ago #12

I just tried the Direct3D 8 to 9 wrapper with the GOG version of Red Faction 1, the PureFaction update, and of course, ReShade. It crashes with an error, saying it cannot find msvcp140.dll. I googled the name and discovered it's part of the Visual C++ redistributable for Visual Studio 2015. But the download page at the Microsoft site has 2 available versions: 32 bit and 64 bit. Which one is correct?
Last Edit: 2 weeks 9 hours ago by Devil Master.
The administrator has disabled public write access.

d3d8to9 2 weeks 8 hours ago #13

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
32 bit. There are no 64 bit DirectX 8 games.
Cheers, crosire =)
The administrator has disabled public write access.

d3d8to9 2 weeks 6 hours ago #14

Okay, I got it working. But does it grant ReShade access to the depth map?
I'm asking because I tried it with the SuperDepth3D.fx shader (to play Red Faction in stereoscopy) and all depth maps are either completely black or completely white, with no depth effect whatsoever (at most, the whole flat scene is pushed forward with white depth maps).

EDIT: maybe it's the game's fault The same thing (no access to depth maps) also happens with dgVoodoo.
Last Edit: 1 week 2 days ago by Devil Master.
The administrator has disabled public write access.

d3d8to9 2 days 12 hours ago #15

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
Downloaded and compiled the lastest version:

Pure D3D8:


With the wrapper:


!!!!!!!!!!!!
The administrator has disabled public write access.

d3d8to9 2 days 12 hours ago #16

  • lowenz
  • lowenz's Avatar
  • Offline
  • Posts: 158
  • Thank you received: 15
15.000 points of difference @1920x1080 with MSAA 4x and uncompressed textures.....it's awesome.
And the wrapper works really well in UT2004 (32 bit) too.
Last Edit: 2 days 12 hours ago by lowenz.
The administrator has disabled public write access.