crosire / d3d8to9

A D3D8 pseudo-driver which converts API calls and bytecode shaders to equivalent D3D9 ones.
BSD 2-Clause "Simplified" License
911 stars 83 forks source link

NFS HP2 (2002) transparent cars #55

Closed spartaque12 closed 6 years ago

spartaque12 commented 6 years ago

hey crosire , d3d8to9 doesnt helped me to fix dat bug , i tried all cracks and versions of games , still transparent cars :/

https://imgur.com/a/ErO9r

elishacloud commented 6 years ago

This is happening because of an issue with the VertexShader. The log file is showing this error:

D:\Games\Need For Speed Hot Pursuit 2\memory(39,5): error X5335: Dest register cannot be the same as first source register for m*x* instructions.

The exact line that has the error is here:

    m3x3 r3, r3, c5

Notice how both the destination and the first source register are both r3, which is not allowed in d3d9.

I created a patch for this. You can download it here:

d3d8.zip

spartaque12 commented 6 years ago

elishacloud , thank u so much

elishacloud commented 6 years ago

This should be fixed with the latest release v1.7.0.