Fill Spectre v3.1

Re: Fill Spectre v3.1

Postby Apeirogon » Wed Mar 13, 2019 11:40 am

Hey, pixel, I found, not like someone try to hide it, function like a_setrenderstyle. What interesting about it function that it can paint monsters sprite to some color, say pink, without losing sprite "relief" like in this picture.
https://imgur.com/a/IQqqQJx
So, maybe it can be used to make every/some monster on map cloaking without sprite crutches?
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Fill Spectre v3.1

Postby doomfiend » Wed Mar 13, 2019 2:09 pm

omg that would be awesome if that could be done. O_o
User avatar
doomfiend
 
Joined: 27 Aug 2006
Location: some where

Re: Fill Spectre v3.1

Postby Pixel Eater » Wed Mar 13, 2019 11:24 pm

CUBEKid04 wrote:Just a request, could you create a shader for heatwave distortions, say like when an explosion occurs or the after effect seen with fire and stuff, it would be nice to see heatwave distortion effects for like when an explosion occurs.

I've posted a suggestion that would allow for that sort of effect but it requires some heavy modifications to the engine.

Just for fun though here's a different heatwave effect (pour in some lava with a dash of godmode):
Heatwave.pk3

@Apeirogon: I think I might already be using a_setrenderstyle so it can be toggled? I've been working on updates for a bunch of other projects so I'm probably misremembering...

@Doomfiend: I concur :mrgreen:
You do not have the required permissions to view the files attached to this post.
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Fill Spectre v3.1

Postby Apeirogon » Fri Mar 15, 2019 9:06 am

Its easy, just create event with this lines
Code: Select allExpand view
override void WorldThingSpawned(WorldEvent e)
{
   if(e.thing.bIsmonster == true)
   {
      e.thing.a_setrenderstyle(1, STYLE_AddShaded); e.thing.SetShade("color in hex notations");
   }
}

to paint monster in some colors.

It also possible change color which shader must "cloak", to match monster color if some custom texture color on map interfere with default shader color.
I try to pick color for you shader by hand, but looks like it hardcoded in it and Im not familiar with shaders enough to change it.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Fill Spectre v3.1

Postby Adamast0r » Wed Apr 07, 2021 6:32 am

This is awesome.
Would it be possible to replicate it on the player when under the effects of a Blursphere?
User avatar
Adamast0r
UAC Employee ID #1992
 
Joined: 22 May 2020
Location: Earth
Discord: Adamast0r#1899
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)

Re: Fill Spectre v3.1

Postby Apeirogon » Tue Jul 13, 2021 9:21 am

If someone wants to apply this shader to other sprites, paint them in specific shade of purple. What exactly shade? Open spectre sprite in something that able to show what exactly color mouse cursor currently pointing at on a picture. I used paint.net.
Spectre sprite constructed from pixels with maxed red and blue color channels with variable green channel color through whole sprite, which represent "roughness" of spectre sprite in this context. See picture

"Kinda like purple" colour will not work here, shader designed to "fill" only this specific shade of purple, see picture
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Fill Spectre v3.1

Postby Cherno » Tue Jul 13, 2021 1:27 pm

I tested this shader and the effect broke down when using AA, or when the camouflaged sprite is in front of any other purple pixels. Is this a known limitation?
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: Fill Spectre v3.1

Postby Apeirogon » Tue Jul 13, 2021 1:34 pm

Anti Aliasing? Anti Aircraft? Ancient Alien?
And yeah, it break with purple pixels.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Previous

Return to Shaders

Who is online

Users browsing this forum: No registered users and 1 guest