SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Nash
 
 
Posts: 17455
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: SpriteShadow (Duke3D Shadows) v1.9 (calling mod authors)

Post by Nash »

Rachael wrote: You can try posting it in the features suggestions. It isn't unheard of for a new release to be triggered by one, and the release schedule is lagging a bit anyhow.

I'd like to submit the widescreen Hexen and Heretic assets (which are almost ready) in before a 4.6.0 release.



vsonnier wrote: but also casings and ammo magazines that were tagged "+ISMONSTER" just for the sake of supporting them, so everything worked out of the box.
I strongly discourage using the monster flag just for the purpose of enabling shadows - abusing flags in ways it wasn't really designed to, might create conflicts with other mods, or even future engine updates that might use the monster flag for something legitimate.

Add +CASTSPRITESHADOW to actors that you specifically want to have sprite shadows.
User avatar
vsonnier
Posts: 80
Joined: Wed Apr 10, 2019 11:22 pm
Graphics Processor: nVidia with Vulkan support

Re: SpriteShadow (Duke3D Shadows) v1.9 (calling mod authors)

Post by vsonnier »

I strongly discourage using the monster flag just for the purpose of enabling shadows - abusing flags in ways it wasn't really designed to, might create conflicts with other mods, or even future engine updates that might use the monster flag for something legitimate.

Add +CASTSPRITESHADOW to actors that you specifically want to have sprite shadows.
You are right of course, except until a new GZDoom is released this is the only way to make the mod still run (without shadows) with the official v4.50 version. I suppose having an unknown flag would make the DECORATE / ZScript not compile ?
User avatar
NightFright
Spotlight Team
Posts: 1373
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: SpriteShadow (Duke3D Shadows) v1.9 (calling mod authors)

Post by NightFright »

After having the Heretic/Hexen widescreen gfx included, we would indeed have reached a good time for a new release. Let's still wait for that, then. I assume those will also include weapons, btw? (I made a pack which even works in fullscreen, but my edits were rather just good enough to get it done - far from anything official.)
User avatar
Nash
 
 
Posts: 17455
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: SpriteShadow (Duke3D Shadows) v1.9 (calling mod authors)

Post by Nash »

NightFright wrote:I assume those will also include weapons, btw?
Yes, all weapons have been extended both horizontally and (in Hexen's case) vertically.
User avatar
Caligari87
Admin
Posts: 6190
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: SpriteShadow (Duke3D Shadows) v1.9 (calling mod authors)

Post by Caligari87 »

vsonnier wrote:You are right of course, except until a new GZDoom is released this is the only way to make the mod still run (without shadows) with the official v4.50 version. I suppose having an unknown flag would make the DECORATE / ZScript not compile ?
Don't resort to hacks to make it run. There are two options:
  1. Follow best practices for the current stable release, until the feature you want is included in a stable release.
  2. Target the unstable development release and accept that your mod won't run on current stable.
I personally would recommend being patient until the new release, as it's probably very close around the corner.

8-)
User avatar
Rachael
Posts: 13726
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: SpriteShadow (Duke3D Shadows) v1.9 (calling mod authors)

Post by Rachael »

Nash wrote: I'd like to submit the widescreen Hexen and Heretic assets (which are almost ready) in before a 4.6.0 release.
Please keep me posted on that, then, because while Git doesn't actually "pull" data from a submodule, it still has to update the submodule's commit hash when something changes, and that requires someone with commit/push access.

I think Git does this for a "time capsule" effect (i.e. this version of this software worked with this specific X version of Y library).
User avatar
Nash
 
 
Posts: 17455
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by Nash »



Sprite shadows is now built directly into GZDoom 4.6.0!

Update May 23rd 2021 (version 2.0)

- Update mod to utilize engine-native sprite shadow rendering.
- Relicense to MIT.
User avatar
NightFright
Spotlight Team
Posts: 1373
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by NightFright »

So, do those shadows perform better now after being integrated?
Gez
 
 
Posts: 17922
Joined: Fri Jul 06, 2007 3:22 pm

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by Gez »

Yeah, that was the entire point. ;)
User avatar
NightFright
Spotlight Team
Posts: 1373
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by NightFright »

Outstanding. Well, I would have used them one way or the other. This mod used to be in my autoload and finally it arrived where it deserves to be.
User avatar
Lord Misfit
Posts: 224
Joined: Wed Dec 27, 2006 8:13 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: Canton, OH

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by Lord Misfit »

So I'm not sure if this the right topic to talk about the 4.6.0 specific version of sprite shadow rendering, but is there a way for someone to tweak things about the shadows like the transparency level they have? When trying this out with my mod Aetherius, I noticed that my near-stealth monsters [monsters with very high transperancy to the point they're almost invisible, but still not true "stealth" monster] still leave shadows of the same opacity as fully opaque monsters (which makes them suddenly much easier to see coming at you), and I wanted to add a tweak in my mod that alters the visibility/transperancy of the shadows based on the opacity of the object they're linked to. I tried to look on the github repo, but the code I could find looks like it's not accessible to modders directly, at least what I could find [though I used the new flags and the r_spriteshadows var as the search terms, so I might have missed something]. o.o
User avatar
Nash
 
 
Posts: 17455
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by Nash »

Currently there's no customization of the shadows.

The issue about the specters and actor renderstyles has been brought up in another thread, and will be addressed.

As for customization - I don't know. I'm weary to add too much (or any at all) because every optional tweak to it has the potential to slow performance down. The whole point of bringing it to the engine is so that it performs fast (and it currently does - WAY better than the old mod version, because it's not spawning extra actors).

In comparison to the Build engine, there's practically no customizability there either - it's either on or off.

What you CAN do right now is disable shadows for certain monsters - just give them the +NOSPRITESHADOW flag.

(There are 2 new engine flags introduced with 4.6.0 - +CASTSPRITESHADOW and +NOSPRITESHADOW - hopefully self explanatory)
User avatar
NightFright
Spotlight Team
Posts: 1373
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by NightFright »

Current options area bit confusing, anyway. Right now, there is "Default" and "Monsters and Player", but it could just as well be named "Off" and "On". That's what it basically is as it stands now.
Gez
 
 
Posts: 17922
Joined: Fri Jul 06, 2007 3:22 pm

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by Gez »

"Default" is "only enabled for actors that actually have the +CASTSPRITESHADOW flag", in other words, custom content, since standard actors have not been affected. "Monsters and player" automatically project shadows from monsters and players (unless they have the +NOSPRITESHADOW flag, I suppose).
User avatar
Nash
 
 
Posts: 17455
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: SpriteShadow v2.0 (now built into GZDoom 4.6.0!)

Post by Nash »

"Default" means "off by default, but modders can use +CASTSPRITESHADOW"

The engine will not ship with the feature on by default. However, not giving modders the option to specify their actors to have sprite shadows will also be pointless (they will go back to the mod version if they were imposed that limitation).

Return to “Graphic/Audio Patches”