|
| Title: LucasArts was too lazy to fix Jedi Knight, so we did | |
|
Imon, umon...everymon!
|
ZeqMacaw and I have been working on a wrapper for the Direct3D part of Jedi Knight. Zeq gave me a build of it this morning that fixes the awful HOM-like artifacts that most people see with newer video cards when using 3D acceleration.
I did some initial research into the problem but Zeq has done most of the work to make it happen, so credit goes to him. ![]() Basically, there's a function called in DX5 that is broken on newer video drivers. The fix is a wrapper for ddraw.dll that wraps calls from DirectX to DirectX 7, where a different, non-broken function can be called. Once a full wrapper is implemented, we should be able to add other, minor graphical features to JK. So essentially it is a replacement ddraw.dll file that goes in your JK directory. Should work with the Steam versions, too. I don't know the status of the fix so I haven't uploaded it, but something should be available soon.
____________
Bassoon, n. A brazen instrument into which a fool blows out his brains. Last edited by Emon; 09-25-2009 at 09:42 AM. |
|
Good with spray cheese
|
Zeq, I am your #1 fan.
![]() |
|
Registered Citizen
|
I'm assuming the HOM effect is mostly prevalent on ATI video cards... I have 3d acceleration working on my mobile Nvidia card.
I'm still all for some updated DX improvements though. If it works out you might be able to start adding things like HDR or other post-processing effects like they have done in older Unreal games with wrappers. |
|
*shudder*
|
Nice guys! I thought the wrapper would be a good start for this, but I certainly had no idea what to do with it. Did you guys figure anything out for the HUD?
If you could fix the broken dithering on DX10 hardware with it that would be awesome. Timeslip fixed this for dark engine games by forcing the games to a 32-bit render target. Not sure if that is outside the scope or not. Still, really awesome that you could get something happening with the horrible HOM problem. Let me know if you need anyone to do any testing. I have an HD4850, x1800, 7200gs and x1900 cards. I'm only experiencing problems on the former of course. The HOM effect seems to only occur on ATI DX10 hardware. Broken dithering occurs on all DX10 parts from both nvidia and ATI from testing.
____________
-El Scorcho "Its dodgeball time!" -Stormy Waters |
|
"You Would Have Been BALEETED..."
|
That's awesome. I personally don't have any problems with the game anymore, but if you get something stable you should maybe contact Steam about it. Maybe get some MONEYZ
____________
"His Will Was Set, And Only Death Would Break It" "None knows what the new day shall bring him" |
|
How do I change this?
|
Yeah nice work, be sure not to let the file out until you talk to steam or LA. At the very least you can get some public credit
.
____________
Quote:
|
|
|
New, Improved, and Boneless
|
That's really awesome guys, congrats on all your good work, I can't wait to try it!
____________
"If you watch television news, you will know less about the world than if you just drink gin straight out of the bottle." --Garrison Keillor |
|
Imon, umon...everymon!
|
This is a wrapper that replaces ddraw.dll, it doesn't change the EXE at all. LucasArts can't say a damn thing about it because it doesn't touch their IP whatsoever.
____________
Bassoon, n. A brazen instrument into which a fool blows out his brains. |
|
Merciless Admin of JKHub
|
The ddraw_(hack_viewport3_clear2).zip is the ddraw.dll file Emon talked about in his original post.
You can post here or (preferably) in the JKLauncher project forum to tell me if it works or not and on what system (OS and video card specs). Oh, and let me know what specifically the other JK graphics problems you guys are having. Maybe I can fix those as well. Enjoy! ![]() |
|
Imon, umon...everymon!
|
Sige's wrapper used OpenGL, he actually intercepted all the geometry data and passed it to OpenGL. This wrapper just wraps interfaces and forwards calls to DirectX 7, so the HUD works just fine.
I personally haven't had any dither problems, but I only did a quick test this morning, maybe I didn't notice. Forcing 32-bit should be trivial.
____________
Bassoon, n. A brazen instrument into which a fool blows out his brains. |
|
How do I change this?
|
I actually had a dithering issue as well, but that was the last time I installed it. Haven't checked this time, or with the new file.
And yeah, LA can shove it, they can't tell someone not to modify their own DX files.
____________
Quote:
|
|
|
Registered User
|
Works great for me, I can now activate 3D Acceleration on my Radeon 4870 (Sapphire, 512MB, OS Vista x64) without any glitches, at least as far as I've tried. Using 4xAA as well, works like a charm. Had the same problems as everyone else using newer ATI cards before.
Great work, you guys! Thanks for fixing what LucasArts obviously couldn't! Now I'll have to dig out my old CD for the soundtrack. The only remaining problem on my system is the menu and cutscenes only working in windowed mode. I haven't figured out yet how to turn that off in the Steam release, and besides, as far as I've read they put that in since there seem to be some palette issues (or black screen issues...) with the menu in fullscreen mode. Again, thanks a lot for your great work! |
|
Registered
|
Zeq and Emon, you guys are the best. I'll have to see if this improves things with Wine. I have little reason to assume it will, but maybe more recent DirectX stuff will be better-implemented.
____________
Why do the heathens rage behind the firehouse? |
|
Usuyami no Sekai
|
I had to use -windowgui just to get JK to launch here. Note that it wasn't an issue with the DLL, it happened either way. Wish it could be fixed though, since I think the constant changing between windowed and fullscreen is what causes the window border to flicker in and out during gameplay.
That said, works as advertised, awesome work! Edit: Zeq, when you think it's ready for prime time, let me know, and I'll make a proper Massassi newspost about it. This needs publicity. *insert no one visits the frontpage joke here*
____________
Sorrowind Studios: http://sorrowind.net Last edited by Cool Matty; 09-25-2009 at 02:46 PM. |
|
Merciless Admin of JKHub
|
Quote:
I am very happy that this makes JK playable again for so many people. ![]() |
|
![]() |
| Thread Tools | |
|
|