Page 4 of 4

Re: XWA, Raytraced

Posted: Thu Jan 26, 2023 11:10 pm
by blue_max
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.

Re: XWA, Raytraced

Posted: Thu Jan 26, 2023 11:18 pm
by Vince T
Speaking of which, many games nowadays provide additional HUD info right beside the reticle. Do you think something like that would be possible?

Re: XWA, Raytraced

Posted: Fri Jan 27, 2023 12:44 am
by blue_max
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? :)

Re: XWA, Raytraced

Posted: Fri Jan 27, 2023 7:05 am
by Vince T
Yeah still need to collect my thoughts on this. I'll discord you :)
Sorry for derailing.
Back to topic!
Move along! Move along!

Re: XWA, Raytraced

Posted: Fri Jan 27, 2023 8:22 pm
by korekwerner
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.

Re: XWA, Raytraced

Posted: Sat Jan 28, 2023 7:01 pm
by blue_max
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.

Re: XWA, Raytraced

Posted: Sat Jan 28, 2023 8:01 pm
by Bman
Beautiful

Re: XWA, Raytraced

Posted: Sat Jan 28, 2023 9:26 pm
by darklord
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!

Re: XWA, Raytraced

Posted: Sat Jan 28, 2023 10:20 pm
by blue_max

Re: XWA, Raytraced

Posted: Sun Jan 29, 2023 3:32 am
by Bman
That's awesome. This also would help in the area of creating/capturing custom cutscenes.

Re: XWA, Raytraced

Posted: Sun Jan 29, 2023 7:18 am
by Forceflow
Oh that looks really nice

Re: XWA, Raytraced

Posted: Thu Feb 02, 2023 5:41 am
by blue_max
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

Re: XWA, Raytraced

Posted: Thu Feb 02, 2023 1:51 pm
by MechDonald
That's awesome @blue_max!

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

Re: XWA, Raytraced

Posted: Thu Feb 02, 2023 3:20 pm
by rogue518
@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

Re: XWA, Raytraced

Posted: Thu Feb 02, 2023 5:18 pm
by Vince T
Geee thst old factory is ugly! Somebody should reeeeeaaaallllly do something about that! *wink* *wink*

Re: XWA, Raytraced

Posted: Thu Feb 02, 2023 7:28 pm
by blue_max
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!

Re: XWA, Raytraced

Posted: Thu Feb 02, 2023 7:38 pm
by rogue518
You're welcome, blue_max....anytime. :thumbs:


Sincerely, Rogue518

Posted: Fri Feb 03, 2023 2:58 am
by Bman
.

Re: XWA, Raytraced

Posted: Fri Feb 03, 2023 4:55 am
by Vince T
Ok you obviously didn‘t get my subtle hint

Re: XWA, Raytraced

Posted: Fri Feb 03, 2023 2:40 pm
by rogue518
I did...... :wink:

Sincerley, Rogue518

Re: XWA, Raytraced

Posted: Fri Feb 03, 2023 7:57 pm
by Bman
Nope. Nice!

Re: XWA, Raytraced

Posted: Wed Feb 22, 2023 1:18 am
by Han Duo
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!

Re: XWA, Raytraced

Posted: Wed Feb 22, 2023 6:03 am
by blue_max
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.

Re: XWA, Raytraced

Posted: Sat Feb 25, 2023 2:02 pm
by PunkFriday
awesome! this is like, a whole new milestone in xwa development!

Re: XWA, Raytraced

Posted: Thu May 11, 2023 7:47 pm
by Trevor
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