[Coding] Smooth fluids
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.
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.
-
- Posts: 13793
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
[Coding] Smooth fluids
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. )
Also - video of this in action - courtesy of leodoom85 (thank you! ):
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. )
Also - video of this in action - courtesy of leodoom85 (thank you! ):
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
Reason: minor changes to the post
-
- Posts: 2274
- Joined: Tue Jun 30, 2009 1:31 pm
Re: [Coding] Smooth fluids
Really nicely done! This has taught me that you can use a speed value for ANIMDEFS' Warp/Warp2. Love the heretic textures.
-
- Posts: 13549
- Joined: Wed Jul 16, 2003 3:52 am
Re: [Coding] Smooth fluids
Any chance of a video of this?
-
- Posts: 13793
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: [Coding] Smooth fluids
Thank you.Mikk- wrote:Really nicely done! This has taught me that you can use a speed value for ANIMDEFS' Warp/Warp2. Love the heretic textures.
Maybe someday when I am not feeling lazy.Tormentor667 wrote:Any chance of a video of this?
-
- Posts: 224
- Joined: Fri May 27, 2016 2:03 pm
Re: [Coding] Smooth fluids
This is really great. Thanks for making this!
-
- Posts: 242
- Joined: Mon Sep 05, 2011 10:07 am
- Graphics Processor: nVidia with Vulkan support
Re: [Coding] Smooth fluids
Makes water in BTSX static.
-
- Posts: 13549
- Joined: Wed Jul 16, 2003 3:52 am
Re: [Coding] Smooth fluids
Finally had the time to check this ingame, it's very well done, good work Eruanna
-
- Posts: 13793
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: [Coding] Smooth fluids
Thank you.Tormentor667 wrote:Finally had the time to check this ingame, it's very well done, good work Eruanna
Yes - this does not work with BTSX. Please don't use it with that mod.Grigori wrote:Makes water in BTSX static.
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.
-
- Posts: 242
- Joined: Mon Sep 05, 2011 10:07 am
- Graphics Processor: nVidia with Vulkan support
Re: [Coding] Smooth fluids
Oh I understand that. Requesting a BTSX support was not my intention. Just wanted to point out that it doesn't work with BTSX.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.
Thanks for making this!
-
- Posts: 684
- Joined: Sun Sep 14, 2014 6:40 pm
- Location: Earth-shaking Chile
Re: [Coding] Smooth fluids
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
-
- Posts: 13793
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: [Coding] Smooth fluids
Thank you, leodoom85! You wouldn't mind if I put that in my OP would you?
-
- Posts: 684
- Joined: Sun Sep 14, 2014 6:40 pm
- Location: Earth-shaking Chile
Re: [Coding] Smooth fluids
Oh, I forgot to said thatRachael wrote:Thank you, leodoom85! You wouldn't mind if I put that in my OP would you?
You can do it
-
- Posts: 13793
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: [Coding] Smooth fluids
Thanks!
-
- Posts: 2816
- Joined: Thu Jun 04, 2015 9:07 pm
- Preferred Pronouns: He/Him
- Location: Killing spiders.
Re: [Coding] Smooth fluids
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?
It starts flickering, like the animation doesn't finish, and starts over on a different position. Could it be my GZDoom?
-
- Posts: 684
- Joined: Sun Sep 14, 2014 6:40 pm
- Location: Earth-shaking Chile
Re: [Coding] Smooth fluids
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