Download - H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

Transcript
Page 1: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

THELIMITSTABTheLimitsTabcanbefoundundertheRenderingTabontheMantraNode.

Theparametersfoundonthistabcontroltheamountoftimesarayassociatedwithaspecificcomponentisallowedtopropagatethroughascene.Settingtheselimitshasinfluenceoverthefinallookofyoursceneaswellastheamountoftimeitwilltaketherenderyourimagewithoutnoise.

ReflectLimit

Thisparametercontrolsthenumberoftimesaraycanbereflectedinyourscene.

Page 2: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Theaboveexampleshowsaclassic“HallofMirrors”scenariowiththesubjectplacedbetweentwomirrors.Thiseffectivelycreatesaninfiniteseriesofreflections.

Fromthiscameraanglethereflectionlimitsareobviousandhavealargeimpactontheaccuracyofthefinalimage.However,inmostcasesthereflectionlimitwillbesubtler,allowingyoutoreducethenumberofreflectionsinyoursceneandoptimizethetimeittakestorenderthem.

Rememberthatthefirsttimealightsourceisreflectedinanobject,itisconsideredadirectreflection.Therefore,evenwithReflectLimitsetto0,youwillstillseespecularreflectionsoflightsources.

Page 3: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Tocontrolwhathappenswhenthemaximumnumberofreflectionsisexceeded,seetheAtRayLimitparameterontheLimitstab.

RefractLimit

Thisparametercontrolthenumberoftimesarayberefractedinyourscene.

Theaboveexampleshowsasimplescenewithtengridsallinarow.Byapplyingarefractiveshader,wewillbeableseethroughthegridstoanimageofasunsetinthebackground.

Page 4: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Fromthiscameraangle,fortheimagetobeaccurate,therefractionlimitmustmatchthenumberofgridsthatthatareinthescene.However,mostsceneswillnothavethisnumberofrefractiveobjectsallinarowandsoitispossibletoreducetherefractlimitwithoutaffectingthefinalimagewhilealsoreducingthetimeittakestorenderthem.

KeepinmindthatthisRefractLimitreferstothenumberofsurfacesthattheraymusttravelthrough,notthenumberofobjects.

Rememberthatthefirsttimealightsourceisrefractedthroughasurface,itisconsideredadirectrefraction.Therefore,evenwithRefractLimitsetto0,youwillseerefractionsofLightSources.However,sincemostobjectsinyourscenewillhaveatleasttwosurfacesbetweenitandthelightsource,directrefractionsareoftennotevidentinyourfinalrender.

Page 5: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Tocontrolwhathappenswhenthemaximumnumberofrefractionisexceeded,seetheAtRayLimitparametersontheLimitstab.

DiffuseLimit

Thisparametercontrolsthenumberoftimesdiffuserayscanpropagatethroughyourscene.

UnliketheReflectandRefractLimits,thisparameterwillincreasetheoverallamountoflightinyoursceneandcontributetomostglobalillumination.Withthisparametersetabovezerodiffusesurfaceswillaccumulatelightfromotherobjectsinadditiontodirectlightsources.

Inthisexample,increasingtheDiffuseLimithasadramaticeffectontheappearanceofthefinalimage.Toreplicaterealisticlightingconditions,itisoftennecessarytoincreasetheDiffuseLimit.However,sincetheamountoflightcontributionusuallydecreaseswitheachdiffusebounce,increasingtheDiffuseLimitbeyond4doeslittletoimprovethevisualfidelityofascene.Additionally,increasingtheDiffuseLimitcandramaticallyincreasenoiselevelsandrendertimes.

Page 6: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

SSSLimit

ThisparametercontrolsthenumberoftimeslightgeneratedfrommaterialswithSub-SurfaceScatteringwillbeincludedintheevaluationofindirectlight.ItisintrinsicallylinkedtotheDiffuseLimit,sincethepropagationofindirectdiffuseraysiswhatallowstheevaluationofnewSSSsamples.

Inthisexample,increasingtheSSSlimitallowsthegreySSSmaterialtoreceiveindirectilluminationfromtheorangeSSSmaterial.YoumayalsonoticearelationshipbetweenDiffuseLimitandSSSLimit–essentially,tomatchthecontributionofindirectlight,youwillusuallyneedoneextraSSSSample.

KeepinmindthatmaterialswithSSSenabledabsorbandscatterlight,sothelightcontributiontootherSSSobjectswilloftenbequitesmall.IncreasingSSSlimitsbeyond2willdolittletoimprovetherealismofafinalrenderbutmayrequiredramaticallymoreSSSsamples.Infact,inmanycasesevenanSSSLimitof1(essentiallylimitingthecontributiontotheobjectitself)willbesufficienttocreatehighlyrealisticrenders.

Page 7: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

VolumeLimit

Thisparametercontrolsthenumberoftimesavolumetricraycanpropagatethroughascene.ItfunctionsinasimilarfashiontotheDiffuseLimitparameter.

IncreasingtheVolumeLimitparameterwillresultinmuchmorerealisticvolumetriceffects.Thisisespeciallynoticeableinsituationswhereonlypartofavolumeisreceivingdirectlighting.Also,inorderforavolumetricobjecttoreceiveindirectlightfromotherobjects,theVolumeLimitparametermustbesetabove0.

