[Coding] Smooth fluids

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Rachael
Posts: 13718
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

[Coding] Smooth fluids

Post by Rachael »

This is really just coding work, at least for my part.

I recommend this mod be used in conjunction with Enjay's terrain splash found here: viewtopic.php?f=37&t=35547

What this does is it smooths the animation for fluid textures, and adds a warp to them. In my opinion this makes it look more natural, and is easier on the eyes.

The reason I am posting this in "Resources" is because this should be adaptable to any set of fluid graphics - so you really are welcome to use this in your mod, if you so desire. But even as a patch on its own it works just fine and it works with a lot of vanilla wads.

Disclaimer: No Copy+Paste keys were harmed in the making of this. Promise!

As for credit - I'd prefer credit, but I am not going to lose sleep over it if you omit me. (Probably just think of you as an evil person. :P)

Also - video of this in action - courtesy of leodoom85 (thank you! :D):
You do not have the required permissions to view the files attached to this post.
Last edited by Rachael on Fri Feb 17, 2017 11:21 pm, edited 3 times in total.
Reason: minor changes to the post
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm
Location: Somewhere off Kanagawa

Re: [Coding] Smooth fluids

Post by Mikk- »

Really nicely done! This has taught me that you can use a speed value for ANIMDEFS' Warp/Warp2. Love the heretic textures.
User avatar
Tormentor667
Posts: 13547
Joined: Wed Jul 16, 2003 3:52 am

Re: [Coding] Smooth fluids

Post by Tormentor667 »

Any chance of a video of this? :)
User avatar
Rachael
Posts: 13718
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [Coding] Smooth fluids

Post by Rachael »

Mikk- wrote:Really nicely done! This has taught me that you can use a speed value for ANIMDEFS' Warp/Warp2. Love the heretic textures.
Thank you. :)
Tormentor667 wrote:Any chance of a video of this? :)
Maybe someday when I am not feeling lazy. :P
User avatar
Voltcom9
Posts: 224
Joined: Fri May 27, 2016 2:03 pm

Re: [Coding] Smooth fluids

Post by Voltcom9 »

This is really great. Thanks for making this!
User avatar
Agitatio
Posts: 242
Joined: Mon Sep 05, 2011 10:07 am
Graphics Processor: nVidia with Vulkan support

Re: [Coding] Smooth fluids

Post by Agitatio »

Makes water in BTSX static.
User avatar
Tormentor667
Posts: 13547
Joined: Wed Jul 16, 2003 3:52 am

Re: [Coding] Smooth fluids

Post by Tormentor667 »

Finally had the time to check this ingame, it's very well done, good work Eruanna :)
User avatar
Rachael
Posts: 13718
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [Coding] Smooth fluids

Post by Rachael »

Tormentor667 wrote:Finally had the time to check this ingame, it's very well done, good work Eruanna :)
Thank you. :)
Grigori wrote:Makes water in BTSX static.
Yes - this does not work with BTSX. Please don't use it with that mod.

The reason being that BTSX has its own animation system for flats - which is a lot more complex than what was originally found in DOOM.WAD. It uses FWATER1 and FWATER4 as animation markers and interlays a whole bunch of flats in between them. This technique was supported by Vanilla Doom (and by proxy, ZDoom, but not with any smoothing). I suppose if one wanted they could make a smooth animation system specifically for BTSX, but I have neither the motivation nor desire to do so. Then again, that's why I put this mod in the Resources section, and not the Graphic Replacements section - you are free to do what you want with it. :)
User avatar
Agitatio
Posts: 242
Joined: Mon Sep 05, 2011 10:07 am
Graphics Processor: nVidia with Vulkan support

Re: [Coding] Smooth fluids

Post by Agitatio »

Rachael wrote:I suppose if one wanted they could make a smooth animation system specifically for BTSX, but I have neither the motivation nor desire to do so. Then again, that's why I put this mod in the Resources section, and not the Graphic Replacements section - you are free to do what you want with it. :)
Oh I understand that. Requesting a BTSX support was not my intention. Just wanted to point out that it doesn't work with BTSX.

Thanks for making this!
User avatar
leodoom85
Posts: 684
Joined: Sun Sep 14, 2014 6:40 pm
Location: Earth-shaking Chile

Re: [Coding] Smooth fluids

Post by leodoom85 »

I did a video showcasing the animated fluids...don't look too much time directly to the animated texture or your eyes will mess your brain :trippy:
User avatar
Rachael
Posts: 13718
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [Coding] Smooth fluids

Post by Rachael »

Thank you, leodoom85! You wouldn't mind if I put that in my OP would you? :D
User avatar
leodoom85
Posts: 684
Joined: Sun Sep 14, 2014 6:40 pm
Location: Earth-shaking Chile

Re: [Coding] Smooth fluids

Post by leodoom85 »

Rachael wrote:Thank you, leodoom85! You wouldn't mind if I put that in my OP would you? :D
Oh, I forgot to said that :p
You can do it :wink:
User avatar
Rachael
Posts: 13718
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [Coding] Smooth fluids

Post by Rachael »

Thanks! :)
User avatar
Dr_Cosmobyte
Posts: 2800
Joined: Thu Jun 04, 2015 9:07 pm
Preferred Pronouns: He/Him
Location: Killing spiders.

Re: [Coding] Smooth fluids

Post by Dr_Cosmobyte »

Somehow this don't work for me :(

It starts flickering, like the animation doesn't finish, and starts over on a different position. Could it be my GZDoom?
User avatar
leodoom85
Posts: 684
Joined: Sun Sep 14, 2014 6:40 pm
Location: Earth-shaking Chile

Re: [Coding] Smooth fluids

Post by leodoom85 »

In the video that I posted, that was GZDoom 2.3.2. Also if you use the file in Zandronum in conjunction with Epic 2, any liquid texture will appear in black...and it crashes in Zandronum if you use the Heretic fluid file

Return to “Script Library”