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 via DDraw.dll

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

Post by JeremyaFr » Sun Oct 19, 2014 2:41 pm

Hi,
The AppHang error happens in-flight when the xwa's window loses focus for more than 5 seconds.

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

Post by Bman » Wed Oct 29, 2014 6:25 am

This latest dll version is awesome (re: Win8.1 Pro 64-Bit & ATI/AMD platform). I noticed a big improvement in frame rate with maximum settings applied and multiple craft objects in a mission. I see a little triangulation too in the Imperial Hangar.opt for example, but you already addressed that solution in previous thread. Thanks Jeremy.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

Erroll
Recruit
Posts: 1
Joined: Sat Nov 01, 2014 4:45 am

Post by Erroll » Sat Nov 01, 2014 4:51 am

I love you man.

I was banging my head against the "no 3d" message all night. This solved the problem for me with Win 7 64, R9 280x with latest drivers.

Nice work. I will be sure to post back if I find any issues and check for updates.

Regards,

Erroll

WebDog
Cadet 4th Class
Posts: 18
Joined: Tue Aug 28, 2001 11:01 pm
Contact:

Post by WebDog » Sun Nov 02, 2014 4:39 am

Out of curiosity I've noticed this fixes some glitch where selecting freighters or transports would cause everything to turn transparent.
-WebDog

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

Post by JeremyaFr » Wed Nov 05, 2014 5:51 pm

Hello,
For those who are interested, I have just published the source code on GitHub:
https://github.com/JeremyAnsel/xwa_ddraw_d3d11

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

Post by Darksaber » Wed Nov 05, 2014 6:28 pm

I take it then that this is the final version??

Also what about the TGSmush.dll, it that now the final version???
“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: 3921
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Nov 05, 2014 6:54 pm

Here is the release (final) version 1.1:
EDIT: link removed
Last edited by JeremyaFr on Tue Jan 27, 2015 5:05 pm, edited 1 time in total.

Reimar
Cadet 1st Class
Posts: 239
Joined: Mon Jan 19, 2009 11:45 am

Post by Reimar » Wed Nov 05, 2014 7:35 pm

Just wanted to say big thanks for putting the source up.
While I probably won't have time to look at it anytime soon, it's nice to know it's around and possible for us to fix things in it.

Tarvis
Recruit
Posts: 2
Joined: Thu Nov 06, 2014 12:07 am

Post by Tarvis » Thu Nov 06, 2014 12:08 am

Wow, this is very impressive stuff! Works perfectly on Windows 8!

Are there any plans to make a similar wrapper for XvT/XWING95/TIE95'd hardware acceleration?

Jefe_Picaro
Ensign
Posts: 464
Joined: Tue Aug 03, 2004 11:01 pm
Contact:

Post by Jefe_Picaro » Thu Nov 06, 2014 7:47 am

I'll give it a try sooner or later, Tarvis, it would be nice to see this great project on them too. Just I don't know when, as I need to refresh my C++ habilities.

Anyway, if anyone else with C++ knowledge wants to give it a try, let's try to communicate and do it together.
Astilleros estelares "Picaro":http://xvtedicion.es
OPT database:http://xvtedicion.es/basededatos/index.htm
Escuadron Lores del Sith:http://www.loresdelsith.net/escuadron/
Reb. Squadrons:http://www.rebelsquadrons.org

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

Post by JeremyaFr » Thu Nov 06, 2014 4:04 pm

Tarvis wrote:Are there any plans to make a similar wrapper for XvT/XWING95/TIE95'd hardware acceleration?
My spare time is not extensible. So I don't plan to make a wrapper for XvT/XWING95/TIE95 in a near future.
But if someone makes one, I can help.

The first step is to use a logger to determine which the APIs are called by the game.
The second step is to implement those APIs.

If you use xwa_ddraw_d3d11 with XWING95 or TIE95, the game will immediately crash. This happens because the IDirectDrawPalette interface is not implemented. I think that there are also certains interfaces called differently.

Tarvis
Recruit
Posts: 2
Joined: Thu Nov 06, 2014 12:07 am

Post by Tarvis » Thu Nov 06, 2014 4:18 pm

Someone on the GoG forums Sol_HSA (who made the wrappers for Wing Commander if you know about those) was working on his own wrapper, but he says that TIE95 uses the same DirectX version as XWA's renderer so it should be easy enough to modify yours for it. My guess is most of the differences are the concouse

Jefe_Picaro
Ensign
Posts: 464
Joined: Tue Aug 03, 2004 11:01 pm
Contact:

Post by Jefe_Picaro » Fri Nov 07, 2014 8:17 am

