Jump to content
Barroco Hispano

SOLVED: Alpha Bleeding (White Edges) BAT4MAX 3DS MAX

33 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

The images describing the apparent solution for this problem seem to have disappeared, if anyone still has their explanation from 5 years ago. @Barroco Hispano @Jasoncw @ anyone else who's still active. Neither black nor white edges really works here.

67207a46a30e2_ScreenShot2024-10-29at1_49_19AM.png.f059d5035a4cec6ff25d08bd9641f122.png

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
    Currently: Viewing File: Battle Monument, West Point
     

    @kaimai I'm almost sure you're using 3dsmax 2014 or 2017. The gamma fix has a problem because the author applied gamma correction to the alpha channel and that makes the halo worse (It's important to note that even with "my" modified version of the script, if you use version 2014 or later it produces a bigger halo effect than version 2012 because for some reason after exporting, the grey pixels become whiter).

    You can find the modified script here:

    (Be careful, if you are using the 2012 version, don't replace anything)

    Add the lights (Day or night) to the scene, then press 8, move mr_physical_sky to the material editor

    image.png.75ca3f88cb87a52b07053ca7cb354a6f.png

    image.png.9b2dfb65f08802c21d0ff1ea7d6d0372.png

    Then use this image as background since the default BAT4MAX background color ends up exacerbating the problem:

    AntiBleeding2.png.379cb4df15b4602cbfe7bb271f976d10.png

    For the day version make sure it looks like this:

    image.png.f98476180fcd30f1db32f28a316fc997.png

    For the darknite/maxinite version make sure it looks like this:

    image.png.42cfa13b963d5bd141634030be7c353c.png

    In case the halo is too unbearable for your eyesight and you want to improve it a little more, do the following:

    Install SC4 Model Tweaker, open the .sc4model file, then enable transparency (I usually enable it only at zoom 5 for trees, cars, sims, etc. I use max 2012 to export most of my buildings so I don't need to enable transparency, just changing the background color is enough. I export my ships with Max 2017 and then I do enable transparency at zoom 5 and 4).

    image.png.bdb8a6de8d47191f63ae75e44a7553f7.png

    Then you need to open the .sc4model file with the reader and manually change one by one the "Alpha Func: Always" to "Alpha Func: Greater". If your model is big, then you will see a lot of "Material id's", make sure to select one by one and change that parameter manually and finally click on "Apply". Don't think that with "shift + click" you will change the parameters of all the Materiald ID's automatically.

    image.png.7f816f6b34ab2926deab9a9f088f5768.png

    If your model is to be used underwater, do not activate transparency as the part that is underwater will become invisible. The "Always" parameter makes SimCity 4 use 100% transparency (alpha channel) but at the same time it generates a problem that is impossible to fix and that is why it is mandatory to change that parameter to "Greater".

    • Like 3

    Discord: JLeCoultre#9124

    My Simtropolis BAT Thread

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    @Barroco Hispano Thank you! Yes, I use 2014 (I have a pretty old computer), and the gamma fix is already installed but I hadn't been able to export anything using 2014's "Use automatic gamma settings"; will try with the override and tweak the models if necessary.

    • Like 1

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections