question

Alfonso Casado Diez avatar image
Alfonso Casado Diez asked ·

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 :)

render farmcommand line
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

You can use a pre-render script

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Alfonso Casado Diez avatar image
Alfonso Casado Diez answered ·

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

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.