A New Shading Model

Want to edit the game, build your own craft and missions? Here you'll find help, tools, guides and people to discuss with.

Re: A New Shading Model

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

Post by blue_max » Sat Mar 21, 2020 7:53 am

Thanks for narrowing it down, Darksaber. I'm a bit confused when you say it "lunges". Is is a rotation, like yaw, or is the cockpit translating -- moving laterally? I'll check what's going on...

Anyway, I've fixed the damage textures. This is a preview of the next release, so it may still have some bugs:
https://www.dropbox.com/s/shyxhqvdp6lqh ... 0.dll?dl=0

The preview supports MSAA and is on par with Jeremy's 1.3.8. It also supports AC and a new feature I'm coding too.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Mar 21, 2020 9:23 am

Each time you press the keypad 3 key as well as rotating right vertically, the cockpit itself rotates right on a horizontal axis

The green is how the craft rotates in space, the red is the actually cockpit rotating each time you press the 3 key
rotation.jpg
flightscreen7.jpg
flightscreen8.jpg
flightscreen9.jpg
flightscreen10.jpg
flightscreen11.jpg
flightscreen12.jpg
And so on each time you press the 3 key you can rotate 360 degrees to reset it you press the keypad 5 key to centre the cockpit again
You do not have the required permissions to view the files attached to this post.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

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

Post by DarHan » Sat Mar 21, 2020 12:24 pm

blue_max wrote:
Sat Mar 21, 2020 7:53 am
Anyway, I've fixed the damage textures. This is a preview of the next release, so it may still have some bugs:
https://www.dropbox.com/s/shyxhqvdp6lqh ... 0.dll?dl=0

The preview supports MSAA and is on par with Jeremy's 1.3.8. It also supports AC and a new feature I'm coding too.
Either I did something wrong, or this preview causes the game to render no geometry at all (all craft are invisible in the Tech Library, and only the background stars are rendered while in-game).
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Mar 21, 2020 12:39 pm

Hello,
Open "hook_d3d.cfg" and replace "IsHookD3DEnabled = 0" with "IsHookD3DEnabled = 1".

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

Post by DarHan » Sat Mar 21, 2020 1:08 pm

Aaand that’s a “D’oh!” from me. Thanks!
“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 Mar 21, 2020 6:02 pm

Try adding "keyboard_look = 0" in CockpitLookHook.cfg, Darksaber. I'll try to take a look at that today.

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

Post by blue_max » Sat Mar 21, 2020 7:19 pm

This is the new feature I'm working on, dynamic lighting:
laser-lights-xw1.jpg
laser-lights-xw2.jpg
I'm attaching lights to the lasers so that they will illuminate the surrounding geometry. In the image above it may seem that the effect is too bright; but in reality, the light follows the laser, so it's a very brief flash that fades away quickly. Here's another sample:
laser-lights-yw1.jpg
The next release will have this optional feature.
You do not have the required permissions to view the files attached to this post.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Mar 21, 2020 7:28 pm

blue_max wrote:
Sat Mar 21, 2020 6:02 pm
Try adding "keyboard_look = 0" in CockpitLookHook.cfg, Darksaber. I'll try to take a look at that today.
lol the files called CockpitLook.cfg not CockpitLookHook.cfg :D and keyboard_look is already set to 0 :)

Thanks
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

St@rkiller
Cadet 3rd Class
Posts: 39
Joined: Sun Mar 15, 2020 3:56 pm

Post by St@rkiller » Sat Mar 21, 2020 8:28 pm

blue_max wrote:
Mon Mar 02, 2020 7:41 pm
Thanks for reporting the bug, I'll fix it.

EDIT: I've fixed the problem. It was a bug in the cockpit look hook. The new version of the hook can be downloaded here:

https://www.dropbox.com/s/mz979e2q6vdgk ... 2.zip?dl=0

But I've also updated the link to version 1.1.1 above
Hi:

I apologize if this is not the correct forum/tread or if it was already addresses, but I've installed the "xwa_cockpitlook-1.0.2" and I can't look to the left with the joystick hat, up/down/right work OK, just not to the left. Any suggestions will be appreciated.

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

Post by blue_max » Sat Mar 21, 2020 8:29 pm

Darksaber wrote:
Sat Mar 21, 2020 7:28 pm
lol the files called CockpitLook.cfg not CockpitLookHook.cfg :D and keyboard_look is already set to 0 :)
Hah! Sorry! Yes, I'm an idiot. I found the bug: I mistakenly typed "keypad 3" instead of "keypad 4" in the hook. I think this version should fix it:

https://www.dropbox.com/s/31z49612fpup6 ... 0.dll?dl=0

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

Post by blue_max » Sat Mar 21, 2020 8:35 pm

St@rkiller wrote:
Sat Mar 21, 2020 8:28 pm
I've installed the "xwa_cockpitlook-1.0.2" and I can't look to the left with the joystick hat
Try using the new hook I just posted above (just rename it to "Hook_CockpitLook.dll"), there was a bug in the mapping of the keypad keys.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Mar 21, 2020 8:43 pm

