Home Technical Talk

Max2010:MentalRay 'Out of memory Error' potential fix

polycounter lvl 9
Offline / Send Message
r_fletch_r polycounter lvl 9
I know this is more of a rendering topic rather than game art but i had this problem today in max 2010 and thought maybe others could use the same fix.

basically MentalRay can sometimes give a 'out of memory' error when you are trying to render a heavy model or scene. Versions of max prior to 2010 had a UI option in the render dialog which allowed you to set MRs memory limit. this has been removed in max 2010 in favour of an automatic system.. which for me isnt working.

I wrote a script to disable the automatic memory allocation system and explicitly set the memory limit. I cant guarantee this will work in all cases but its worked for the model in working on at the moment.
Id be sure to save first. manually changing this sort of setting can cause problems if you do it wrong

Stick the script in your max scripts Directory
Run it
Customize UI
Toolbars
Category: 'rt render tools'
drag it onto your UI

www.robertfletcher.org/public_files/Scripts/set_memory_limit.ms
Sign In or Register to comment.