Creating a Ambient Occlusion Render in Maya

Cov txheej txheem:

Creating a Ambient Occlusion Render in Maya
Creating a Ambient Occlusion Render in Maya
Anonim

Tau ntawm no hauv lub kaum ntse ntse, cov zaub mov tsis tshua muaj txiaj ntsig, tab sis nws tshwm sim rau peb hmo dhau los thaum khawb cov lus qhia ua noj txiv qaub kua txiv qaib uas peb tuaj yeem pib ua yeeb yam muaj qhov sib txawv hom ntawm daim ntawv qhia-shader recipes.

Tag nrho "cov phau ntawv ua noj" tau sau rau ntawm cov ntaub ntawv thiab cov duab ntxoov ntxoo hauv Maya, UDK, 3DS Max, Vray, thiab lwm yam.

Nws yog ib yam uas ntau tus pib muaj teeb meem nrog thiab vim li cas zoo! Tweaking array ntawm arcane tsis xws li "specular zog" thiab "diffuse weight" nyob rau hauv ib qho kev sim ua raws li cov ntaub ntawv tiag tiag hauv ntiaj teb xws li ntoo, iav, pob zeb, lossis cov nplais ceramic tsis yog ib txoj haujlwm yooj yim.

Yog li no, peb nyob ntawm no

Pib nrog ambient occlusion, peb mam li pib qhia qee qhov chaw thov rau qee yam khoom siv hauv ntiaj teb uas nyuaj rau ntsia. Peb feem ntau yuav siv Maya hauv cov koob no, txawm hais tias peb tuaj yeem nkag mus rau hauv Unreal Development Kit ib zaug lossis ob zaug. Peb zoo siab rau zaj yeeb yaj kiab no thiab cia siab tias yuav kawm ntau npaum li koj tau nyeem nws!

Ambient Occlusion yog dab tsi?

Image
Image

Tsis txhob cia lub npe dag koj-ambient occlusion yeej yog ib yam khoom ncaj nraim los tsim, thiab nws yog ib qho tseem ceeb heev.

Tsis yog AO tsuas yog siv (zoo nkauj thoob plaws ntiaj teb) rau kev ua haujlwm ntawm cov duab ua haujlwm, nws kuj tau siv ntau zaus los ua lub hauv paus hauv kev sib xyaw thiab kev ntxhib los mos pleev xim vim nws pab nthuav dav thiab "hauv av" cov khoom hauv ib qho scene los ntawm kev sib sau ua ke ntxoov ntxoo.

Ambient occlusion yog ib daim ntawv ntawm tus kheej-shading khoom, txhais tau tias nws ua haujlwm txawm tias tsis muaj teeb pom kev hauv koj qhov chaw. Nyob rau hauv txoj kev xav, nws yog ib qho kev kwv yees kwv yees ntawm lub ntiaj teb illumination thiab yog txhais tau tias ua raws li txoj kev teeb pom kev nyob ib puag ncig ib chav lossis ib puag ncig.

Ambient occlusion renders muaj tus yam ntxwv "mos-shadowed" tsos nrog maj mam darkening nyob qhov twg ob qhov chaw los nyob rau hauv ze ze los yog kev sib cuag (pob ntawm ib chav tsev, underside ntawm cov khoom, cov ntsiab lus zoo, thiab lwm yam). Ambient occlusion dluab muaj qee zaus hu ua "av nplaum renders" vim lawv zoo ib yam li cov qauv av nplaum.

Ntawm no yog tus qauv uas peb tau ua rau lub rooj cob qhia xyoo tas los uas siv ambient occlusion los qhia tawm cov qauv ntawm cov qauv (lub tswv yim riam phom los ntawm Diego Almazan).

Creating a Ambient Occlusion Shader:

Tsim ib qho chaw ambient occlusion shader rau cov duab kev kawm tau yooj yim zoo nkauj, thiab tsis tas yuav muaj UVs, daim duab qhia kev ntxhib los mos, lossis teeb pom kev zoo.