Nice, here is the link to the post for reference: http://www.gog.com/forum/star_wars_tie_ ... tuff/page1
Astilleros estelares "Picaro":http://xvtedicion.es
OPT database:http://xvtedicion.es/basededatos/index.htm
Escuadron Lores del Sith:http://www.loresdelsith.net/escuadron/
Reb. Squadrons:http://www.rebelsquadrons.org

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

Post by JeremyaFr » Fri Nov 14, 2014 8:39 pm

Hi,
I have separated the logger from the implementation.
Now, the logger is situated at https://github.com/JeremyAnsel/ddraw_logger.
I have tested it with X-Wing 95, TIE Fighter 95, XvT, XWA, and it works fine.

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

Post by Ramshu » Sat Nov 15, 2014 12:34 pm

Nice work Jeremy, you are a fucking boss!!

I think in "xwa_ddraw_d3d11" are a few things to perfect:
-"FXAA" and "Trasnparency AA" make starfield too dark.
-"Nvidia Shadowplay" can't record or stream.
-When use "alt + tab" have problems moving mouse between windows, to move between windows they must be overlapped.

I like say you, one more time, thanks you very much and nice work.

"Nasios pa vola"

Commander_Comm
Cadet 3rd Class
Posts: 26
Joined: Sat Dec 15, 2007 12:01 am

Post by Commander_Comm » Fri Nov 28, 2014 2:54 am

When I run with the new DDraw.dll and ddraw.cfg, XWA does not respond but when I restore the ATI DDraw from the XWA Craft Pack then it will run (still getting the 3D red box). I have run through the thread and read over all your precautions and instructions. What am I missing?

Windows 7
Radeon R9 270
AMD Phenom II X6 1055T, 3315 MHz

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

Post by JeremyaFr » Sat Nov 29, 2014 8:26 pm

Hello,
Maybe it is related to the xwa configuration file.
Does it happend if you remove the "config.cfg" file?

Commander_Comm
Cadet 3rd Class
Posts: 26
Joined: Sat Dec 15, 2007 12:01 am

Post by Commander_Comm » Sun Nov 30, 2014 9:18 pm

I removed the config.cfg file and still same result.

User avatar
rogue518
XWAU Member
Posts: 2856
Joined: Wed Jul 12, 2000 11:01 pm
Contact:

Post by rogue518 » Wed Dec 03, 2014 2:12 am

Thanks JeremyaFr, I 've been having this problem with corrupt graphics on ships (Tech Library only....) since march 16 2011..... when I had the XFX Geforce GTX 285 Black Edition. Job well done... but I did notice one little problem regarding some ships... mainly the Calamari's (HomeOne, Lulsa, ReefHome, Winged, MedCal Cruiser ) they look distorted surface seemd flat... the weird thing... is in-game they are fine.. I've checked. I've upgraded my graphics card now it is a GTX 780 ti now and this game looks awesome!!!!

Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Wed Dec 03, 2014 11:26 am

Question, are you planning to make a wrapper for XvT, XWing95 and TIE95 too eventually ?
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

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

Post by JeremyaFr » Wed Dec 03, 2014 5:16 pm

rogue518 wrote:I did notice one little problem regarding some ships... mainly the Calamari's (HomeOne, Lulsa, ReefHome, Winged, MedCal Cruiser ) they look distorted surface seemd flat... the weird thing... is in-game they are fine..
Does this appears in-flight?
Does it appears only in the tech Library?

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

Post by JeremyaFr » Wed Dec 03, 2014 5:18 pm

Rookie_One1 wrote:Question, are you planning to make a wrapper for XvT, XWing95 and TIE95 too eventually ?
Not immediatly.
But if you have dev skills, you can contribute.

User avatar
rogue518
XWAU Member
Posts: 2856
Joined: Wed Jul 12, 2000 11:01 pm
Contact:

Post by rogue518 » Wed Dec 03, 2014 6:36 pm

JeremyaFr... it just appears in the Tech Library only..... I thought I was seeing things, I was stunned but when I played a few missions the Calamari's they look fine.


I wrote: (Rogue518)
but I did notice one little problem regarding some ships... mainly the Calamari's (HomeOne, Lulsa, ReefHome, Winged, MedCal Cruiser ) they look distorted surface seemed flat... the weird thing... is in-game they are fine.. I've checked.
Edit:

Tech Library only.... In-Flight.... ships are fine.

Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'

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

Post by Anco » Sun Dec 14, 2014 12:32 pm

JeremyaFr wrote:Hi,
The AppHang error happens in-flight when the xwa's window loses focus for more than 5 seconds.
I get this error so often... What does "loses focus" mean? Thank you.

moronmission
Recruit
Posts: 2
Joined: Tue Dec 16, 2014 9:02 am

Post by moronmission » Tue Dec 16, 2014 9:08 am

Wow thanks for making this thing! This is the first solution that's actually worked to enable 3d hardware. The only problem I have no is that the cockpit is invisible. Any solution for this?

Post Reply