Announcement

Collapse
No announcement yet.

Project: FluidSurface Plugin

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Project: FluidSurface Plugin

    In UE2 we had a simple but fun feature called a FluidSurfaceInfo. This was a small, simulated fluid surface that you could place in your level, and would respond to the player running through it and shooting it. It was requested that we bring back this feature in UE4. So I am posting the original source from UE2, if anyone is interested in porting it to UE4 as a plugin! I made a page on the wiki with the source code here:

    https://wiki.unrealengine.com/FluidSurface_Plugin

    This is a CPU implementation. In UE3 we had a more sophisticated GPU-based fluid surface implementation, but I don't really know that code, and I thought this would be a simpler place to start. I would look at the CableComponent plugin to give an example of how to set up a plugin and render custom geometry each frame. This is _not_ intended to be an 'ocean surface' feature, but something useful for small pools of water (or, you know, toxic acid, lava, the usual...). This is UE2 source, back when we had .uc files, so the first job will be turning those into UE4 decorated C++ headers.

    I'm happy to try and answer any questions about here it here on the forums (if I can remember!) and I'm sorry for the lack of comments . If anyone makes some progress, please post your github branch here so others can check it out and contribute
    Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
    Twitter: @EpicJamesG

  • #2
    Just downloaded the code. Figured I would give it a shot as this would actually come in handy for my project. Will post if I have any breakthroughs.
    FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
    TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

    Comment


    • #3
      I hope someone figures this out!

      I do miss those fluid surfaces!

      Thanks for bringing this up JamesG!



      Rama
      100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

      UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

      Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

      Comment


      • #4
        That was amazing time, I remember my first 'OMG! AWESOME!' reaction to UT2003 water. And then water splashes were attached in UT2004... Still one of my fav VFX out there. Thanks, JamesG!

        Comment


        • #5
          I'll also take a look at it, see what I can do. Thanks for posting it James.

          Comment


          • #6
            Need it badly

            As I'm the greatest Noob at the history of c++ xD

            I need this integration badly .....but how could I ? !!!!!

            Comment


            • #7
              Originally posted by Omar Victoria View Post
              As I'm the greatest Noob at the history of c++ xD

              I need this integration badly .....but how could I ? !!!!!
              I've started writing the plugin based on the code from above. The first iteration will be a complete CPU based solution based on the above. Then I will improve it from there.

              EDIT: So far basic rendering of hex grid done.

              Click image for larger version

Name:	FluidSurfaceActor.JPG
Views:	1
Size:	259.7 KB
ID:	1050249
              Last edited by Ehamloptiran; 04-26-2014, 02:06 PM. Reason: Adding info
              FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
              TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

              Comment


              • #8
                Originally posted by Ehamloptiran View Post
                I've started writing the plugin based on the code from above. The first iteration will be a complete CPU based solution based on the above. Then I will improve it from there.

                EDIT: So far basic rendering of hex grid done.

                [ATTACH=CONFIG]1298[/ATTACH]
                Wow that was fast, nice work buddy.

                Comment


                • #9
                  Another update. Testing ripples.

                  https://drive.google.com/file/d/0Bzq...it?usp=sharing
                  FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
                  TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

                  Comment


                  • #10
                    More water rippling. Actor interaction.

                    https://drive.google.com/file/d/0Bzq...it?usp=sharing
                    FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
                    TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

                    Comment


                    • #11
                      Originally posted by Ehamloptiran View Post
                      More water rippling. Actor interaction.

                      https://drive.google.com/file/d/0Bzq...it?usp=sharing
                      Nice one! Looks good so far.
                      --------------------------------------------------------
                      [New On Marketplace] Custom Character Creator
                      --------------------------------------------------------
                      [Marketplace] RPG Starter Kit - Multiplayer Melee Combat System - Animated Crossbow
                      --------------------------------------------------------

                      Comment


                      • #12
                        Wow that's looking awesome. Can't wait to see the whole thing.

                        Comment


                        • #13
                          You guyz need to hook up with these guyz: https://forums.unrealengine.com/show...Preview-Thread

                          Comment


                          • #14
                            Originally posted by Ehamloptiran View Post
                            More water rippling. Actor interaction.
                            Wow, nice! Is your work on GitHub? Let me know if you'd like a review or anything.
                            Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
                            Twitter: @EpicJamesG

                            Comment


                            • #15
                              Originally posted by JamesG View Post
                              Wow, nice! Is your work on GitHub? Let me know if you'd like a review or anything.
                              Thanks James, not yet, just added oscillators and Hit/Touch effects. Just need to clean up the rendering code a bit then will upload to github
                              FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
                              TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

                              Comment

                              Working...
                              X