Muaj ntau txoj hauv kev los siv cov txiaj ntsig rau cov txiaj ntsig sib txawv me ntsis, tab sis qhov peb yuav qhia ntawm no yog qhov zoo thiab ncaj ncees, xav tau tsuas yog ib qho Mental Ray node thiab cov khoom siv Lambert yooj yim.

Ntawm no yog ib nqe lus piav qhia luv luv.

Qhib lub qhov rais Hypershade thiab tsim cov khoom Lambert tshiab

Muab cov khoom npe-peb feem ntau siv qee yam xws li ambientOcclusion_mat.

Ob npaug nyem rau cov khoom siv los qhib nws cov khoom siv. Qhov no yog qhov uas peb yuav teeb tsa feem ntau ntawm cov kev txwv rau qhov ntxoov ntxoo.

Los ntawm lub neej ntawd, cov khoom siv xim diffuse yog qhov nruab nrab grey, tab sis peb tsis xav kom peb cov ntsiab lus tawg tawm, yog li peb tab tom yuav xaub tus nqi xim mus rau qhov tsaus ntuj ntawm qhov spectrum. Peb tab tom siv 0, 0,.38 rau HSV tus nqi ntawm color attribute, tab sis qhov no yog qhov teeb meem ntawm tus kheej nyiam.

Qhov tom ntej uas peb yuav tsum tau ua yog ntsaws ib puag ncig occlusion node rau hauv cov khoom siv hluav taws xob incandescence

Nias lub thawv checkered ntawm ib sab ntawm incandescence input. Qhov no yuav ua rau lub qhov rais render node.

hauv qab Mental Ray tab, nyem textures thiab nrhiav mib_amb_occlusion ntawm daim ntawv. Nyem rau nws, thiab cov node yuav qhib rau hauv tus cwj pwm editor ntawm sab xis ntawm koj lub vijtsam.

Koj yuav tsum pom cov npe ntawm cov cwj pwm-cov uas tseem ceeb rau peb yog cov qauv, ci / tsaus, kis, thiab qhov siab tshaj plaws, txawm li cas los xij, tib yam peb yuav hloov pauv yog tus lej ntawm cov qauv.

Nyob rau hauv lub ambient occlusion node, tus naj npawb ntawm cov qauv tswj cov suab nrov nyob rau hauv koj render

Tawm cov qauv ntawm 16 lossis 32 yuav zoo li grainy thaum nce tus nqi rau qee yam xws li 64 lossis 128 yuav zoo nkaus li du. 32 cov qauv yog qhov zoo rau kev sim, tab sis yog tias peb npaj yuav nthuav tawm cov duab peb feem ntau yuav siv 64 lossis 128.

Sim ob peb qhov ua piv txwv sib txawv kom tau txais kev xav rau qhov sib txawv-koj yuav pom koj nyiam cov tsos zoo li ntawm qhov qis kawg ntawm qhov spectrum.

Ntawm no yog daim duab sib piv uas peb tau ua siv ib puag ncig sab nraum zoov peb tau ua qauv ib ntus rov qab qhia qhov sib txawv ntawm Maya puag render, thiab ambient occlusion renders nrog 64 thiab 128 qauv. Pom ntau npaum li cas cov duab zoo li nrog ambient occlusion?

Koj tuaj yeem ua si nrog lwm tus cwj pwm yog tias koj xav tau:

Zaj thiab tsaus ntuj tswj qhov tsawg kawg nkaus thiab siab tshaj qhov tseem ceeb hauv koj qhov kev ua. Yog tias koj pom tias koj cov ntsiab lus tau tawg los yog koj cov duab ntxoov ntxoo tau tawg, koj tuaj yeem siv cov sliders los them nyiaj. Spread thiab max nrug yuav hloov pauv qhov kev poob / qhov sib nrug deb ntawm koj qhov teeb meem thiab qhov tsaus ntuj.

Tam sim no! Vam tias, koj tau kawm me ntsis txog ambient occlusion thiab yuav ua li cas nws tuaj yeem siv los ua cov khoom nthuav qhia zoo rau koj qhov 3d scenes.

Pom zoo: