IRAY Rendering Advice
dmgalan
Posts: 5
I've just started playing around with IRAY and really love the quality and the features, but render times are so bad that it's impartical for me to use it. Even with a single base figure, render times have exceeded 8 hours. I'm curious if my render settings are causing the issue, or is my PC not strong enough to handle it. Do I need to change my NVIDIA settings? Any suggestions would be greatly appreciated.
My config is:
Processor: Intel Xeon E5-2687W v3 3.1GHz (9.60 QPI) (25MB Cache) (10-Core)
System Memory: 32GB DDR4 2133MHz Crucial (ECC Registered) (16GB x 2)
Graphics Card: 1x NVIDIA Quadro K5200 8GB
Operating System: Windows 10
Daz3D Version: 4.8 Pro Edition (64 bit)
Comments
IMO, it's likely your settings. The original render for the attachment is 1500x1909 and completed in about 25 minutes on an I7 w/ a 3GB GTX 780.
I generally use the default Ira settings (7200 sec / 95% convergence / 5000 samples. Even complex scenes complete in the two hour limit at resolutions of 4000x3000
The second file is a 3Delight render converted to Iray.Originally at 4000x3000. 104 minutes. (Edit 9/27/2015: I've learned alot more about Iray in the last few weeks. This render takes about half the time now).
A K5200 has over 2300 CUDA cores. Your Xeon is no slouch, either. So your machine is certainly capable of some very fast renders, assuming it's set up properly.
The first thing to do is perform a small test render, then immediately look at Help->Troubleshooting-View Log File. Look especially for errors that prevented the Quadro from participating in the render.
(If it doesn't show up at all, you might not have included it in the rendering devices. Click the Advanced sub-tab in the Render panel, then on Hardware. Make sure both your card and CPU are checked. For now, turn off OptiX acceleration for both, until you've figured out the reason for your rendering issues.)
Do you have any other nVidia cards installed in your system?
Addendum to above: be sure your drivers are all up to date, and I mean the latest to the day. nVidia recently came out with a driver fix for Windows 10 that causes some slowdowns and other issues. Not sure if this includes the Quadro line, though.
Your render times are horrendous for the quality of hardware you're running. I'm not trying to be critical. Mine were worse when I first started messing with IRay. Here are a few lessons learned. Take 'em for what they're worth.
Using the method above I achieved the attached render on my Alienware gaming laptop with an Nvidia 730M card in less than 2 minutes. I know it's not photo quality, but I'm rendering for animation and the process of interlacing the images into a video will eliminate all that granieness.
Thank you so much Fastbike1, Tobor and Tring01!
I'm already seeing a dramtic improvement in rendering speed. I really appreciate your comments and feel much more informed now. Thanks again!
Put up some renders when you've got things cooking. I never get tire of seeing what others are achieving. Good luck!
One other tip for making things easier — one of the "Save As" options in the new D|S version is now "Render Settings". Once you've got everything the way you like it, save the settings. This lets you have several different presets for different purposes. Note that this includes the HDRI Environment map if you're using one (all other lights are part of the scene, so they get saved in the scene file).
tring01, your explanation is so in depth I'm gonna print it and study. My question is kind of simple I think. I need some advice on iray render settings for a very dark skinned character. It's a V4 skin and she looked beautiful in 3delight but in iray she's horrible all I can see is her eyes. Nothing is in the scene just the nude character because I had to do a test render because she looked so dark. Do I need special iray shaders for dark skin? Here is a link for the character.
https://www.renderosity.com/mod/bcs/?ViewProduct=104253
Yeah, you absolutely need to apply IRay shaders to her to get her to render properly. I don't use V4 so I don't know what IRay products are available. I recommend you watch the Sickleyield video here because she manually updates the shaders for M4 in that tutorial using the stock IRay shaders that come with Daz. She has to do a few tricks to make it work. She covers a lot very fast so you may have to watch it several times. I did.
One thing she doesn't mention is that you can use the stock IRay shader for Water Thin Film, on V4's eyes to get them in line.
Good luck. Let's see a render if you get it working.
My pleasure.
Couple things I forgot to mention. I really like to think and use IRay like a camera. It makes everything very natural for me. When you create a camera in your scene IRay defaults it with a 65mm lense. That's a nice mid range lense. Did you ever do portraiture with a 65mm lense? No? Me neither. I like to change the lense to something more appropriate for the scene. For close shots I usually change it to 50mm or even 35mm. You can actually get a fish eye effect by pushing it down to 20mm. It is really amazing how sophisticated the software is at replicating the optics. Just such an amazing feature. Why not use it?
Once you get the right lense for the shot then turn on the depth of field feature. That really gives you a LOT of control over your scene. You will find that playing with your F stop in the render settings, Tone Mapping, now effects your depth of field too. You have to set your focal length in the camera tab of course. To have access to all these photography elements in a software program is just thrilling. You can sit at your computer and compose dream environments with dream shots in minutes. So fun!
Couple other things on lighting. Beware the scene preview lights. You can turn them on and off with CTRL + L. They're supposed to turn themselves off when you render, but I don't trust them. I turn them off manually before I start the render.
Headlamp. There is a kind of vendetta in these forums against the camera headlamp. I actually (gasp!) like to use the headlamp when appropriate. It's a perfectly normal spotlight that is attached to your camera. Most of the time you're going to leave it off, but on those occasions where your three light rig (or your Sun Sky for outdoor shots), is putting just a bit to much shadow on the model's face you can turn on the headlamp and dial it's intensity down to where it just knocks down those shadows perfectly. Just don't forget you have it on if you change up the scene. I think that's why people advise turning it off all the time. So they don't forget to adjust it properly before rendering.
Good luck with your renders and have fun!
Yep, probably one of the most useful threads in getting to grips with Iray.
Thank you for the nuts n bolts explanation, it's opened up Iray to me at last!
G
I've got a question. Which tab is best to play with ? Max samples, or Max time? I've done some large renders lately around 4000 x 5000 or so, and left the computer to render over night. But when it's finished the image still has some graininess to it, so I'm guessing that the time or samples ran out leaving the image 'unfinished' due to the alotted quotas. Also the time is recorded in seconds correct? I know I've had renders go longer than just 2 hours in Iray.
Problem is I'm not sure which option was reached first. Thanks for your help!
Try Max Time at -1, Max Samples as high as it will let you and leave the last one at either 95% or put it up to 98%, seemingly putting it at 100% doesn't work as it never reaches 100% :)
Thanks Fishtales :)
One other Question :) Is there an advantage over using the camera settings in the Iray tab vs the controls on the camera itself?
The settings for the camera only set the DOF (Depth of Field) if you are using it. The camera settings in Tone Mapping work like a real camera where the different settings allow either more or less light into the 'film' so you can use less light and get a light image or more lights and get a darker image etc.
Thanks Fish. :)
Actually for me I set it for 100% and it does reach it. For small scenes less than 5 minutes. Very large complex scenes 2 to 4 hours.
When I say it doesn't reach it I mean Iray doesn't converge the scene to 100% it actually stops before then although it says 100%. I'm sure it as one of the DAZ developers that said it although I'm not sure.
A simple scene (ex: a primitive sphere) will reach 100% convergence in fairly short order. This is pretty easy to test. There's no technical reason why, given an appropriately lit scene, convergence can't get to 100%. Convergence simply means a preponderance of samples to a given pixel fall within a certain range of values. On certain types of scene, however, getting to this point may not always be quick or easy.
For more complex scenes, it's very much the 95-5 rule: The first 95% takes 5% of the time, the last 5% takes 95% of the time! If you had the machine to do it, it should be possible to get that last 1%.The exception might be if Iray simply cannot determine if a pixel is fully converged -- a near-black pixel, for example, or some pixels with "noisy" neighbors.
In the Iray docs, the default is stated at 0.95, which is 95%. They warn against going higher, and say it should not be necessary, but they do not mention 100% is not physically possible. It's better to alter the Rendering Quality setting, which increases the threshold of when Iray considers a pixel converged. That's more controllable, and the increase in render time is approximately linear with the increase in Quality setting.
The idea is that instead of trying to get 100% of the pixels estimated as converged, which may not result in much visual difference (and may take a month of Sundays), instead, increase the requirement of how Iray considers each pixel is converged.
I knew I had read it somewhere.
http://www.daz3d.com/forums/discussion/comment/909986/#Comment_909986
Yes, I've read that, but nVidia's programmer's documentation makes no mention of this, and you'd think it would. There are a finite number of pixels, and if 95% of them can reach convergence, then mathematically, all of them can, eventually.
It's possible, I suppose, that internally Iray treats 100% as 99.9%. We'll never know that, but from a standpoint of valid input, the Iray documentation specifies valid values of 0.0 to 1.0 (0% to 100%). See near the bottom of the page below. If 1.0 (100%) would lead to to an infinite render, the docs would say that.
http://www.migenius.com/doc/realityserver/latest/resources/general/iray/manual/concept/progressive_rendering_photoreal.html
Another advantage of using the Tone Mapping controls is it adjusts the scene as a whole, not just one camera; you don't need to remember which camera you were using the last time you were fiddling with that scene.