XWA, Raytraced

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

Re: XWA, Raytraced

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

Post by blue_max » Thu Jan 26, 2023 11:10 pm

korekwerner wrote:
Thu Jan 26, 2023 11:02 pm
I'm waiting for the moment when it will be possible to recreate the X-Wing93 Death Star trench run mission. We need a function to activate the animation counting the distance from the "core" when we enter the trench. This would also be useful for missions in XWA when attacking the DS2 core. I suspect you have already thought about it :-).
I think something like that should be possible. Especially now that I understand how on-screen objects are located in space with respect to the cockpit.

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

Post by Vince T » Thu Jan 26, 2023 11:18 pm

Speaking of which, many games nowadays provide additional HUD info right beside the reticle. Do you think something like that would be possible?
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

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

Post by blue_max » Fri Jan 27, 2023 12:44 am

Vince T wrote:
Thu Jan 26, 2023 11:18 pm
Speaking of which, many games nowadays provide additional HUD info right beside the reticle. Do you think something like that would be possible?
Maybe you'd like to start a new thread with ideas? :)

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

Post by Vince T » Fri Jan 27, 2023 7:05 am

Yeah still need to collect my thoughts on this. I'll discord you :)
Sorry for derailing.
Back to topic!
Move along! Move along!
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

korekwerner
Cadet 1st Class
Posts: 154
Joined: Wed Mar 20, 2019 7:04 pm

Post by korekwerner » Fri Jan 27, 2023 8:22 pm

blue_max wrote:
Thu Jan 26, 2023 11:10 pm
korekwerner wrote:
Thu Jan 26, 2023 11:02 pm
I'm waiting for the moment when it will be possible to recreate the X-Wing93 Death Star trench run mission. We need a function to activate the animation counting the distance from the "core" when we enter the trench. This would also be useful for missions in XWA when attacking the DS2 core. I suspect you have already thought about it :-).
I think something like that should be possible. Especially now that I understand how on-screen objects are located in space with respect to the cockpit.
That sounds really promising. Thank you.
btw. raytracing works fine and I haven't had any problems with it even once. It's maybe a bit inaccurate (sometimes it loses shadows with more objects), and after installing the new gimballfix made by JeremyaFr everything seems to run smoother, but it can only be an illusion :-) and there are no problems with the joystick and gamepad.
No light in missions after a little analysis I conclude that the order of bakcdrops with lights is important. If the mission is well prepared, there are no problems with the lights and raytracing works fine.

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

Post by blue_max » Sat Jan 28, 2023 7:01 pm

This is still a screen-space effect. Meaning that if a mesh goes out of the screen, it will stop projecting shadows. This may cause some inaccuracies in some places. If that's not what you're talking about, please post a picture and I'll take a look.

Coming up: soft raytraced shadows anyone?

rt-23.jpg
rt-22.jpg
rt-21.jpg

Here I'm using the old trick of doing the effect at half or a quarter of the original resolution, to improve speed, and then I'm blurring the shadows to hide the resulting pixelation. Not only is Raytracing faster, but the results aren't that bad either.
You do not have the required permissions to view the files attached to this post.

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

Post by Bman » Sat Jan 28, 2023 8:01 pm

Beautiful
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
darklord
Galactic Empire
Posts: 836
Joined: Sun Jan 16, 2005 12:01 am
Contact:

Post by darklord » Sat Jan 28, 2023 9:26 pm

blue_max wrote:
Sat Jan 28, 2023 7:01 pm
Here I'm using the old trick of doing the effect at half or a quarter of the original resolution, to improve speed, and then I'm blurring the shadows to hide the resulting pixelation. Not only is Raytracing faster, but the results aren't that bad either.
That makes a lot of sense. Sounds like a win, win! Great job!

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

Post by blue_max » Sat Jan 28, 2023 10:20 pm


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

Post by Bman » Sun Jan 29, 2023 3:32 am

