Outlined here is a (simplified) approach to using iray with Maya - if you have mental ray standalone 2011
licenses:
- In Maya use 'export all' to create a .mi file,
- Render the file from the command line: ray -iray on
[further options] <filename>
For more details, including setting string options to turn
on iray, see this post on the mental images forum: http://forum.mentalimages.com/showthread.php?t=6584
A couple of things to look out for:
- if your images turn out black: "Maya light sources
with high intensity values", depending on the scene size that may mean
very high intensity values (like 1000000 or more),
- if the quality is too low you may need to increase
'progressive max time' either in the scene/.mi file or by using the -progressive_max_time xxx option on the command line,
- if you need more samples increase 'progressive max
samples' or use the -progressive_max_samples xxx option to override
the value set in the file.
To compare the speed on the graphics card vs the speed on
the cpu you can use the -iray option: -iray on uses the graphics
card, -iray cpu uses the cpu.
If you set verbosity to 4 (add -v 4 on the
command line) you can check which CUDA devices are being used:
- With -iray on you'll see something like:
IRAY 0.2 info : found 1 CUDA devices
IRAY 0.2 info : defaulting to use all CUDA devices
- With -iray cpu you'll see something like:
IRAY 0.2 info : found 1 CUDA devices
IRAY 0.2 info : empty device string, using CPU backend
exclusively
In case you don't have any CUDA capable devices in the
system you'll see:
IRAY 0.2 warn : no CUDA capable devices found
IRAY 0.2 info : using CPU backend with 2 threads
Thanks to Nicolas Holst for this post.
Recent Comments