WiththeVolumeLimitsettovaluesabovezero,thefogvolumetakesonthecharacteristiclightscatteringyouwouldexpectfromlighttravellingthroughavolume.However,aswiththeDiffuseLimit,thelightcontributiongenerallydecreaseswitheachbouncedrayandthereforeusingvaluesabove4doesnotnecessarilyresultinanoticeablymorerealisticimage.

Also,increasingthevalueofthisparametercandramaticallyincreasetheamountoftimespentrenderingvolumetricimages.

OpacityLimit

Page 8: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Asaraytravelsthroughmanytransparentsurfaces,orthroughavolume,itwillcalculatethecumulativeamountofOpacity.WhenthisvalueexceedstheOpacityLimitmantrawillassumeallsurfacesbeyondthispointareopaque.

ThisparameterbehavesinasimilarfashiontoboththeReflectandRefractLimitbutoperatesonaccumulatedvaluesratherthansimplythenumberofsurfacestherayhaspassedthrough.

Intheaboveexample,eachgridhasashaderattachedwithanopacityvalueof0.1.Itisimportanttorememberthatinthiscase“transparent”referstoobjectswhoseopacityislessthan100%anddoesnotincluderefractiveobjectswhichcanappeartransparent.

Page 9: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Intheaboveexample,thesphereofthelefthasanopacityof0.5,withnorefraction.ThesphereontherighthasanOpacityof1withrefractionenabled.YoucanseethattheOpacityLimithasnoeffectontheamountofrefraction,onlyaffectingobjectswhoseopacityvalueislessthan1.

WhilereducingtheOpacityLimitmaysaveasmallamountofrendertime(1–5%)usinglowvaluesmayresultinbandingandotherartifactswhenyourcameraismovingorananimationisevolving.Thiscanbeespeciallynoticeableinsmokesimulationswhereopacityvaluesareconstantlychanging.

ThedefaultvalueforOpacityLimitisquiteaggressive,changingthisvalueshouldbedonecarefullyandtheresultsinspectedacrossarangeofframesinananimatedsequence.

ColorLimit

Page 10: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Thisparametercontrolsthemaximumvalueashadingsampleisallowedtoreturnfromindirectsources.

PhysicallyBasedRenderingcancause“spikes”incolorvalueswhenextremelybrightindirectlightsourcesareundersampled.Thisresultsin“fireflies”inthefinalrenderedimagewhichcanbeverydifficulttoremovewithoutveryhighsamplingrates.

Youcanseeintheexampleabove,thatevenat12x12pixelsamples,the“fireflies”stillremain.AdjustingMinandMaxindirectrayssamplesettingscouldremovethisnoise,butatthecostoflongerrendertimes.

DecreasingtheColorLimitparameterclampsthecolorvaluesintheseindirectsamplesandcanhelptoavoidthese“spikes”.

ReducingthecolorLimitcanbeaneffectivewayofremoving“fireflies”withoutincreasingsamplingrates.However,clampingthevaluesinindirectlightingcanresultinanoverall

Page 11: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

reductionintheamountoflightinyourscene.Thisisespeciallyevidentinsceneswhicharemostlyilluminatedbyindirectlight.

ColorLimitDecay

ThisparametercausestheColorLimittodecayasrayspropagatethroughthescene.

SincetheColorLimitparameteractsasclampontheindirectvaluesinyourscene,itcanoccasionallycauseindirectreflectionstoappeartoodim.Todisguisethiseffect,theColorLimitDecaycandecreasethecolorlimitaftereachbounce.Thiswaythedecreaseinlightonlybecomesapparentafterseveralbounceswheretheeffectislessnoticeable.

Page 12: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Intheaboveexample(colorcorrectedwithabrightnessvalueof0.1)youcanseethatbyreducingtheColorLimitvalue,allsecondaryvaluesareclampedtothesameamount.However,bysettingthecolorlimitdecaywithoutadjustingthecolorlimit,thebrightnessofeachreflectionisreducedaftereachbounceproducingamoresubtlereductioninintensity.

SettingtheColorLimitDecayvalueto0.9willcausethecolorlimittobe90%ofitsoriginalvalueafteronebounce,81%aftertwobounces,etc.TheColorLimitwillneverdecaybelowavalueof1,sothissettingwillnotaffectcolorsinthe0-1range.

AtRayLimitThisparameterallowsyoutocontrolhowMantradealswithraysthatreachtheraytracinglimit(ForexampletheReflectLimitorRefractLimit).

Page 13: H16 Mantra User Guide THE LIMITS TAB - Houdini · H16 Mantra User Guide THE LIMITS TAB The Limits Tab can be found under the Rendering Tab on the Mantra Node. The parameters found

H16MantraUserGuide

Intheaboveexample,therefractLimithasbeensetto2.

Settingthe“AtRayLimit”parameterto“UseBlackBackground”willsimplyrenderblackoncethelimitsarereached.ThisisthedefaultsettingandwillworkinmostscenessincetheReflectorRefractLimitisunlikelytobereached.However,insceneswherethelimitisnoticeableintherenderedimage,theblackcolorcanbequitenoticeableandstandoutagainstthecolorsinthescene.

Inthiscase,itisadvisabletoincreasethelimituntiltheeffectisavoidedorusethesecondoptionforthisparameter“UseDirectLightingasBackgroundColor”.Thiswillreplacetheblackcolorwithwhichevercolororimageisusedinyourdirectlighting,forinstanceanEnvironmentLight.

ForMoreInformationabouthowthesettingsonanEnvironmentLightaffectthisparameterseetheLightingsection.