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.korekwerner wrote: ↑Thu Jan 26, 2023 11:02 pmI'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.
XWA, Raytraced
Re: XWA, Raytraced
- blue_max
- Posts: 2285
- Joined: Wed Mar 20, 2019 5:12 am
- Vince T
- Posts: 14029
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
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
Vince T's X-Wing HQ - where the bad guys get their gear
- Vince T
- Posts: 14029
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
Yeah still need to collect my thoughts on this. I'll discord you 
Sorry for derailing.
Back to topic!
Move along! Move along!

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
Vince T's X-Wing HQ - where the bad guys get their gear
-
- Posts: 154
- Joined: Wed Mar 20, 2019 7:04 pm
That sounds really promising. Thank you.blue_max wrote: ↑Thu Jan 26, 2023 11:10 pmI 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.korekwerner wrote: ↑Thu Jan 26, 2023 11:02 pmI'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.
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

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.
- blue_max
- Posts: 2285
- Joined: Wed Mar 20, 2019 5:12 am
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?
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.
Coming up: soft raytraced shadows anyone?
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.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- darklord
- Posts: 835
- Joined: Sun Jan 16, 2005 12:01 am
- Contact:
That makes a lot of sense. Sounds like a win, win! Great job!
- blue_max
- Posts: 2285
- Joined: Wed Mar 20, 2019 5:12 am
Thanks! Here's a couple of videos of this effect:
https://www.youtube.com/watch?v=gvcB6zr6JOI
https://www.youtube.com/watch?v=na467B8B_wQ
https://www.youtube.com/watch?v=gvcB6zr6JOI
https://www.youtube.com/watch?v=na467B8B_wQ
-
- Posts: 1157
- Joined: Mon Apr 05, 2004 11:01 pm
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.
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
And always remember that a smile is cheaper than a bullet! (District 9)
Webmaster of the X-Wing Alliance Upgrade Project
- blue_max
- Posts: 2285
- Joined: Wed Mar 20, 2019 5:12 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
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
- MechDonald
- Posts: 567
- Joined: Mon Jul 26, 2021 1:21 pm
That's awesome @blue_max!
Especially for the options, too! Thank you very much!
Especially for the options, too! Thank you very much!

- rogue518
- Posts: 2816
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
@blue_max I think this new beta version did the trick....
Deep Space Manufactory Facility
I checked all opts, Now it works....
Sincerely, Rogue518

Deep Space Manufactory Facility
I checked all opts, Now it works....


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'
- Vince T
- Posts: 14029
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
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
Vince T's X-Wing HQ - where the bad guys get their gear
- rogue518
- Posts: 2816
- Joined: Wed Jul 12, 2000 11:01 pm
- Contact:
You're welcome, blue_max....anytime.
Sincerely, Rogue518

Sincerely, Rogue518
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
- Vince T
- Posts: 14029
- Joined: Fri Apr 27, 2001 11:01 pm
- Contact:
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
Vince T's X-Wing HQ - where the bad guys get their gear
'Stay in Attack formation!' Darth Vader aka: Anakin Skywalker During the 'Battle Of Yavin'
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
-
- Posts: 13
- Joined: Mon Jan 06, 2020 9:32 pm
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!
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!
- blue_max
- Posts: 2285
- Joined: Wed Mar 20, 2019 5:12 am
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.
-
- Posts: 37
- Joined: Sun Nov 02, 2014 4:02 pm
awesome! this is like, a whole new milestone in xwa development!
- Trevor
- Posts: 539
- Joined: Thu Dec 04, 2014 7:11 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
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