Direct3D 11 via DDraw.dll

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Post Reply

Re: Direct3D 11

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Sep 17, 2014 3:28 pm

Ramshu wrote:-On map not see the blue grid
Corrected.
Ramshu wrote:-I have the feeling that it looks darker than it should
Corrected.

User avatar
Ramshu
Cadet 2nd Class
Posts: 74
Joined: Sat Sep 21, 2013 10:42 am
Contact:

Post by Ramshu » Wed Sep 17, 2014 4:40 pm

To go Simplified.

Know issues:
-When activate "FXAA" starfield display too dark.
-When activate "Antialising Transparency" starfield display too dark.
-When too much ships on screen suffers a fps drop, same on map "3d cam"
-Problem with lighting and difuse lighting, not works fine.
-When use "alt + tab" have problems moving between windows, it seems that XWA not properly minimized.

-Problem with voobly: i send email to voobly to question why overwrite a a "ddraw.dll"

"Nasios pa vola"

User avatar
Ramshu
Cadet 2nd Class
Posts: 74
Joined: Sat Sep 21, 2013 10:42 am
Contact:

Post by Ramshu » Fri Sep 19, 2014 11:53 am

Jeremya you know the problem on the skirmish screen changing ranges some pilots for things like "starfield density" or "65536"?
For some reason when playing in Voobly this problem does not occur, I think it may be for the ddraw of Voobly.

I have obtained from Voobly ddraw.dll, perhaps you could studying and apply that fix yours also.

https://mega.co.nz/#!w8pVHThC!wlZiAqb35 ... hIK7Orp9Iw

Keep it up, are you doing a great job ;)

"Nasios pa vola"

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Sep 19, 2014 6:44 pm

I keep posting about the black panels each side of the screen using your new DDraw.dll could you possible resolve this please :)

I've tried using your new TGSmush.dll and the old TGSmush.dll, with the same results I get the black panels making the game like 4:3

With the Old DDraw.dll you get the screen full width/stretched as in 16:9

System Win 7 x64
ATI Radeon HD 5700 series 13.1

see pics

Your New DDraw.dll 4:3 Screen :(
DDrawNew1.jpg
DDrawNew2.jpg
Old DDraw.dll 16:9 Screen :D
DDrawOld1.jpg
DDrawOld2.jpg
You do not have the required permissions to view the files attached to this post.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Sep 19, 2014 10:33 pm

Ramshu wrote:-When too much ships on screen suffers a fps drop, same on map "3d cam"
The game engine use a cache system for the textures. The textures are reloaded at each frame. That's why the fps drops when there are a lot of objects.
I will try to disable it.
EDIT: Fps drop is due to a lot of small objects being rendered.
Darksaber wrote:I keep posting about the black panels each side of the screen using your new DDraw.dll could you possible resolve this please :)
When displaying 4:3 content on a wide screen, there are people that prefer maintaining the aspect ratio and people that prefer stretching the content.
I don't want to impose a choice, so I create a config parameter.

I have added a config file:

Code: Select all

; ddraw.cfg
; config file for ddraw.dll

; PreserveAspectRatio = 0 (no) or 1 (yes)
; When set to 0, the display will be stretched.
; When set to 1, the aspect ratio will be preserved.
PreserveAspectRatio = 1

; EnableMultisamplingAntialiasing = 0 (no) or 1 (yes)
; When set to 0, MSAA will not be used.
; When set to 1, MSAA will be used if it is supported.
EnableMultisamplingAntialiasing = 1

; EnableAnisotropicFiltering = 0 (no) or 1 (yes)
; When set to 0, linear filtering will be used.
; When set to 1, anisotropic filtering will be used.
EnableAnisotropicFiltering = 1
Last edited by JeremyaFr on Mon Sep 22, 2014 1:12 am, edited 1 time in total.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Sep 20, 2014 12:07 am

Excellent idea, should please everyone, thanks it works great
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

FBK
Cadet 3rd Class
Posts: 32
Joined: Sat May 18, 2013 7:05 am

Post by FBK » Sat Sep 20, 2014 6:02 am

It is awesome!
Thank you jeremyfr, you roolez

FBK
Cadet 3rd Class
Posts: 32
Joined: Sat May 18, 2013 7:05 am

Post by FBK » Sat Sep 20, 2014 1:52 pm

EDITED --> The only problem I have found is that the starfield density is low, and when you try to change it doesn't works, you can change it but as soon as you launch the game there is no starfield. --> That was my fault, config file --> only read. When I changed that everithing worked ok but the starfield stars that I can't see them, or they are too little, may be ia a resolution problem....

Similar thing happens with explosion chunks. When you changes it the changes are not saved.

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sun Sep 21, 2014 12:18 am

.
Last edited by Bman on Sun Sep 21, 2014 6:40 am, edited 1 time in total.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
Ramshu
Cadet 2nd Class
Posts: 74
Joined: Sat Sep 21, 2013 10:42 am
Contact:

Post by Ramshu » Sun Sep 21, 2014 12:36 am

Bman wrote:I will test this on Win8 64-bit. But before I do, can we assume it's ok to download and install the latest video card drivers (ATI Catalyst package in my case), correct ? The older Rev. 12.1 / 13.1 9.00xxx... is no longer needed ? Thanks.
Need try, no one has yet proven whether this dll solves the problem with ati drivers.

"Nasios pa vola"

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sun Sep 21, 2014 7:04 am

