Page 1 of 3

[Coding] Smooth fluids

Posted: Thu Feb 02, 2017 2:54 pm
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):

Re: [Coding] Smooth fluids

Posted: Thu Feb 02, 2017 3:16 pm
by Mikk-
Really nicely done! This has taught me that you can use a speed value for ANIMDEFS' Warp/Warp2. Love the heretic textures.

Re: [Coding] Smooth fluids

Posted: Thu Feb 02, 2017 4:13 pm
by Tormentor667
Any chance of a video of this? :)

Re: [Coding] Smooth fluids

Posted: Fri Feb 03, 2017 12:09 am
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

Re: [Coding] Smooth fluids

Posted: Sat Feb 11, 2017 11:28 am
by Voltcom9
This is really great. Thanks for making this!

Re: [Coding] Smooth fluids

Posted: Thu Feb 16, 2017 11:57 am
by Agitatio
Makes water in BTSX static.

Re: [Coding] Smooth fluids

Posted: Thu Feb 16, 2017 2:03 pm
by Tormentor667
Finally had the time to check this ingame, it's very well done, good work Eruanna :)

Re: [Coding] Smooth fluids

Posted: Fri Feb 17, 2017 9:02 am
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. :)

Re: [Coding] Smooth fluids

Posted: Fri Feb 17, 2017 10:38 am
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!

Re: [Coding] Smooth fluids

Posted: Fri Feb 17, 2017 3:46 pm
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:

Re: [Coding] Smooth fluids

Posted: Fri Feb 17, 2017 4:56 pm
by Rachael
Thank you, leodoom85! You wouldn't mind if I put that in my OP would you? :D

Re: [Coding] Smooth fluids

Posted: Fri Feb 17, 2017 5:25 pm
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:

Re: [Coding] Smooth fluids

Posted: Fri Feb 17, 2017 11:21 pm
by Rachael
Thanks! :)

Re: [Coding] Smooth fluids

Posted: Sat Feb 18, 2017 12:29 pm
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?

Re: [Coding] Smooth fluids

Posted: Sat Feb 18, 2017 12:58 pm
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