That's awesome. This also would help in the area of creating/capturing custom cutscenes.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
Forceflow
Fleet Admiral (Administrator)
Posts: 7203
Joined: Wed Oct 20, 1999 11:01 pm
Contact:

Post by Forceflow » Sun Jan 29, 2023 7:18 am

Oh that looks really nice
Murphy was an optimist! I am a pessimist!
And always remember that a smile is cheaper than a bullet! (District 9)
Webmaster of the X-Wing Alliance Upgrade Project

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

Post by blue_max » Thu Feb 02, 2023 5:41 am

And it's out now, guys. Please download the latest beta to get faster raytracing with soft shadows. Soft shadows are enabled by default. To disable them add this to SSAO.cfg, at the end of the file:

raytracing_enable_soft_shadows = 0

To control how the soft shadows look, use this:

raytracing_soft_shadow_sharpness = 0..1

0: Soft shadows
1: Hard shadows

You can use intermediate values, like 0.2 or 0.7 to control the hardness of the shadows to your liking. The default is 0.2

User avatar
MechDonald
XWAU Member
Posts: 577
Joined: Mon Jul 26, 2021 1:21 pm

Post by MechDonald » Thu Feb 02, 2023 1:51 pm

That's awesome @blue_max!

Especially for the options, too! Thank you very much! :2thumbs:

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

Post by rogue518 » Thu Feb 02, 2023 3:20 pm

@blue_max I think this new beta version did the trick.... :D



DSMF.Opt.jpg

Deep Space Manufactory Facility



I checked all opts, Now it works.... :2thumbs: :applaus:

Sincerely, Rogue518
You do not have the required permissions to view the files attached to this post.
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'

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

Post by Vince T » Thu Feb 02, 2023 5:18 pm

Geee thst old factory is ugly! Somebody should reeeeeaaaallllly do something about that! *wink* *wink*
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

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

Post by blue_max » Thu Feb 02, 2023 7:28 pm

rogue518 wrote:
Thu Feb 02, 2023 3:20 pm
@blue_max I think this new beta version did the trick.... :D
Oh yeah, that's right, I fixed that bug as well. Thanks for being so diligent and testing all the OPTs, Rogue518!

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

Post by rogue518 » Thu Feb 02, 2023 7:38 pm

You're welcome, blue_max....anytime. :thumbs:


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

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

Post by Bman » Fri Feb 03, 2023 2:58 am

.
Last edited by Bman on Fri Feb 03, 2023 7:57 pm, 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
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Fri Feb 03, 2023 4:55 am

Ok you obviously didn‘t get my subtle hint
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 Feb 03, 2023 2:40 pm

I did...... :wink:

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

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

Post by Bman » Fri Feb 03, 2023 7:57 pm

Nope. Nice!
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

Han Duo
Cadet 4th Class
Posts: 13
Joined: Mon Jan 06, 2020 9:32 pm

Post by Han Duo » Wed Feb 22, 2023 1:18 am

Hello-
Is there a set of instructions consolidated in one place on how to enable the best graphics in the game with the new functionality?

Thanks!

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

Post by blue_max » Wed Feb 22, 2023 6:03 am

Han Duo wrote:
Wed Feb 22, 2023 1:18 am
Is there a set of instructions consolidated in one place on how to enable the best graphics in the game with the new functionality?
Not at the moment, but we're going to add options to the Babu Frik configurator so that people can enable Raytracing and configure it.

PunkFriday
Cadet 3rd Class
Posts: 37
Joined: Sun Nov 02, 2014 4:02 pm

Post by PunkFriday » Sat Feb 25, 2023 2:02 pm

awesome! this is like, a whole new milestone in xwa development!

User avatar
Trevor
Lieutenant JG
Posts: 541
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Thu May 11, 2023 7:47 pm

wow, I come back to this amazing work...
Suggestion: Soft RT should come from planets and moons (if close/bright enough to be a light source) while Hard RT should come from suns.

if you have access to the backdrop size information I suppose you could make this calculated.

Trev

Post Reply