Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable Half Precision in command line render

2 REPLIES 2
Reply
Message 1 of 3
alfonsocasado
448 Views, 2 Replies

Enable Half Precision in command line render

Hi,

I'm running a pseudo render farm in our university and we are looking at launching renders through cmd as Backburner is everything but useful to render with.

I cannot seem to find any documentation on how to enable half precision when rendering through command line. Help doesn't show any flags or anything. I don't know if I could set the defaultArnoldDriver.halfPrecision=1 as a system variable or something to make it work.

Thanks 🙂

Labels (2)
2 REPLIES 2
Message 2 of 3

You can use a pre-render script



// Stephen Blair
// Arnold Renderer Support
Message 3 of 3

Hey @Stephen Blair

Thanks for the quick reply, I've created a .mel file with several more arguments to keep the render homogeneity but I don't know how to run them, as the flag I've seen only accepts an argument right on the code instead of a path to a .mel file. I have all this arguments at the moment:

setAttr "defaultArnoldDriver.halfPrecision" 1;
setAttr "defaultArnoldRenderOptions.motion_blur_enable" 1;
setAttr "defaultArnoldRenderOptions.mb_object_deform_enable" 1;
setAttr "defaultArnoldRenderOptions.mb_camera_enable" 1;
setAttr "defaultArnoldRenderOptions.motion_steps" 6;
setAttr "defaultArnoldRenderOptions.ignoreMotionBlur" 1;
setAttr "defaultArnoldDriver.exrTiled" 1;
setAttr "defaultArnoldDriver.autocrop" 1;
setAttr "defaultArnoldDriver.mergeAOVs" 1;
setAttr "defaultArnoldDriver.exrCompression" 2;
setAttr "defaultRenderGlobals.extensionPadding" 4;

I've ran across this plugin but I wonder if there was a way to pass them all without using external plugins as this project will have to render on a legit Qube managed render farm in the future and we don't want to bother them with random plugins.

https://github.com/fredrikaverpil/maya-scripts/blob/master/scripts/RenderScriptConsolidator.mel

Also here is our batch file just in case there's something wrong about it:

SET MAYA_RENDER_SETUP_INCLUDE_ALL_LIGHTS = 0
set FILEPATH=X:\rdr\lgh\render_lgh0010\scenes\render_lgh0010_v1.ma
set PROJPATH=X:\rdr\lgh\render_lgh0010\
set RDPATH=X:\rdr\lgh\render_lgh0010\images
set FRSTART=96
set FREND=270
set CAMNM=lgh_0010
set RESOL=-x 2048 -y 858
set PRSCRIPT=X:\mtoasettings.mel
"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r arnold -proj %PROJPATH% -rd %RDPATH% -s %FRSTART% -e %FREND% -cam %CAMNM% %RESOL% -rl 1 -ai:lve 2 -ai:alf 1 -preRender %PRSCRIPT% %FILEPATH%

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report