Sonic The Fighters-style model lighting (v2)

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.
Post Reply
User avatar
TDRR
Posts: 815
Joined: Sun Mar 11, 2018 4:15 pm
Operating System Version (Optional): Manjaro/Win 8.1
Graphics Processor: Intel (Modern GZDoom)
Location: Venezuela

Sonic The Fighters-style model lighting (v2)

Post by TDRR »

NOTE: At the moment not compatible with GZDoom versions newer than 1.9.1, but I'm trying to figure out a way to make it work in a way that's compatible with the Zandronum version (as in, not requiring double setup to support both sourceports' versions), which is likely impossible :(

Here's a Sonic The Fighters/Superhot style model lighting shader for Zandronum 3.0, GZDoom 1.8.6 to 1.9.1 (Which includes ZDoom32 and ZDoom LE).
Thanks to Kevin over at learnopengles.com for his great help, without which I wouldn't have done this at all.
STF_Lighting_Shader_Zandro.zip
(1.25 KiB) Downloaded 280 times
For usage, set up a brightmapped model as you normally would in GLDEFS and MODELDEFS, but set "map" to "shader/null.png" (included in the pk3 file)
NOTE: If your brightmaps have any alpha translucency, that section of the brightmap will be interpreted as "needs flat shading" (This also completely discards RGB info the brightmap set in that pixel!). Use only black and white brightmaps if you need normal Zandronum/GZDoom behavior.

I recommend keeping the shader itself as a separate addon, for compatibility with future Zandronum versions. Since this overrides func_brightmap.fp, and GZDoom itself has already completely switched to using a different method for brightmaps (They are internally treated as materials, and old shaders replacing it won't work correctly) it's to be expected Zandronum will too, so please avoid making this an absolute requirement so people will be able to run your mod with newer Zandronum versions.
Spoiler: Features
Spoiler: Customization
Spoiler: Known bugs
Screenshot of how it looks (might look nicer with higher poly models, or some with better triangle distribution):
STF_Lighting_Shader_Zandro.zip
(1.25 KiB) Downloaded 280 times
Attachments
stf_light_style.png
stf_light_style.png (19.05 KiB) Viewed 5094 times
Last edited by TDRR on Sat Apr 25, 2020 12:45 pm, edited 1 time in total.
User avatar
Rayman The Hedgehog
Posts: 108
Joined: Wed Jul 25, 2018 9:20 am
Location: Venezuela

Re: Sonic The Fighters-style model lighting (v2)

Post by Rayman The Hedgehog »

Woah nice! this would be useful for emulate volumetric shadows a la Jedi Outcast in GZDoom
User avatar
TDRR
Posts: 815
Joined: Sun Mar 11, 2018 4:15 pm
Operating System Version (Optional): Manjaro/Win 8.1
Graphics Processor: Intel (Modern GZDoom)
Location: Venezuela

Re: Sonic The Fighters-style model lighting (v2)

Post by TDRR »

Rayman The Hedgehog wrote:Woah nice! this would be useful for emulate volumetric shadows a la Jedi Outcast in GZDoom
If by volumetric shadows you mean those projected on the surfaces and not the models themselves, that's not what this does (and anyways that's impossible using only shaders with what little Zandronum and even modern GZDoom gives you with shaders), but GShadow: Resurrected makes something closer to projected shadows.

But you made me think, it's actually possible to mix both mods and use flattened, animated and full-black models for the shadows to closely emulate Sonic The Fighters visuals in Zandronum, like this:
Image
So maybe projected shadows aren't impossible, but they definitely can't be done with this shader.
User avatar
r&r
Posts: 279
Joined: Fri Sep 08, 2017 2:54 pm

Re: Sonic The Fighters-style model lighting (v2)

Post by r&r »

We need more 3d packs of weapons and monster models to show these off

the only thing i can think of the Quake stuff mods , Hunters Moon and the Gene-Tech mod
to show off for this mod
Post Reply

Return to “Shaders”