XWA, Raytraced

All the XWAU recent release news from the project can be found here

XWA, Raytraced

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Fri Oct 21, 2022 6:28 am

Raytracing is coming to XWA in the form of raytraced shadows:

rt-100.png
rt-101.jpg

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.

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Fri Oct 21, 2022 6:30 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

rt-102.jpg
rt-103.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Fri Oct 21, 2022 6:32 am

rt-104.jpg
rt-105.jpg
You do not have the required permissions to view the files attached to this post.

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

Post by rogue518 » Fri Oct 21, 2022 12:03 pm

blue_max wrote:
It's already available! Just download the latest beta (2.1.0) and take a look at the Tech Room!
Where is this located? Could you post a link please?

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 » Fri Oct 21, 2022 12:39 pm

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

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Fri Oct 21, 2022 1:36 pm

rogue518 wrote:
Fri Oct 21, 2022 12:03 pm
blue_max wrote:
It's already available! Just download the latest beta (2.1.0) and take a look at the Tech Room!
Where is this located? Could you post a link please?

Sincerely, Rogue518
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

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

Post by rogue518 » Fri Oct 21, 2022 3:15 pm

Thanks Vince T, I got it..... :thumbs: I figured it out will post pics later going to work (damn it!!... ;) )

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

Knarfe
Cadet 3rd Class
Posts: 42
Joined: Mon Feb 01, 2021 1:03 pm

Post by Knarfe » Fri Oct 21, 2022 3:33 pm

Raytracing in XWA - a dream comes true!

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Fri Oct 21, 2022 9:48 pm

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!
ISD1RT1.jpg
ISD1RT2.jpg
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

User avatar
DarHan
Rebel Alliance
Posts: 325
Joined: Mon Dec 05, 2005 12:01 am
Contact:

Post by DarHan » Fri Oct 21, 2022 10:54 pm

Rookie_One1 wrote:
Fri Oct 21, 2022 12:39 pm
Nvidia only or does it also support AMD Raytracing ?
It works on my AMD card, which doesn’t even have hardware raytracing support.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sat Oct 22, 2022 9:15 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!

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

Post by Rookie_One1 » Sat Oct 22, 2022 3:45 pm

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

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sat Oct 22, 2022 6:16 pm

DirectX 11 doesn't support raytracing hardware, but yes, this feature will be completely optional.

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

Post by Rookie_One1 » Sun Oct 23, 2022 1:49 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

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

Post by rogue518 » Sun Oct 23, 2022 3:39 am

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'

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sun Oct 23, 2022 5:50 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.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7829
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Sun Oct 23, 2022 10:58 am

Well done @blue_max !! Keep on making your amazing improvements. :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by rogue518 » Sun Oct 23, 2022 1:53 pm

From what I am reading... DirectX 12 is backwards compatible with DirectX 11.



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.
DirectX 11 games cannot be made to use DirectX 12 instead. They are wildly different technologies, despite the common name.

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'

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sun Oct 23, 2022 4:27 pm

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

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

Post by rogue518 » Sun Oct 23, 2022 5:51 pm

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
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sun Jan 08, 2023 8:36 pm

You do not have the required permissions to view the files attached to this post.

batuta
Cadet 1st Class
Posts: 155
Joined: Tue Oct 13, 2020 1:34 pm

Post by batuta » Sun Jan 08, 2023 9:48 pm

THIS IS AMAAAAZING

Erd
Cadet 3rd Class
Posts: 32
Joined: Mon Dec 17, 2018 10:11 am

Post by Erd » Mon Jan 09, 2023 1:04 am

Gorgeous! I assume there’s a fair performance hit?

Muahaha
Cadet 3rd Class
Posts: 29
Joined: Thu May 13, 2021 4:45 am

Post by Muahaha » Mon Jan 09, 2023 10:18 am

So awesome. Can't wait to fly with it.

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Mon Jan 09, 2023 5:58 pm

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.

Post Reply