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 Down_men
      Hi all,
      I have made a model in SketchUp ,see image, and I want make the UV map in 3ds Max. Importing the model from SketchUp to 3ds Max goes normal (saved the model as sketchup version 8 and used the import function in 3ds). When i open de uvw unwrap modifer and use the option flatten mapping it appears that the model has a lot of flat polygons, see image.
      Any idea what caused this or is this normal?
    • By Rogcat
      Hi, i have a problem, every time I built a mod building, this appears to me, what is it? How do I fix it?
      Thanks!

    • By Macwelshman
      Would anyone be able to help with a script that sets various road settings, such as segment colour or road halfwidth in the road editor. I've tried creating a script but my knowledge is poor. If the majority of the settings could be set into a script it would speed up the process loads. Even if someone gives me a way of setting one item I should be able to follow that logic to adjust the others. Thanks!
    • By Framit
      Hello. I trying to build sunken Walls. I have drawn a model in Sketchup and it looks well in the asset editor, but i can't sink it into floor. I have try many solutiions, the NO BASE script, sunken templates, I have even made a script to change mesh bounds value. Nothing at all.  I have read a lot of post in differents fórums. Nothing at all. I'm missing something and I don't know what it is. Helpplease (excuse my english).
       
       
    • By sacredcookie
      yeah so I got the CAM mod with deluxe edition, and I can get all the buildings and the dependencies, but when I start up the game, a warning just says "these plugins arent available on your machine." all camlots have brown boxes, and i dont know how to fix it. what should I do? is this a bug? i have a steam retail version so please explain in simplified format on what to do to fix these missing textures.
  • 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