The iray cometh


#21

Thank you Lazzhar, I’ve already done this but I want to see how others guys can control light, IBL… with iray, because when you enable it inside Maya there is no way to control anything, just hit render and wait! I don’t want that !
someone had made a shader called mrHiddenOptions, for Softimage: Progressive and iray, you can grab it here http://www.germanmentalray.de/viewtopic.php?f=16&t=2311261
I’ve edited the mi file based on ctrl_ghost_setting shader ( ctrl.studio), added the AETemplate.mel for Maya, so that you can use iray with some options

Yes I have the latest standalone
/Rachid


#22

You can use IPR as suggested by Dagon if you need some interaction during rendering process.

I am using mrHiddenOptions and it works great for progressive rendering and IBL.


#23

what kind of option? the point of iray is that there is any option, just hit render
even if you have the ibl options you can’t change anything else than the light scale

btw, if you use mia_materials you probably need to multiply all the direct light by 3.14 (sun included)


#24

You are right, just the ibl option!
Can I ask you where the PI value come from? and why we should multiply all the direct light by PI?
Thanks
/rachid


#25

this is a long story, iray is using the internal builtin shaders (builtin_architectural is the mia_material simplification), those shaders assume the light is irradiance, but most traditional light shaders don’t return irradiance, but rather irradiance divided by pi (the average radiance for diffuse surfaces)
mia_material and the daylight system are built to work in the old way, so there is a discrepancy between the two systems
obviously in an integrated version of iray all of this should be under the hood, but…

this is also why i’m using this with IBL when using mia_materials:
setAttr -type “string” miDefaultOptions.stringOptions[31].name “environment lighting scale”;
setAttr -type “string” miDefaultOptions.stringOptions[31].type “float”;
setAttr -type “string” miDefaultOptions.stringOptions[31].value “0.318”;

if you use iray you need to change the value to 1.0


#26

Thank you dagon, I really appreciate your explanation :cool:
/Rachid


#27

So do you add that in the maya.rayrc file ?


#28

uuu, shot in the dark here
I didnt test this… : )

select miDefaultOptions;
addAttr -ln “iray” -at bool miDefaultOptions;
setAttr miDefaultOptions.iray on;


#29

What Ash-Man said.

This thing makes maya disapaear after few seconds of using it. meh…


#30

===================================
i have mentaleay standalone 3.8
i follow your setting in maya and
i tried iray in maya 2011 but still render black!!
it’s my maya output window message.

