Ability for textures to bob up and down?

Moderator: GZDoom Developers

Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Ability for textures to bob up and down?

Post by Cacodemon345 »

There should be an ability for textures to move up and down. It would be useful to provide cool effects to certain flats apart from warping effects.
(Sorry if this idea seems impossible)
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Ability for textures to bob up and down?

Post by Caligari87 »

You can add a bobbing effect to floors with [wiki]Floor_Waggle[/wiki] in an ACS script.

8-)
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Ability for textures to bob up and down?

Post by Cacodemon345 »

Caligari87 wrote:You can add a bobbing effect to floors with [wiki]Floor_Waggle[/wiki] in an ACS script.

8-)
ZScript way?
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Ability for textures to bob up and down?

Post by Marisa the Magician »

Unfortunately the ZScript way to do this (which is already in, see MoveFloor/MoveCeiling) is a bit more complicated than you'd imagine. You have to roll out your own custom SectorEffect that does the moving every Tick.
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Ability for textures to bob up and down?

Post by Cacodemon345 »

Marisa Kirisame wrote:Unfortunately the ZScript way to do this (which is already in, see MoveFloor/MoveCeiling) is a bit more complicated than you'd imagine. You have to roll out your own custom SectorEffect that does the moving every Tick.
Seems like it is too complicated. I want a simpler way.
User avatar
Rachael
Posts: 13532
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Ability for textures to bob up and down?

Post by Rachael »

Cacodemon345 wrote:Seems like it is too complicated. I want a simpler way.
Agreed.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Ability for textures to bob up and down?

Post by Marisa the Magician »

I ought to export the entire sectoreffect family to zscript so this is easier. That way one can directly apply a waggle by simply making an instance of the waggle effect and latching it onto a sector.
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Ability for textures to bob up and down?

Post by Cacodemon345 »

I think I will need to find an way to auto-apply the waggle effect to a sector once it gets done.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Ability for textures to bob up and down?

Post by Caligari87 »

You can iterate through the level sectorlist in an eventhandler and apply the effect based on anything such as floor texture.

8-)
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Ability for textures to bob up and down?

Post by Cacodemon345 »

Caligari87 wrote:You can iterate through the level sectorlist in an eventhandler and apply the effect based on anything such as floor texture.

8-)
How? I would like to note this down for future reference.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Ability for textures to bob up and down?

Post by Matt »

What I'd really like to see is a generic, instant SetSectorPlane function with options for floor/ceiling, relative/absolute (a lower absolute number or negative relative number will indicate whether up or down), crush/nocrush and interpolation. If we had that we'd be able to do just about everything else through actor states or thinkers...
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Ability for textures to bob up and down?

Post by Cacodemon345 »

I would rather use a simpler way than this.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Ability for textures to bob up and down?

Post by Graf Zahl »

How about writing a hardware shader that cycles the texture's v-coordinate?
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Ability for textures to bob up and down?

Post by Cacodemon345 »

Requires knowledge of shaders and how to write it. Using ZDoom's already-existing algorithm is better.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Ability for textures to bob up and down?

Post by Graf Zahl »

Ok, then...
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”