[Coding] Smooth fluids

Post your example zscripts/ACS scripts/etc here.

[Coding] Smooth fluids

Postby Rachael » Thu Feb 02, 2017 3:54 pm

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):
Attachments
fluids.pk3
For Doom 1/2/Final/Wadsmoosh
(29.35 KiB) Downloaded 284 times
fluids-heretic.pk3
For Heretic
(18.26 KiB) Downloaded 103 times
Last edited by Rachael on Sat Feb 18, 2017 12:21 am, edited 3 times in total.
Reason: minor changes to the post
User avatar
Rachael
 
Joined: 13 Jan 2004

Re: [Coding] Smooth fluids

Postby Mikk- » Thu Feb 02, 2017 4:16 pm

Really nicely done! This has taught me that you can use a speed value for ANIMDEFS' Warp/Warp2. Love the heretic textures.
User avatar
Mikk-
blub blub blub
 
Joined: 30 Jun 2009
Location: Space station base of the UAC
Discord: Mikk0451#3922

Re: [Coding] Smooth fluids

Postby Tormentor667 » Thu Feb 02, 2017 5:13 pm

Any chance of a video of this? :)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [Coding] Smooth fluids

Postby Rachael » Fri Feb 03, 2017 1:09 am

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
Rachael
 
Joined: 13 Jan 2004

Re: [Coding] Smooth fluids

Postby Voltcom9 » Sat Feb 11, 2017 12:28 pm

This is really great. Thanks for making this!
User avatar
Voltcom9
Hurry quick! Cast the damn fireball!
 
Joined: 27 May 2016
Location: the Frozen North.

Re: [Coding] Smooth fluids

Postby Grigori » Thu Feb 16, 2017 12:57 pm

Makes water in BTSX static.
User avatar
Grigori
 
Joined: 05 Sep 2011
Discord: Agitatio#4183

Re: [Coding] Smooth fluids

Postby Tormentor667 » Thu Feb 16, 2017 3:03 pm

Finally had the time to check this ingame, it's very well done, good work Eruanna :)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [Coding] Smooth fluids

Postby Rachael » Fri Feb 17, 2017 10:02 am

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
Rachael
 
Joined: 13 Jan 2004

Re: [Coding] Smooth fluids

Postby Grigori » Fri Feb 17, 2017 11:38 am

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
Grigori
 
Joined: 05 Sep 2011
Discord: Agitatio#4183

Re: [Coding] Smooth fluids

Postby leodoom85 » Fri Feb 17, 2017 4:46 pm

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
leodoom85
Share your energy to the megasphere!!!
 
Joined: 14 Sep 2014
Location: Earth-shaking Chile
Discord: leodoom85#6202

Re: [Coding] Smooth fluids

Postby Rachael » Fri Feb 17, 2017 5:56 pm

Thank you, leodoom85! You wouldn't mind if I put that in my OP would you? :D
User avatar
Rachael
 
Joined: 13 Jan 2004

Re: [Coding] Smooth fluids

Postby leodoom85 » Fri Feb 17, 2017 6:25 pm

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
leodoom85
Share your energy to the megasphere!!!
 
Joined: 14 Sep 2014
Location: Earth-shaking Chile
Discord: leodoom85#6202

Re: [Coding] Smooth fluids

Postby Rachael » Sat Feb 18, 2017 12:21 am

Thanks! :)
User avatar
Rachael
 
Joined: 13 Jan 2004

Re: [Coding] Smooth fluids

Postby GAA1992 » Sat Feb 18, 2017 1:29 pm

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
GAA1992
Demons are a disease. I am the cure.
 
Joined: 04 Jun 2015
Location: Killing spiders.

Re: [Coding] Smooth fluids

Postby leodoom85 » Sat Feb 18, 2017 1:58 pm

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
User avatar
leodoom85
Share your energy to the megasphere!!!
 
Joined: 14 Sep 2014
Location: Earth-shaking Chile
Discord: leodoom85#6202

Next

Return to Script Library

Who is online

Users browsing this forum: No registered users and 0 guests