PDA

View Full Version : optimize 3dsmax for mental ray !!!


hot chip
06-08-2009, 01:55 AM
Hi Guys,

at 3dsmax2010 have autodesk disable the Bitmap Pager and the autolimitmode is on. That is good for 32Bit OS and Large Scene, but for 64Bit OS can you optimize 3dsmax. Becareful, this script is for 64Bit OS and a lot of RAM. When you render, can you work at the same time in Photoshop, or write here in the Forum this tread.

Install....

Create a Name.ms File (for example ram_optimizer.ms) and copy it to your 3dsmax installation folder subfolder Scripts\Startup. Everytime you load up 3ds now it will

- disable the BitmapPager
- set the memory limit 90% of RAM
- no Padding RAM
- memory Limit Auto Mode = off


IBitmapPager.enabled=false
IBitmapPager.memoryLimit_percent = 0.9
IBitmapPager.memoryLimitAutoMode = false
IBitmapPager.memoryPadding_percent = 0
print "************************************************** ****************** "
print "RAM Optimizer V1.0 by thorsten Hartmann 06.07.2009"
print "************************************************** ****************** "
if IBitmapPager.enabled == true then test = "Bitmap Pager on" else test="Bitmap Pager off"
print test
if IBitmapPager.memoryLimitAutoMode == true then test = "Memory Limit AutoMode on" else test="Memory Limit AutoMode off"
print test
test = "Memory Limit: " + (IBitmapPager.memoryLimit_percent*100) as string + "% from RAM"
print test
test = "Memory Limit: " + (IBitmapPager.memoryLimit_megabytes) as string + " max. RAM"
print test
test = "Memory used for Pager: " + IBitmapPager.memoryUsedForPager_megabytes as string + " MB"
print test
test = "Memory Total for Pager: " + IBitmapPager.memoryTotalForPager_megabytes as string + " MB"
print test
test = "Pfad: " + IBitmapPager.pageFilePath
print test
test = "Memory Padding: " + (IBitmapPager.memoryPadding_percent*100) as string + "% from RAM"
print test
test = "Memory Padding: " + (IBitmapPager.memoryPadding_megabytes) as string + " RAM"
print test
test = "available Memory Padding: " + (IBitmapPager.memoryAvailablePadded_megabytes) as string + " RAM"
print test
print "************************************************** ****************** "
print "is optimize for 64Bit OS System and a lot of RAM."
print "************************************************** ****************** "



have fun

mfg
hot chip

hot chip
06-08-2009, 05:33 AM
Hi Guys,

here is a script for the Toolbar. I think for network Rendering it is good enable Bitmap Pager and Auto limit mode. So i have wrote a little for Script for the Toolbar.

have fun!

mfg
hot chip

starer2006
06-10-2009, 03:03 AM
Hi hot clip. =) few quick questions for you.
1) Is this workable in 3D Max 2009?
2) which file do i use? the .ms file or .mcr file?

hot chip
06-10-2009, 03:12 AM
Hi

- only for 3dsmax2010
- for my single Workstation ms + mcr
- for the slaves in a Network no script, because 3dsmax is default optimize for Networkrendering.

starer2006
06-10-2009, 03:20 AM
owh okay.. thanks anyway =)
I'm rushing my assignment work which is due in 2 days time =(

hot chip
06-30-2009, 02:55 AM
Hi Guys,


here the update of the Script. It is include: placeholder Object, conserve memory, mr memory limit in MB, mental ray manages Maps


download here: http://www.infinity-vision.de/service/Ram_Optimizer.zip

have fun!

mfg
hot chip

ngluvakov
09-22-2009, 12:11 AM
I don't know how to run this program. I put it in startup, even after loading 3ds max 64, I tried to run it from MAXscript. I have 64bit Vista, 64bit 2010 3ds max running. I have animation to render, and I can't make 3ds use more than 1GB of physical memory. That slows me awfuly lot. I don't know why is that. HELP HOT CHIP!!!

hot chip
09-22-2009, 12:28 AM
Install Ram Optimizer

1) copy Ram_Optimizer.mcr to x:\3dsmax2010\ui\macroscripts\

4) start 3dsmax

5) goto the customize user interface -> Toolbar -> Category mental ray

6) move per drag and drop the Ram_Optimizer Icon to the toolbar and start the new Button.

7) have fun!

hot chip
09-22-2009, 12:34 AM
Hey

i have Update the ZIP-File, same Download Link. Now is include a install text *smile* and two pre-renderscript to network rendering.

mfg
hot chip

ngluvakov
09-23-2009, 03:30 AM
Thanks hot chip. You have been very kind.

Nicolce
01-18-2011, 06:23 AM
...

Thank you, works great.

This saved my ass.