mental ray for Maya 2011
mental ray: version 3.8.1.26, Feb 9 2010, revision 110437
initMPS with licenseOption 0
mental ray: got 8 satellite CPUs.
MEM 0.0 info : heap size limit set to 6121 MB
SCEN 0.10 progr: begin scene preprocessing for frame 1
SCEN 0.10 info : 33 geometry leaf instances (33 scheduled, 0 cached, 0 shared)
SCEN 0.10 info : 1 light leaf instance
SCEN 0.10 info : wallclock 0:00:00.00 for scene preprocessing
SCEN 0.10 info : allocated 16 MB, max resident 16 MB
RC 0.10 info : scene extent: (-23.09,-0.18,-15.97) : (21.76,3.46,28.41)
RC 0.10 info : option: scanline off
RC 0.10 info : option: trace on
RC 0.10 info : option: trace depth reflection 1, refraction 1, sum 2
RC 0.10 info : option: acceleration bsp2
RC 0.10 info : option: shadow on
RC 0.10 info : option: shadow maps (use) (recompute)
RC 0.10 info : option: lightmap on
RC 0.10 info : option: motion off
RC 0.10 info : option: luminance weights 0.212671 0.71516 0.072169
RC 0.10 info : option: caustic off
RC 0.10 info : option: globillum off
RC 0.10 info : option: finalgather off
RC 0.10 info : option: samples min 0, max 2
RC 0.10 info : option: contrast 0.1 0.1 0.1 0.1, all buffers
RC 0.10 info : option: jitter 1
RC 0.10 info : option: filter triangle 2 2
RC 0.10 info : option: render space object
RC 0.10 info : option: face both
RC 0.10 info : option: field off
RC 0.10 info : option: hair on
RC 0.10 info : option: task size 32
RC 0.10 info : option: pixel preview off
RC 0.10 info : option: lens on
RC 0.10 info : option: volume on
RC 0.10 info : option: geometry on
RC 0.10 info : option: displace on
RC 0.10 info : option: premultiply on
RC 0.10 info : option: colorclip raw
RC 0.10 info : option: output on
RC 0.10 info : option: merge on
RC 0.10 info : option: fb mem management mapped
RC 0.10 info : option: type filter name
RC 0.10 info : rgba yes color
RC 0.10 info : camera: focal length 1.37795
RC 0.10 info : camera: aperture 1.41732
RC 0.10 info : camera: aspect 1.33333
RC 0.10 info : camera: resolution 640 480
RC 0.10 info : camera: clip 0.1 10000
RC 0.10 info : camera: frame 1 1 0
RC 0.10 progr: rendering
RC 0.10 info : progressive rendering enabled
RC 0.10 info : progressive: min samples set to 40
RC 0.10 info : progressive: max samples set to 100
RC 0.10 info : progressive: setting maximum rendering time to 6000000 seconds
RC 0.10 info : progressive: setting relative error threshold to 0.050000
RC 0.10 info : progressive: using iray renderer
IRAY 0.10 info : loading iray rendering plugin from C:\Program Files\Autodesk\Maya2011\bin\libiray.dll
IRAY 0.10 info : loading iray integration plugin from C:\Program Files\Autodesk\Maya2011\bin\libiraymr.dll
IRAY 0.10 info : found 1 CUDA devices
IRAY 0.10 info : defaulting to use all CUDA devices
RC 0.10 info : progressive: deactivating subsampling for iray renderer
RC 0.10 progr: progressive: finished (sub)frame 1 in 0.00664 seconds
RC 0.10 progr: progressive: finished (sub)frame 2 in 0.00362 seconds
RC 0.10 progr: progressive: finished (sub)frame 3 in 0.00457 seconds
RC 0.10 progr: progressive: finished (sub)frame 4 in 0.00380 seconds
RC 0.10 progr: progressive: finished (sub)frame 5 in 0.00673 seconds
RC 0.10 progr: progressive: finished (sub)frame 6 in 0.00357 seconds
RC 0.10 progr: progressive: finished (sub)frame 7 in 0.00577 seconds
RC 0.10 progr: progressive: finished (sub)frame 8 in 0.00749 seconds
RC 0.10 progr: progressive: finished (sub)frame 9 in 0.00333 seconds
RC 0.10 progr: progressive: finished (sub)frame 10 in 0.00380 seconds
RC 0.10 progr: progressive: finished (sub)frame 11 in 0.00414 seconds
RC 0.10 progr: progressive: finished (sub)frame 12 in 0.00480 seconds
RC 0.10 progr: progressive: finished (sub)frame 13 in 0.00408 seconds
RC 0.10 progr: progressive: finished (sub)frame 14 in 0.00583 seconds
RC 0.10 progr: progressive: finished (sub)frame 15 in 0.00708 seconds
RC 0.10 progr: progressive: finished (sub)frame 16 in 0.00473 seconds
RC 0.10 progr: progressive: finished (sub)frame 17 in 0.00483 seconds
RC 0.10 progr: progressive: finished (sub)frame 18 in 0.00631 seconds
RC 0.10 progr: progressive: finished (sub)frame 19 in 0.00427 seconds
RC 0.10 progr: progressive: finished (sub)frame 20 in 0.00370 seconds
RC 0.10 progr: progressive: finished (sub)frame 21 in 0.00418 seconds
RC 0.10 progr: progressive: finished (sub)frame 22 in 0.00711 seconds
RC 0.10 progr: progressive: finished (sub)frame 23 in 0.00491 seconds
RC 0.10 progr: progressive: finished (sub)frame 24 in 0.00506 seconds
RC 0.10 progr: progressive: finished (sub)frame 25 in 0.00646 seconds
RC 0.10 progr: progressive: finished (sub)frame 26 in 0.00498 seconds
RC 0.10 progr: progressive: finished (sub)frame 27 in 0.00483 seconds
RC 0.10 progr: progressive: finished (sub)frame 28 in 0.00383 seconds
RC 0.10 progr: progressive: finished (sub)frame 29 in 0.00401 seconds
RC 0.10 progr: progressive: finished (sub)frame 30 in 0.00491 seconds
RC 0.10 progr: progressive: finished (sub)frame 31 in 0.00775 seconds
RC 0.10 progr: progressive: finished (sub)frame 32 in 0.00617 seconds
RC 0.10 progr: progressive: finished (sub)frame 33 in 0.00420 seconds
RC 0.10 progr: progressive: finished (sub)frame 34 in 0.00704 seconds
RC 0.10 progr: progressive: finished (sub)frame 35 in 0.01108 seconds
RC 0.10 progr: progressive: finished (sub)frame 36 in 0.00497 seconds
RC 0.10 progr: progressive: finished (sub)frame 37 in 0.00454 seconds
RC 0.10 progr: progressive: finished (sub)frame 38 in 0.00461 seconds
RC 0.10 progr: progressive: finished (sub)frame 39 in 0.00392 seconds
RC 0.10 progr: progressive: finished (sub)frame 40 in 0.00437 seconds
RC 0.10 progr: progressive: finished (sub)frame 41 in 0.00493 seconds
RC 0.10 info : iray: desired quality reached - stopping
RC 0.10 info : progressive: total rendering time was 0.21 seconds
RC 0.10 info : progressive: average frame time was 0.01 seconds
RC 0.10 info : progressive: sending finished rectangles to disp.
PHEN 0.10 progr: calling output shaders
PHEN 0.10 progr: writing image file D:/[Projects]/WOrk/tmp/scene_iray_Mr_Shader.tga (frame 1)
RC 0.10 progr: rendering finished
RC 0.10 info : wallclock 0:00:03.93 for rendering
RC 0.10 info : allocated 19 MB, max resident 84 MB
GAPM 0.10 info : triangle count (including retessellation) : 24322

