Jump to content
rsc204

Potential fix for BAT4MAX w/newer 3DS Max Releases

7 posts in this topic Last Reply

Highlighted Posts

I've just come across a post by @Reddonquixote over on SC4D, it would appear our problems with using BAT4Max on newer 3DS max releases are over. In one of the scripts is a reference to a function that was removed entirely from 3DS Max, it would appear that trying to call this function was causing the scripts to fail on newer 3DS Max releases.

Now of course right now, this isn't hugely tested so I don't want to jump the gun, but it seems if 3DS 2017 works with this fix, then it should work for earlier affected versions, am I right in saying that's 2016, possibly 2015 too?

Anyhow, all credit obviously goes to RDQ for finding this problem, but rather than everyone edit their scripts. I've made a patched file you can simply use to replace the one with the faulty reference (attached).

Instructions (Readme included with fix also):

  1. Download/Install BAT4Max as usual
  2. Find the install location for the scripts included with BAT4Max
    Default = 3DS MAX INSTALL DIR\gamepacks\BAT\scripts
  3. Copy the included SF_LtbL_functions.ms file, overwriting the original
    Remember to backup the original (just in case), by copying/moving it elsewhere outside of the 3DS Max install path
  4. Lastly, if you've not already don't so, don't forget to also get the Gamma Fix for 3DS Max from here too:

Disclaimer: I personally use 3DS Max 2011, so have no way of testing this fix. But it can't cause any harm, it either works or it doesn't. Worst case scenario, restore the original file and you are back to square one (i.e. it still doesn't work).

Lastly, please can those who might make use of the patch confirm if it works and which version of 3DS Max they've applied the fix too. This will help greatly with troubleshooting the issue for other users and helping ensure 3DS Max can be used for batting models into the future.

BAT4MAX_Fix.zip

Share this post


Link to post
Share on other sites

ahhhh fantastic! *:thumb:

I also don't use one of the affected versions, so I can't test it.

I do remember hearing about that setting being removed. The setting relates to how lighting samples are interpolated. Normally a certain number of the nearest samples are interpolated in order to simplify the calculations. With this setting, we change it to being interpolated over a fixed distance, and furthermore, we have that distance be measured in pixels (rather than meters). This is better for our situation because we're basically making pixel art. 

 

This buys us a few years of time, although we still have the problem that Mental Ray has been completely discontinued. Max 2018 includes a renderer called Arnold. If it's just a matter of making a new lighting rig that matches the current one, I can do that. If the current BAT4Max depends on Mental Ray somehow, then it might get dicey. 

Share this post


Link to post
Share on other sites

Seeking for your help.

I installed 3dsmax 2017 and BAT4MAX. Rendering in 3dsmax looks neat however export in game looks blurred.

Below comparison of same scene exported in 3dsmax 2012 many years ago and 3dsmax 2017.

I tried to play with some settings in 3dsmax but nothing really working :/

1517602533-issue-3ds2017.png

 

 

Share this post


Link to post
Share on other sites

I think that's the antialiasing halo that make the later versions of max bad for BATing. It's the same antialiasing problem that always happens for trees (just because of their shape) but now it happens for everything, even if you just export a box there will be an antialiasing halo.

I've also tried and nothing I did was able to fix it. The rendering setting in max that should make it sharper/more accurate is the Contrast/Noise Threshold value for A (the alpha). I tried lowering the value significantly, and it didn't fix it. In combination I also tried increasing the maximum samples which also didn't help.

I also tried directly comparing the alpha channels in the renders from both programs in photoshop and iirc (this was a year ago) the new alpha channel wasn't actually fuzzier. The edges were sharp enough that it didn't seem like there should be any problem.

The best versions of max to BAT with are 2010-2012, 2012 being the best.

It's also possible that the updates to mental ray are not what is causing the problem. The problem might be updates to max. Maybe in BAT4Max there is some postprocessing done to the renders to fix the problem, and maybe that depended on a function that was removed in later versions of max.

Share this post


Link to post
Share on other sites

Thanks dear for your feedback. I tried as well a lot of options. It does not fix the issue. Some settings are lowering the effect but it does not remove it completely and for shapes like trees the result is way too bad.

Definitively, old version of Max are the best for exports. I was using 3dsmax 2012 without any problem. Unfortunately, I am not able to install it again properly, there are some issues which seems to be linked with newer version of Windows. On top of that, Autodesk does not support the old version of Max anymore.

I am afraid that if I am not able to install 2012 version, it will not release any new flora :(

Share this post


Link to post
Share on other sites

Try going to the environement setting and delete environement map.

I had the same problem when rendering in 3dsmax2013 and saving the rendering as a .png file, doing that fixed it for me, but I didn't try it when rendering for simcity4, but it's worth the shot

Share this post


Link to post
Share on other sites
On 15.2.2018 at 9:10 PM, Girafe said:

Thanks dear for your feedback. I tried as well a lot of options. It does not fix the issue. Some settings are lowering the effect but it does not remove it completely and for shapes like trees the result is way too bad.

Definitively, old version of Max are the best for exports. I was using 3dsmax 2012 without any problem. Unfortunately, I am not able to install it again properly, there are some issues which seems to be linked with newer version of Windows. On top of that, Autodesk does not support the old version of Max anymore.

I am afraid that if I am not able to install 2012 version, it will not release any new flora :(

I had this problem before too, it was related to Max 2015, once I had that installed I couldnt install 2011 anymore. But you can remove Max 2015 (or I assume any newer versions potentially creating the same problem), install the older version first, and then the new version/s. Worked for me with 2011 and 2015. Hope it helps.

PS: Max 2014 didnt seem to create this problem, only 2015, havent tried any newer versions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

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

Register a New Account

Sign In  

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • By chirpy22
      Hello everyone,
      Recently it seems I have a mod conflict and decreased FPS. Upon checking the log, there is a single line looping hundreds of times.
      Look rotation viewing vector is zero (Filename: Line: 92) Line 92 is the following.
      (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) Adding package 'Garden Rivers2' [C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Files\Maps\Garden Rivers2.crp] [Packer - Internal] I have disabled all vanilla maps in the game menu, including Garden Rivers. Why would this be causing a massive error in my game?
       
      Thanks for any assistance.
    • By Pegasus
      This is a small Patch File for the PEG-UT Mall Canals that fixes a incorrect property values in all of the MallCanal lots. Because the lots are RCI ploppables, the games appears to ignore the properties in question. Whether the patch is installed or not, the lots appear and perform the same. Therefore, installing this patch is purely optional... although still recommended to insure that everything "under-the-hood" is as it should be.

      ** Special thanks to ScottFTL for catching and reporting the incorrect property values. 
      All Pegasus files are now legacy content and are no longer officially supported - however support from the wider community can be requested here.
    • By Pegasus
      Patch file for PEG MTP Fire Station
      All Pegasus files are now legacy content and are no longer officially supported - however support from the wider community can be requested here.
    • By Pegasus
      Patch file for CDK3 Basics
      All Pegasus files are now legacy content and are no longer officially supported - however support from the wider community can be requested here.
    • By AlRESA
      I get this error message after installing  and run the game.
      Hope someone helps.
      Thanks in advance 

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Thank You for the Continued Support!

Simtropolis relies mainly on member donations to continue operating. Without your support, we just would not be able to be entering our 15th year online!  You've really help make this a great community.

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, so that we can help keep bringing SimCity players together to share our creations.

Make a Donation, Get a Gift!

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

stexcollection-header.png

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