Ability for textures to bob up and down?
Moderator: GZDoom Developers
-
- 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?
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)
(Sorry if this idea seems impossible)
- 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?
You can add a bobbing effect to floors with [wiki]Floor_Waggle[/wiki] in an ACS script.
-
- 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?
ZScript way?Caligari87 wrote:You can add a bobbing effect to floors with [wiki]Floor_Waggle[/wiki] in an ACS script.
- 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?
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.
-
- 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?
Seems like it is too complicated. I want a simpler way.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.
Re: Ability for textures to bob up and down?
Agreed.Cacodemon345 wrote:Seems like it is too complicated. I want a simpler way.
- 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?
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.
-
- 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?
I think I will need to find an way to auto-apply the waggle effect to a sector once it gets done.
- 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?
You can iterate through the level sectorlist in an eventhandler and apply the effect based on anything such as floor texture.
-
- 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?
How? I would like to note this down for future reference.Caligari87 wrote:You can iterate through the level sectorlist in an eventhandler and apply the effect based on anything such as floor texture.
- 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?
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...
-
- 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?
I would rather use a simpler way than this.
- Graf Zahl
- 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?
How about writing a hardware shader that cycles the texture's v-coordinate?
-
- 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?
Requires knowledge of shaders and how to write it. Using ZDoom's already-existing algorithm is better.
- Graf Zahl
- 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?
Ok, then...