can iray only render in mentalray stnadalone 3.8?

or can i iray-render in maya 2011?

help me! i want to render in maya iray! :wink:


#31

Is MR Stand Alone available to Sub Customers per chance or is it purchase only, and if it is were do they hide it in the Sub Center?


#32

mr is on sub-center> I had to call support to get it :slight_smile:

I did all the above steps and now Maya just hang on the render
here is the test file

http://rapidshare.com/files/384208573/iRaytest.mb.tar.gz.html


#33

Your render log looks good. You have tessellation so your scene is translating. I am going to guess that its a material problem or a lighting problem.

Try throwing in a distant light. Don’t worry about settings, things like shadows just happen. Spots work too. Area lights work when you convert a spot to a mental ray area light. Everything but distant lights have a realistic falloff. So your going to need huge values or you wont see anything.

Make sure you are only using mia materials, Not miax or miax_passes or anything like that.


#34

use 1) or 2)

    • just type below script in script editor -
      miOptionsAddNewStringOpt miDefaultOptions.stringOptions;
      setAttr -type “string” miDefaultOptions.stringOptions[28].name “iray”;
      setAttr -type “string” miDefaultOptions.stringOptions[28].value “on”;
      setAttr -type “string” miDefaultOptions.stringOptions[28].type “boolean”;
  1. -add manually in miDefaultOptions AttributeEditor-
    1.type script :
    select miDefaultOptions;
    ShowAttributeEditorOrChannelBox;
    2.just click Add NewItem in AttributeEditor(:arrow_forward:string Options) - it’s create string options(28)
    and type in Name-iray , Value-On,Type-boolean


#35

thank you

can you see my very simple iray-scene?

i can’t iray-render in maya 2011 with this scene.

Let me know - what’s the problem please!


#36

Thank you
When I asked for string to enable iray is just to see if there are any others option, just for comparison nothings else! you may read what I post in page 2, especially the mrHiddenOptions.rar.zip anyway thank you for your input
/Rachid


#37

you can use some of the progressive rendering options (the termination criteria such max samples or max times should work) but i don’t find it very useful for iray


#38

thanks for looking into my file
now i get black render and error message saying

RC 0.2 info : progressive rendering enabled
RC 0.2 info : progressive: min samples is defaulting to 4
RC 0.2 info : progressive: max samples is defaulting to 100
RC 0.2 info : progressive: defaulting to relative error threshold 0.150000
RC 0.2 info : progressive: using iray renderer
IRAY 0.2 error: cannot find iray rendering plugin
DISP 0.2 error 211010: failed to create 128-byte stub image /home/assist/maya/projects/default/images/untitled.iff: Permission denied

I think this is the same as malloriwooseung is facing


#39

i think this is not same,i have no warn message but i get black render.


#40

Eshta
you are missing the iray dll
did you copy them from here
C:\Program Files\Autodesk\mrstand3.8.1-adsk2011\bin
get these 3 dlls
cudart.dll (dont think tis important)
libiraymr.dll
libiray.dll