You can call Floor_Waggle also from ZScript code.Cacodemon345 wrote:ZScript way?Caligari87 wrote:You can add a bobbing effect to floors with [wiki]Floor_Waggle[/wiki] in an ACS script.
Ability for textures to bob up and down?
Moderator: GZDoom Developers
- gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
Re: Ability for textures to bob up and down?
-
- 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?
Then the feature request isn't required. Need to find a way to iterate through the sectorlist and then apply it to the sector based on floor texture.gwHero wrote:You can call Floor_Waggle also from ZScript code.Cacodemon345 wrote:ZScript way?Caligari87 wrote:You can add a bobbing effect to floors with [wiki]Floor_Waggle[/wiki] in an ACS script.
Re: Ability for textures to bob up and down?
Alright, look, learning shaders REALLY isn't that hard...Cacodemon345 wrote:Requires knowledge of shaders and how to write it. Using ZDoom's already-existing algorithm is better.
And even if it is, if you ask nicely, somebody might be willing to write it for you.
-
- 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 know. But shaders won't work with PBR stuff...
Re: Ability for textures to bob up and down?
It seems to me that everyone is confused on exactly what you want from looking through this thread - could you clarify exactly what it is you're asking for, so someone can give you a proper answer? Floor_Waggle and shaders have both been given as solutions here, which don't/can't do the same thing at all.
- gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
Re: Ability for textures to bob up and down?
I think I understand what Cacodemon345 wants, given this post viewtopic.php?f=122&t=60524
> getting all sectors in a level with a given floor texture (that's possible with iterating through level.sectors)
> moving up and down these floors like floor_waggle does; except because floor_waggle requires a tag, with the current status of acs/zscript this is only possible with zscript by raising and lowering these floors by calling Floor.CreateFloor directly for the retrieved sectornums.
But this requires quite some coding if you want to do this decently; since you don't have something like a tagwait the code will have to check itself when a floor has stopped raising or lowering. So this probably requires some bookkeeping with remembering the sectornums in a array and doing the checks in a tick().
This is absolutely doable, but of course I can understand raising a feature request first to make things a lot easier.
> getting all sectors in a level with a given floor texture (that's possible with iterating through level.sectors)
> moving up and down these floors like floor_waggle does; except because floor_waggle requires a tag, with the current status of acs/zscript this is only possible with zscript by raising and lowering these floors by calling Floor.CreateFloor directly for the retrieved sectornums.
But this requires quite some coding if you want to do this decently; since you don't have something like a tagwait the code will have to check itself when a floor has stopped raising or lowering. So this probably requires some bookkeeping with remembering the sectornums in a array and doing the checks in a tick().
This is absolutely doable, but of course I can understand raising a feature request first to make things a lot easier.
- gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
Re: Ability for textures to bob up and down?
I've created a short simple demo wad that moves all floors with textures FLOOR0_1 and FLAT5_5 up and down. Could be I'm wrong with what OP really wants, but well, you never know if it's a help for someone else. Just play with doom2.wad
- Attachments
-
- demowagg.pk3
- (1 KiB) Downloaded 46 times
-
- 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?
It uses Sector Raise and Lower, which will cause sounds to play unintended. Plus it moves literally any kind of objects and doesn't actually submerge that into the floor.
- gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
Re: Ability for textures to bob up and down?
Well, that's back to the drawingboard I guess. Concerning sounds, I think you could do something about that with silenced sounds sequences, but the submerging... Maybe shaders is the only option left.
-
- 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 don't think shaders are an option unless GZDoom gets support for custom vertex shaders, which is unlikely.
- gwHero
- Posts: 360
- Joined: Mon May 08, 2017 3:23 am
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: The Netherlands
Re: Ability for textures to bob up and down?
I am out of options for the moment. Moving swimmable 3d floors up and down might come close, but you cannot create them on the fly, so that won't help you with existing wads. I can think of non interactive flat sprites on the floor that raise and lower, but I'm afraid that will look awful.