XWA, Raytraced
XWA, Raytraced
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
Raytracing is coming to XWA in the form of raytraced shadows:
Currently, only the Tech Room supports raytracing, but I'm working on enabling it during regular flight too.
It's already available! Just download the latest beta (2.1.0) and take a look at the Tech Room!
Currently, only the Tech Room supports raytracing, but I'm working on enabling it during regular flight too.
It's already available! Just download the latest beta (2.1.0) and take a look at the Tech Room!
You do not have the required permissions to view the files attached to this post.
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
Raytraced shadows are enabled by default, but you can toggle them by pressing Ctrl+S or you can add the following in SSAO.cfg to set the state:
raytracing_enabled_in_tech_room = 0
raytracing_enabled_in_tech_room = 0
You do not have the required permissions to view the files attached to this post.
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
You do not have the required permissions to view the files attached to this post.
- rogue518
- Posts: 2815
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
Where is this located? Could you post a link please?blue_max wrote:
It's already available! Just download the latest beta (2.1.0) and take a look at the Tech Room!
Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
Nvidia only or does it also support AMD Raytracing ?
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
The link can be found on our download page under BETA Versions
https://www.xwaupgrade.com/download/bet ... -10-19.zip
Awesome work, @blue_max!
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear
Vince T's X-Wing HQ - where the bad guys get their gear
- rogue518
- Posts: 2815
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
Thanks Vince T, I got it.....
I figured it out will post pics later going to work (damn it!!...
)
Sincerely, Rogue518


Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
- Vince T
- Posts: 14028
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
In the past I would sometimes bake those shadows into the textures, especially for more recessed areas. Knowing that someday in the hopefully not too far future I won't be needing to do that anymore is a most exciting prospect!
You do not have the required permissions to view the files attached to this post.
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear
Vince T's X-Wing HQ - where the bad guys get their gear
- DarHan
- Posts: 324
- Joined: Mon Dec 05, 2005 12:01 am
- Contact:
It works on my AMD card, which doesn’t even have hardware raytracing support.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian
— Hobbie Klivian
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
This should work on any DirectX 11 capable card. It doesn't use any of the new fancy raytracing hardware that some vendors are now selling, so it will be slower and more limited. I'm still not sure this solution will work for regular flight, but I'm definitely going to try!
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
In the worst case you could make it an option to use for those who have raytracing hardware
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
DirectX 11 doesn't support raytracing hardware, but yes, this feature will be completely optional.
- Rookie_One1
- Posts: 1656
- Joined: Thu Feb 26, 2004 12:01 am
ah yeah, forgot that raytracing hardware is only supported in DX12 

Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death
Current Holder of the Frying Pan of Death
- rogue518
- Posts: 2815
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
Rookie_One1 wrote:
ah yeah, forgot that raytracing hardware is only supported in DX12![]()
I think I got that covered:

NVIDIA System Information report created on: 10/23/2022 09:38:15
System name: XXXXX518
[Display]
Operating System: Windows 10 Pro, Windows 11 64-bit
DirectX version: 12.0
GPU processor: NVIDIA GeForce RTX 3070
Driver version: 522.25
Driver Type: DCH
Direct3D feature level: 12_1
CUDA Cores: 5888
Resizable BAR No
Core clock: 1725 MHz
Memory data rate: 14.00 Gbps
Memory interface: 256-bit
Memory bandwidth: 448.06 GB/s
Total available graphics memory: 20447 MB
Dedicated video memory: 8192 MB GDDR6
System video memory: 0 MB
Shared system memory: 12255 MB
Video BIOS version: 94.04.46.40.61
IRQ: Not used
Bus: PCI Express x8 Gen3
Device ID: 10DE 2488 47513842
Part Number: G142 0012
Sincerely, Rogue518
Last edited by rogue518 on Sun Oct 23, 2022 1:41 pm, edited 1 time in total.
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
Even if you have DX12-capable hardware, ddraw is still DX11. We would have to migrate ddraw to DX12 in order to use hardware-level raytracing. While this is not impossible, it's a difficult task and it's not currently part of our plans.
- Ace Antilles
- Posts: 7702
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
Well done @blue_max !! Keep on making your amazing improvements. 

- rogue518
- Posts: 2815
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
From what I am reading... DirectX 12 is backwards compatible with DirectX 11.
The good news is that any machine that supports DirectX 12, is actually required by Microsoft to also support DirectX 11. So the games will run just fine. They won’t have the advantages of DirectX 12, but those games weren’t designed to have those advantages anyway.
Sincerely, Rogue518
DirectX 11 games cannot be made to use DirectX 12 instead. They are wildly different technologies, despite the common name.Yes they will work more than fine with DX12 also some graphics improvements can also be noticed. DirectX only works as a interface between graphics card and graphics rendering.
The good news is that any machine that supports DirectX 12, is actually required by Microsoft to also support DirectX 11. So the games will run just fine. They won’t have the advantages of DirectX 12, but those games weren’t designed to have those advantages anyway.
Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
You're correct, rogue518, if you have a DX12 card, it will also support DX11 -- and support for DX11 is likely to continue for many years. But we won't be able to do hardware-level raytracing until we migrate ddraw to use DX12
- rogue518
- Posts: 2815
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
Thanks blue_max for responding....
I also have a EVGA GeForce RTX 2070XC Gaming and EVGA GeForce GTX 1060 6GB SSC GAMING Video Cards as backups...... but that's good to know on the hardware-level raytracing for DX12... won't be available anytine soon, or at all.....
Sincerely, Rogue518

Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
https://www.youtube.com/watch?v=8lSQRAtcBpw
https://youtu.be/WeTKHDbVX6o
https://youtu.be/-htXBOwuXXI
https://youtu.be/WeTKHDbVX6o
https://youtu.be/-htXBOwuXXI
You do not have the required permissions to view the files attached to this post.
- blue_max
- Posts: 2284
- Joined: Wed Mar 20, 2019 5:12 am
The performance hit is significant, and it depends on how busy is the screen. I've seen a drop between 50-15% in frame rates right now. There's several areas that can be improved, though, so framerates are only going to get better. Right now, I find this playable on small missions even on my old nVidia 1070, and I expect most people will be able to experience this in one way or another.