Removed my above post. Great news. Jeremy you are genius! I did a complete uninstall of AMD/ATI drivers. I loaded the latest driver package AMD-ATI 14-4-win7-win8-win8.1-64-dd-ccc-whql.exe (May 2014) for Windows8.1 64-bit on ATI Raedon HD 5670 card. This ddraw.dll file works near perfectly. Note to users, I had to edit the ddraw.cfg file and changed the first setting to zero to stretch the screen on a wide display monitor.

Only minor issue is what FBK listed above. The star field is limited/hard to see, but if DTM is coming out with new DAT file(s), that's another solution. I'm not using the 32-bit patching programs yet, so perhaps the engine generates starfield on that platform if someone can check.
Also the frame rate is a little choppy in the Imperial hangar and inflight, but I have my video settings maxed out in-game. Haven't used Reimar's resolution patch yet, so not sure if someone else gets better results. The 3D Tech Library looks great. You can really see so much more detail in the textures. May have to zoom-out first.

Jeremy I think you should rename this thread topic to "VideoCards Solution Found! Direct3D 11 via DDraw.dll" or something like that and have the Admins push this thread to top of the webpage. :-) Great job.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

VPR
Cadet 1st Class
Posts: 147
Joined: Wed Aug 31, 2005 11:01 pm

Post by VPR » Sun Sep 21, 2014 12:50 pm

I can confirm this as well as I'm using the latest Catalyst drivers 14.4 (Radeon HD 7850) on Windows 7 64-bit and everything works fine bar the side bars at 1920x1080 resolution. Saying that though I haven't tried the later versions of the dll but I'll try again and see what it's like. Thanks Jeremy this is a massive improvement not having to switch driver versions, which was pain as I have games that require the newer drivers.

FBK
Cadet 3rd Class
Posts: 32
Joined: Sat May 18, 2013 7:05 am

Post by FBK » Sun Sep 21, 2014 3:20 pm

Using new ddraw.dll and big resolutions (4000x1024) the system requirements has increased.

2 different PC's with XWA + upgrade craft pack + JeremyFr 32 bit patch + Jeremy Fr ddraw.dll + Reimar files.

PC1: Intel dual core + graphic card--> Ati Radeon HD6450 at a resolution 2048x680 makes decrease the framerate and it is imposible to play. I used catalyst 13.1 drivers versión, it could change if I would have used the latest drivers versión.
PC2: I7-4790k + Gigabyte GTX 770 OC 4gb at a resolution 4000 x 1028 you can play OK.

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Sep 22, 2014 1:18 am

I made an optimization for small objects. You should see a fps improvement.

I have also added an option to render objects in wireframe. This may help to identify triangling issues.

Code: Select all

; FillWireframe = 0 (solid) or 1 (wireframe)
; When set tp 0, fill mode wil be solid.
; When set to 1, fill mode will be wireframe.
FillWireframe = 0

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Mon Sep 22, 2014 2:28 am

Thanks Jeremy. Also another way to slightly improve frame rate in general is to go into game's VIdeo menu and change the "Near vs. Far" slider bar to have low LOD resolutions display on models when a little closer to the player's craft. It's not as taxing on the system.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

Tickel
Recruit
Posts: 1
Joined: Mon Sep 22, 2014 11:38 am

Post by Tickel » Mon Sep 22, 2014 12:16 pm

This works for me also. Using 14.4 ATI drivers for R9 280, win 7 64 bit.

Note to others read the readme and install the Redistributable Packages both x86 and x64, I hadn't got them originally and needed to install to get this working.

Thanks for the dll :-D

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Sep 25, 2014 7:15 pm

Welcome,

Only the x86 package is required.

User avatar
Ramshu
Cadet 2nd Class
Posts: 74
Joined: Sat Sep 21, 2013 10:42 am
Contact:

Post by Ramshu » Wed Oct 01, 2014 10:03 pm

I think I've discovered a new problem with the mesh map, to be honest, if it were not for ddraw, well I leave a picture to view it.
http://i57.tinypic.com/1q4ht0.jpg

"Nasios pa vola"

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Sun Oct 05, 2014 3:05 pm

If the latest file is still this: https://onedrive.live.com/download?resi ... 94FB%21132 I get a CTD when i launch the .exe.

I'm using latest AMD catalyst 14.9
Windows 7 64 bit
AMD radeon 280x vapor x

It occurs with or without DSUCP 2.1

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Oct 05, 2014 3:31 pm

Does your processor support SSE2 instructions?

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Sun Oct 05, 2014 4:00 pm

JeremyaFr wrote:Does your processor support SSE2 instructions?
I've got a i7 4771 so it should.

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Oct 05, 2014 4:07 pm

Does an error message appear?
Does the exe crash wihout the new ddraw.dll?

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Sun Oct 05, 2014 4:11 pm

JeremyaFr wrote:Does an error message appear?
Does the exe crash wihout the new ddraw.dll?
It works without the new ddraw.dll.

I get only a generic CTD error: https://dl.dropboxusercontent.com/u/885 ... agine2.png

This are the details:
https://dl.dropboxusercontent.com/u/885 ... 0error.txt

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Oct 05, 2014 5:18 pm

Thanks for the crash details.
I will inspect that.

Anco
Cadet 4th Class
Posts: 20
Joined: Wed Jun 06, 2012 6:31 pm

Post by Anco » Sun Oct 05, 2014 5:53 pm

JeremyaFr wrote:Thanks for the crash details.
I will inspect that.
Thanks to you. Maybe it comes from the new AMD update to 14.9. Obviously I updated my drivers then i saw your topic... I did not tried it with 14.4.

Post Reply