Find answers, ask questions, and connect with our
community around the world.

Home Forums Modders Corner Mafia Editing Mafia mods Re: Water shader mod

  • Re: Water shader mod

     lorenzitto updated 5 months, 3 weeks ago 11 Members · 18 Posts
  • mr-f

    Member
    March 19, 2012 at 9:42 pm

    Hi.

    As you may know, Mafia uses DirectX8, but doesn’t use all its available potential. So I attempted to fix it and replace terrible original water with shaded one. To achieve it I hooked game’s calls to directx and changed its rendering process a bit, also I wrote the shaders, but there are not too fancy, because dx8 maximum supported shader model is 1.4 which is pretty old.

    Water now reflects and refracts the city, also there is simplified Fresnel effect.

    It tuned differently for each mission for a better look. Only missions without new water are countryside and port missions.

     

    Screenshots:

    http://postimage.org/image/jz11hopq3/

    http://postimage.org/image/x4gjnsjln/

    http://postimage.org/image/5v569aiij/

    http://postimage.org/image/ooqz6agqj/

    http://postimage.org/image/7cqmkun97/

    http://postimage.org/image/o1s2grjuj/

    http://postimage.org/image/llq92x1rv/

    http://postimage.org/image/yeiygl2rf/

    http://postimage.org/image/cgmhmsnqz/

    http://postimage.org/image/vmzopz48r/

    http://postimage.org/image/m3pzwigqj/

    http://postimage.org/image/6wa0c5ovv/

    http://postimage.org/image/rhos426gr/

    http://postimage.org/image/mll5cd6bf/

    http://postimage.org/image/glxe8pliz/

    http://postimage.org/image/trcwetfej/

     

    You can download it here: http://www.2shared.com/file/Kg2O4KWn/shaderMod.html?

     

    How to install:

    – backup all files, which you will replace with modified ones.

    – copy archive contents into game’s folder, except for “game versions” folder.

    – get DLL from “game versions” folder which corresponds to your version of the game (1.0/1.1/1.2) and replace original LS3DF.dll by it (do not forget to backup original file).

    – play.

     

    Also, there is more shading effects possible, so stay tuned, lol.

     

    FPS will not change too much comparing to the original game (actually doesn’t change at all on all tested PCs).

     

    Known issues:

    – mod is not very friendly with sky-retexturing mods, but it will be fixed.

    – sometimes water shows inside the prison in the prison mission (will be fixed too).

    – in some missions you can see some black horizontal hole in the sky. then you’d better remove O_*.4ds and denjasno2.4ds from models.

  • crazypreacher

    Member
    March 19, 2012 at 9:53 pm

    It look awsome, why don’t you upload it in our download section, that would be nice,

    By the way welcome amoung us

  • mr-f

    Member
    March 19, 2012 at 10:06 pm

    Uploaded now, didn’t notice this section at first time.

    http://mafiascene.net/downloads/viewdow … shader-mod

  • crazypreacher

    Member
    March 19, 2012 at 10:45 pm

    Thank you Sir

  • Cole Phelps

    Member
    March 20, 2012 at 6:40 am

    Good job, Mr F. Water looks as realistic as in Mafia 2 😆

  • lpg_unit

    Member
    March 20, 2012 at 12:40 pm

    Wow, that’s a relief. One of my biggest gripes about the game is the water looking flat and bland, and you, good sir, did epic justice to it. <img src=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>

     

    EDIT: I wonder if you can do the same with the GTA games. The water shader in ENBSeries is fine to some, but after looking at yours I think you can do a better job at that.

     

    EDIT 2: Tried it, but the water stays the same even after copying all the required files.

  • samo

    Member
    March 20, 2012 at 3:44 pm

    Wow thanks to you mafia 1 will live longer <img src=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″> .

    Karma for this guy please!

  • johncena1

    Member
    March 20, 2012 at 4:34 pm

    Wow! awesome mod well done!

  • scrdest

    Member
    March 20, 2012 at 4:45 pm

    Just… respect. All of it.

  • linukkis

    Member
    March 20, 2012 at 5:45 pm

    Mr F, this is incredible! :woohoo: Very well done! :cheer:

  • jojoxx

    Member
    March 20, 2012 at 5:45 pm

    Welcome in the family Mr F.Good to see so there are more people who like Mafia 1.Very nice the new water in the Mafia 1.I wish you the best! <img src=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″>

  • mr-f

    Member
    March 20, 2012 at 5:51 pm

    >EDIT 2: Tried it, but the water stays the same even after copying all the required files.

     

    You did something wrong, because I nulled original water object, so at least you should see no water at all but not original one. Are you sure, you put mod files in the same folder where game.exe is? Do any other mods work with your game? Do you have some modded textures/models/missions?

    Anyone else tried it? Because I was posting it on mafiapub.com, and the last version of the water works fine on all these guys (except one with gf5600 videocard for unknown reason).

  • lpg_unit

    Member
    March 21, 2012 at 12:44 am

    Yep, did exactly what you said in the instructions. And no, my game’s vanilla.

  • mike-bruski

    Member
    March 21, 2012 at 6:21 am

    Well done mate, well done, i’ve always hated the water in Mafia I, but not anymore! <img src=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

     

    And also, welcome to MafiaScene, if you need any help please do ask, everyone here is incredibly helpful.

  • mr-f

    Member
    March 21, 2012 at 9:50 am

    >Yep, did exactly what you said in the instructions. And no, my game’s vanilla.

    it’s impossible, submit a screenshot of your game’s folder.

    and you didn’t forget to replace original ls3df.dll with a new one from “game versions” folder, corresponding to your version?

    what version do you have?

    and you didn’t answer other questions:

    > Do any other mods work with your game? Do you have some modded textures/models/missions?

  • lpg_unit

    Member
    March 22, 2012 at 1:32 am

    Never mind, I got to make the mod work after reinstalling the game.

  • Cole Phelps

    Member
    March 22, 2012 at 2:27 pm

    Brilliant work, Mr F 😎 +1 for you <img src=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/tongue@2x.png 2x” width=”20″ height=”20″>

  • lorenzitto

    Member
    June 9, 2020 at 9:30 pm

    Hi, i know this thread is old but…. there’s any update to the mod?

    I will like to see this water available in all missions and even in racing mode of mafia remastered mod.

    Hope to see an update soon! Thanks!

Log in to reply.

Original Post
0 of 0 posts June 2018
Now