GZDoom Shaders (and Spectre in GZDoom)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Evil Space Tomato
Posts: 78
Joined: Tue Jul 20, 2004 7:56 pm
Graphics Processor: nVidia with Vulkan support

GZDoom Shaders (and Spectre in GZDoom)

Post by Evil Space Tomato »

I was messing around with getting the hardware shaders in GZdoom to do cool stuff and I made an effect that is similar to the old style spectre.

What do you guys think is this worth working on more?
Attachments
glDemPk3.zip
The Pk3 File
(11.01 KiB) Downloaded 99 times
Picture of effect
Picture of effect
Spectre.jpg (102.82 KiB) Viewed 1735 times
Last edited by Evil Space Tomato on Mon Dec 27, 2010 6:32 am, edited 1 time in total.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Spectre in GZDoom

Post by Gez »

It's definitely odd-looking. If you think you can replicate the fuzz effect, why not?
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Re: Spectre in GZDoom

Post by CaptainToenail »

Certainly looks better than the existing GZDoom effect. :)
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Spectre in GZDoom

Post by Nash »

That looks awesome! It would be more awesome if you can make it somehow warp the pixels behind it a little...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Spectre in GZDoom

Post by Graf Zahl »

Shaders don't have access to that so no, it's not possible.
Evil Space Tomato
Posts: 78
Joined: Tue Jul 20, 2004 7:56 pm
Graphics Processor: nVidia with Vulkan support

Re: Spectre in GZDoom

Post by Evil Space Tomato »

Nash wrote:That looks awesome! It would be more awesome if you can make it somehow warp the pixels behind it a little...
Yes that would be cool but I think that would require some sort of post processing, right now shaders just take the pixels on the image and change the RGBA values.

I made 5 different versions of this shader which ones do you guys like best, or should I combine some of them?
Basic Pixelized Spectre
http://www.humenet.net/HereticAmp/glDemA.Pk3.zip
Basic Smooth Spectre
http://www.humenet.net/HereticAmp/glDemB.Pk3.zip
Swirly Smooth Spectre
http://www.humenet.net/HereticAmp/glDemC.Pk3.zip
Swirly Smooth Translucent Spectre
http://www.humenet.net/HereticAmp/glDemD.Pk3.zip
Jagged Translucent Spectre
http://www.humenet.net/HereticAmp/glDemE.Pk3.zip

Merry Xmas
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Spectre in GZDoom

Post by NeuralStunner »

I think it looks great.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Spectre in GZDoom

Post by Graf Zahl »

Not bad. The only thing that bothers me is that adding these to the sprite is too tedious. I really should invest some time adding a better method to set hardware shaders directly in DECORATE.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Spectre in GZDoom

Post by Gez »

I wonder if EDGE's fuzz emulation system could be imitated in GZDoom. It's apparently based on using a "fuzzmap" texture and, basically, giving it varying offsets and cutting the shape of the sprite in it.
Evil Space Tomato
Posts: 78
Joined: Tue Jul 20, 2004 7:56 pm
Graphics Processor: nVidia with Vulkan support

Re: Spectre in GZDoom

Post by Evil Space Tomato »

Gez wrote:I wonder if EDGE's fuzz emulation system could be imitated in GZDoom. It's apparently based on using a "fuzzmap" texture and, basically, giving it varying offsets and cutting the shape of the sprite in it.
It would be cool if code was general enough that it would allow you to apply different effects, like making all of the non transparent part show a texture or something.
Graf Zahl wrote:Not bad. The only thing that bothers me is that adding these to the sprite is too tedious. I really should invest some time adding a better method to set hardware shaders directly in DECORATE.
If you do please allow for decorate to pass in numbers to the shader that would allow me to do some very cool stuff, even if its just one number. [like A_SetShaderValue(1.5)]

Also I made a spectre that can cloak and de-cloak.
http://www.humenet.net/HereticAmp/glDemF.Pk3.zip
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Spectre in GZDoom

Post by Graf Zahl »

All 5 fuzz styles will be available in the next GZDoom version. Do you want me to add some copyright to the shader code?
User avatar
Enjay
 
 
Posts: 26953
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Spectre in GZDoom

Post by Enjay »

Nice to see someone actually trying a bit of modding with GZdoom shaders. These are all pretty cool. I have to say that I prefer the GZdoom (GLBoom?) shadow-like effect but these do work very nicely.

To be fair, I was never that fond of the original Spectre fuzz effect and I always thought that it was more suited to an invisibility created by a sci-fi device than some kind of demonic magical effect. Some of these new shader effects would work very well as sci-fi devices too.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Spectre in GZDoom

Post by edward850 »

Graf Zahl wrote:All 5 fuzz styles will be available in the next GZDoom version.
Just tried the latest SVN. The effects are awesome, but I noticed that while it does affect the player sprite (by collecting the blursphere), it doesn't affect HUD weapons. Is it not doable or am I just posting to early?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Spectre in GZDoom

Post by Graf Zahl »

I haven't implemented it yet in the weapon drawing code, only in the normal sprite drawer.
Evil Space Tomato
Posts: 78
Joined: Tue Jul 20, 2004 7:56 pm
Graphics Processor: nVidia with Vulkan support

Re: Spectre in GZDoom

Post by Evil Space Tomato »

Graf Zahl wrote:All 5 fuzz styles will be available in the next GZDoom version. Do you want me to add some copyright to the shader code?
Just add "//created by Evil Space Tomato"
Enjay wrote:To be fair, I was never that fond of the original Spectre fuzz effect and I always thought that it was more suited to an invisibility created by a sci-fi device than some kind of demonic magical effect. Some of these new shader effects would work very well as sci-fi devices too.
I always saw it as kind magical maybe not demonic but it was kinda cool.


Also this is now a general GZDoom Shaders thread.
Locked

Return to “Editing (Archive)”