GZDoom 4.6.0 released

News about ZDoom, its child ports, or any closely related projects.
[ZDoom Home] [Documentation (Wiki)] [Official News] [Downloads] [Discord]
[🔎 Google This Site]

Moderator: GZDoom Developers

User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: GZDoom 4.6.0 released

Post by Logan MTM »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49204
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDoom 4.6.0 released

Post by Graf Zahl »

Yeah, it should probably be disabled for certain render styles.
Gez
 
 
Posts: 17937
Joined: Fri Jul 06, 2007 3:22 pm

Re: GZDoom 4.6.0 released

Post by Gez »

Probably only enabled for opaque style, in fact.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49204
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDoom 4.6.0 released

Post by Graf Zahl »

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.
User avatar
Nash
 
 
Posts: 17478
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: GZDoom 4.6.0 released

Post by Nash »

Will do some follow-up PRs for the sprite shadows based on the feedback so far, very soon.
User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: GZDoom 4.6.0 released

Post by Logan MTM »

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:
User avatar
Rachael
Posts: 13884
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: GZDoom 4.6.0 released

Post by Rachael »

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.
User avatar
Nash
 
 
Posts: 17478
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: GZDoom 4.6.0 released

Post by Nash »

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.
User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: GZDoom 4.6.0 released

Post by Logan MTM »

AWESOME!!! :D
luisgph
Posts: 4
Joined: Thu Mar 04, 2021 7:27 pm
Graphics Processor: Intel (Modern GZDoom)
Location: What is wrong with you im here

Re: GZDoom 4.6.0 released

Post by luisgph »

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?
luisgph
Posts: 4
Joined: Thu Mar 04, 2021 7:27 pm
Graphics Processor: Intel (Modern GZDoom)
Location: What is wrong with you im here

Re: GZDoom 4.6.0 released

Post by luisgph »

I wanted You did these things on LzDoom but well we need to see and wait :D
User avatar
inkoalawetrust
Posts: 86
Joined: Mon Aug 26, 2019 9:18 pm
Graphics Processor: nVidia with Vulkan support

Re: GZDoom 4.6.0 released

Post by inkoalawetrust »

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.

Return to “ZDoom (and related) News”