blue_max wrote:
Sat Mar 21, 2020 8:29 pm

Hah! Sorry! Yes, I'm an idiot. I found the bug: I mistakenly typed "keypad 3" instead of "keypad 4" in the hook. I think this version should fix it:
Brilliant, works like a charm now, cheers mate :D
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

St@rkiller
Cadet 3rd Class
Posts: 39
Joined: Sun Mar 15, 2020 3:56 pm

Post by St@rkiller » Sat Mar 21, 2020 8:45 pm

St@rkiller wrote:
Sat Mar 21, 2020 8:28 pm
blue_max wrote:
Mon Mar 02, 2020 7:41 pm
Thanks for reporting the bug, I'll fix it.

EDIT: I've fixed the problem. It was a bug in the cockpit look hook. The new version of the hook can be downloaded here:

https://www.dropbox.com/s/mz979e2q6vdgk ... 2.zip?dl=0

But I've also updated the link to version 1.1.1 above
Hi:

I apologize if this is not the correct forum/tread or if it was already addresses, but I've installed the "xwa_cockpitlook-1.0.2" and I can't look to the left with the joystick hat, up/down/right work OK, just not to the left. Any suggestions will be appreciated.
Never mind, the new hook fixed it! Thx!

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

Post by Vince T » Sat Mar 21, 2020 10:06 pm

Holy crap Blue_max that looks incredible!
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
Driftwood
Admiral (Moderator)
Posts: 2174
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Sat Mar 21, 2020 10:37 pm

@Blue_Max

:shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock:

:gott:

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

Post by Vince T » Sat Mar 21, 2020 10:46 pm

I remember playing Rogue Squadron back in the day and being totally blown away how the lasers would light the surrounding geometry. Can't wait to see it here :D
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
keiranhalcyon7
Lieutenant JG
Posts: 599
Joined: Tue Jan 02, 2018 6:41 am

Post by keiranhalcyon7 » Sat Mar 21, 2020 10:55 pm

That looks gorgeous, but in a big fight, I hope it doesn't tank the framerate.

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

Post by blue_max » Sun Mar 22, 2020 1:22 am

keiranhalcyon7 wrote:
Sat Mar 21, 2020 10:55 pm
That looks gorgeous, but in a big fight, I hope it doesn't tank the framerate.
This is a good point. This is screen-space only to a maximum of 8 lasers (the ones closest to the camera). Distant lasers won't have any significant glow anyway, so why track them? I haven't noticed any significant drop in performance either.

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

Post by blue_max » Sun Mar 22, 2020 3:59 am

Here's a couple more samples of the effect:
firespray-blue.jpg
tie-fighter-laser.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 » Sun Mar 22, 2020 7:18 am

I may get smacked in the mouth for saying this..... I know all of you all are showing the latest cockpits and they are awesome but when will the masses (us) will get our hands on them? I really love both variant X-wing Cockpits... :)

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 » Sun Mar 22, 2020 8:56 am

Great! Thanks for the updated ddraw Blue Max. That really helped me with the MSAA/3D acceleration smoothing effect when I use the SSAO.cfg file. I did try tweaking some settings as you suggested but the frame rate is still a little choppy and edges are still a little jagged. Noise? But it's a nice improvement. I'm thinking it's just my card, it's an older ATI (AMD) Radeon HD 5670 video card and may not be able to handle these modern graphics. I'll try to post two short videos tomorrow to compare the issue with and without using the SSAO.cfg file. Thanks.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

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

Post by blue_max » Sun Mar 22, 2020 5:36 pm

Bman wrote:
Sun Mar 22, 2020 8:56 am
I did try tweaking some settings as you suggested but the frame rate is still a little choppy and edges are still a little jagged.
Try setting "MSAACount = 8" in ddraw.cfg (this is probably the default when using Jeremy's ddraw)

Did you try "ssao_type = Deferred" in SSAO.cfg? That option shouldn't have any noise.

User avatar
keiranhalcyon7
Lieutenant JG
Posts: 599
Joined: Tue Jan 02, 2018 6:41 am

Post by keiranhalcyon7 » Sun Mar 22, 2020 6:14 pm

Bman wrote:
Sun Mar 22, 2020 8:56 am
Radeon HD 5670
Those 5000-series cards are workhorses, aren't they? ;)

User avatar
DTM
Fleet Admiral (Administrator)
Posts: 2119
Joined: Tue Apr 22, 2003 11:01 pm
Contact:

Post by DTM » Sun Mar 22, 2020 6:52 pm

I know all of you all are showing the latest cockpits and they are awesome but when will the masses (us) will get our hands on them? I really love both variant X-wing Cockpits... 
Soon. I can't give a date, but it's a matter of a few weeks, maybe a few days ...
The big entertainment brands are making great efforts to make us stay at home more comfortably. It would be nice if the XWAUP team did its small part ... ;)

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

Post by rogue518 » Sun Mar 22, 2020 8:17 pm

Cool, thanks for replying DTM….. :D

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

Post Reply