Re: GZDoom 4.6.0 released

Sun May 30, 2021 10:17 am

Sprite shadows like in the Build engine. Both in software and hardware renderer.

Cool! However, it has never been easier to see a Spectre in the dark.

Re: GZDoom 4.6.0 released

Sun May 30, 2021 11:30 am

Yeah, it should probably be disabled for certain render styles.

Re: GZDoom 4.6.0 released

Sun May 30, 2021 11:46 am

Probably only enabled for opaque style, in fact.

Re: GZDoom 4.6.0 released

Sun May 30, 2021 11:58 am

For regular translucency it should be adapted to the alpha, e.g. if a monster is 50% translucent, the shadow should be 25%, for example.

Re: GZDoom 4.6.0 released

Sun May 30, 2021 1:28 pm

Will do some follow-up PRs for the sprite shadows based on the feedback so far, very soon.

Re: GZDoom 4.6.0 released

Mon May 31, 2021 6:27 pm

Graf Zahl wrote:Yeah, it should probably be disabled for certain render styles.


Just to clarify my doubt and possible concern. Shadow sprites is loads into memory once but renders twice, right?
What about monsters made of pure shadow that don't need shadow, because "shadow" doesn't make shadow?
Could this overload performance in any way?
Spoiler:

Re: GZDoom 4.6.0 released

Mon May 31, 2021 6:36 pm

Logan MTM wrote:
Graf Zahl wrote:Yeah, it should probably be disabled for certain render styles.


Just to clarify my doubt and possible concern. Shadow sprites is loads into memory once but renders twice, right?
What about monsters made of pure shadow that don't need shadow, because "shadow" doesn't make shadow?
Could this overload performance in any way?


What you linked in picture, those are not the kind of shadows.

Performance on rendering these shadows should be fairly light, unless A) your machine has trouble rendering sprites to begin with (in which case, you probably won't run GZDoom at all with a machine like that), or B) there's too many of them on the screen, and then that gets doubled to twice as too many.

To answer your question about memory usage - you are right - only loads once in RAM, twice on screen. The shadows and the sprite itself use the same exact pixel data, just one uses a different rendering style.

Re: GZDoom 4.6.0 released

Mon May 31, 2021 7:22 pm

Logan MTM wrote:What about monsters made of pure shadow that don't need shadow, because "shadow" doesn't make shadow?


You can add +NOSPRITESHADOW to the actor to force it to never render sprite shadows.

Re: GZDoom 4.6.0 released

Mon May 31, 2021 8:27 pm

AWESOME!!! :D

Re: GZDoom 4.6.0 released

Tue Jun 01, 2021 6:13 pm

Nash wrote:

Enjoy your fully-widescreen-ified Heretic and Hexen, and sprite shadows, everyone! :D

And solid release as usual, Graf and the rest of the team.


Wait what? Now there are oficial Sprite shadows?

Re: GZDoom 4.6.0 released

Tue Jun 01, 2021 6:18 pm

I wanted You did these things on LzDoom but well we need to see and wait :D

Re: GZDoom 4.6.0 released

Thu Jun 03, 2021 3:49 am

luisgph wrote:I wanted You did these things on LzDoom but well we need to see and wait :D


AFAIK LZDoom mostly just merges changes made to GZDoom into itself, plus sprite shadows can apperantly even be implemented to Zandronum*, and Zandronum is based on 2014 GZDoom. So LZDoom will definitely have this whenever drfrag releases 3.88, and it will mostly likely work just fine on really old OpenGL 2.1 hardware too.


*I know that's possible because Nash has already joined the Zandronum Discord server to ask the developers where he can contibute to Zandro's repository to add sprite shadows to it too, since it's apparently a relatively simple rendering effect of drawing the same sprite again, but squashed and with a shadowy rendering effect.