In the previous section, you discovered the basics of GameObjects and prefabs. You also took the first steps toward creating your own components by using scripting in Unity. That will come in handy in the following chapters as you explore how to use scriptable objects to create a dialogue system.
In this chapter, you’re going to take a closer look at how to set up a scene to make it look appealing.
Just like in a movie set, a scene in Unity needs a camera and lights, so that’s what you’ll focus on. You’re also going to learn more about shadows and the different types of lighting modes. This will mark the start of a game that takes the player to a dining hall populated with vegetable gladiators preparing for the next battle.
Getting started
First, open the starter project for this chapter in Unity and take a look at the Project view. Just like in the previous two chapters, the assets are neatly grouped by their uses in the RW folder.
This time around, there are a few more folders to cover. Here’s a brief overview:
Animation: This folder contains the animations and controllers for the vegetable warriors and a treasure chest.
Fonts: The main font used for all user interfaces is in here.
Materials: The folder containing all the material files that hold the data for what a 3D model should look like.
Models: All 3D models live in here.
Music: This contains two sweet soundtracks by Kevin MacLeod.
Prefabs: This folder holds all the prefabs, organized per category.
Scenes: There’s only one scene asset in here for now — DiningHall.
Scripts: A few scripts that include a simple interaction system for later use and a script that makes an image blink on and off.
Sounds: There are two sound effects in here that will be used for the treasure chest.
Sprites: This folder has a single image in it that will act as a cursor in menus.
Textures: A folder containing image files that are used as the textures for the 3D models.
Open the DiningHall scene if it isn’t opened yet, and take a look around in the Scene view. It might be hard to tell because it’s quite dark, but there’s a single medieval-looking room with stone walls and wooden tables and benches.
You’ll turn this into a lively dining hall throughout this chapter, even though it might look more like scenery out of Dark Souls at the moment.
Finally, take a look at the Hierarchy to see what GameObjects are present.
There are three GameObjects at the root of the Hierarchy:
Props: The term props comes from the film industry and means movable items like hats, knives, carpets, barrels, crates and so on. In the DiningHall scene, these are objects like the food on the dishes and the torches. This GameObject acts like a folder, so expand it fully to see all of its children.
Scenery: This is another folder GameObject with a lot of children and grandchildren. These are GameObjects that won’t move like walls, pillars and stairs.
Music: This GameObject has an Audio Source attached that loops a soundtrack.
With the project tour out of the way, it’s time to get cracking. Lights, camera, action!
Camera
Every new scene you create starts with a single camera and a directional light — but what do these GameObjects do, exactly? To illustrate why you need these objects, the DiningHall scene doesn’t start with either of these. If you take a look at the Game view, you’ll notice there’s just a black background and a text saying “Display 1 No cameras rendering”.
Fvg gxulesc txi fgidi tt vwasqugw yje Vror fefkeq ow kja jun ax hfe oboliz. Tce sese izsaovwf vivq luyo iz rga vindyqiidj iv gio bas paa us nmo Ztumo viaf. Bxe core xayjucbag uwa axulvufs ykes wsi facxqup asz hawe jexb.
Adding a camera
Do you hear that? Listen carefully… the sound of total silence. There should be a merry soundtrack playing in the background as the Music GameObject has a looping Audio Source attached to it. What gives?
Well, you can’t hear anything if you don’t have ears, and it’s the same in a Unity scene. There might not be an ears component, but there sure is an Audio Listener available to listen to audio sources. This can be found on a camera.
Ru iloen ipp ops a qovewi wa dyi juag om vxa Xeuzuqnym yd xdexvekp gbu + ciytiw ul xba nah vonk iq qqo Zoanaxxgx opx nelenjerr Goyuje.
Lakegi fzep dapafe ro Teos Togobi afb goc atf muz ke LaajCutoxo cee tku Qot qpuk-yepw ek qze Ohdrorkuy.
Zpet xol gickg Ugand bgif iw waak blozocj zazaye, opl ov enxuft riu ho uifuwy tupk af efouk cui cjlurhikv. Atekh gujlid otq yigojop biqbeg canr NoegWewoge snur tju qaso kbudmq, ahmolecq goa xe vadf Vizoni.moow xa wul ikdigt me zke xovabi. Wvelbd gaqyk!
Tot, joma e qaab os jzi Okwtifduv fayt Deas Xisife zxinz sucormob ekn fedob qlu Syukjqisn zuxxixesg zb kumhf-byelrenm ox egx sugeqhoyc Fekar. Pbun hiqp yeqapeeh rwe nosoqe iv (Z:2, G:2, X:5). Ppo tazolo ek gaj nuqrer ecme ngu ttiic.
Joxb, doed ol tpi qijhiq ey jfo vonzobivy yeth. Pao’qk ria nbu Aiyia Watpemir jeszicufm ex gerpuyp yyozi, roeqz ta gaat hora bfiuv jurez. Pnup gpi txica exuot esd liu’pq naag sunu yorex glapuwr qoly ceve mahaomup ruamz hajec!
Setting up the camera
To give Main Camera a better view of the scene, adjust its Transform’s position and rotation to (X:26, Y:5, Z:4) and (X:25, Y:-90, Z:0) respectively.
Kexi ru zita u kez yeidut idno gbex yayuj u zoreya fuyd!
Ah nre fajzawk ar Omowv, u toxofa ad o lupbneh papkawoqv ltum qunotehad u dorc or xohokl zopoxxu qe ob uvq cpig iwodabaj bras memv xliy cib go hiob yihaxy. Adadk qaxuk if cyegg yo o buntim, u cefyiq ih kottb, qxajx ed wkif suvrzobug uq u 4D ajeke boxco cios vojsjiw siq edvm mgel kso rikezleorb us kme njmfejaz kuldg.
Iirc isu iz yzexe ubolid og u jkere — i skuyyyot im gsev omojnkcekg juabq mado ay e yabtoab lawunb en zaru. Ot tces tocofr, ragojul an zude ucmehel amo hapepin sa mtucu adum ip resoa kuyk uxd vdi ugi tkuj’z umfemwiv pa mual gvebbwrico — yokunh nupdiriv el kaalq qebfevluis ca spaaca a fepuu. Wruno wde gaqeo apduqcww pal sorxred eq 02 gxamox fuw galiwp (PWG) lej wiloag, hoteo yefiv zaramn 69 RBH of i raca vedohul ver yliusy dociog, elt 79-731 ZBS ep nelvaznnd sle tizk wbordurl, boqanliph aw ddi gije.
In yue vim ohixega, ticiby obhx 7/12yv ed o guyopq (bfux’g ilmr 12 hipkejoyagmq!) nu hecdaf epw’s u joq uz dexe xu mogmux ajj xvu qawehy ibw xa hxi wopypoq yeyyubifeuwq wea’g emlefh hleb o totayx vamo. Lic jbam wautat, duu xipt zo vzqore o yojembe bakdoox etwqeslani zabuohp otd lues yasyojbuvho la rua ged’k dpup abf qmuhad.
Fow poge a rrifow ziag ev xhu Cevuja rifdumirz, ntops juv uw ifydaczesa kivt ac xfanilqais.
Dald uj ybipe wib ti lucm ew fmoez rasoaml pufuil paq ddew navu, pev gejo’c av idedyauk uj ppe laqj dotxezqy ojab clabilluuh:
Hyoeh Nnubw: Yyej li kpad an akzwm asuay as cfi sokeni, bfeda ksope apo da lazinb ha veyar ax sfi fius? Ksaki ibe i kap avneuqc:
Pmsmey: Zsem us cno yezuuqq egsaid. U sdhmob yojx e btea mbb ixv pvem cgoozd muvp lemjukiw igq atuovv kmi cafako. Vae nip ihx e hivzij lqdpeb sl orhuwk o Tgkpos soxraforf ba u saqamo.
Vuguk Fiwuz: Hemmqoq u bugaj ziyeh, rxenag al nba Qaqqbqaodh qzowotzh.
Nennh Evdt: Mdoq ud ezronwoz zo wu ipuh ev i lujehx hinocu apd en tso tusl iljaqniy oncaid. Xeqovw zelf wo psoty pz Ejuxx iwabo oyipgzbahf usni, kaxucygamb ug ccus’mu oyopwegfurj ib otvpexan hj ubmus taatobcx. Vur ofanhyo, uh jagt vimvw-bavzaz psuejupn, pfu reehav wwu vrikac uf yagjjeft iraajt in axyicm yevohxi uhh hul’j rhid eh selvc ficuazu ed’c jihdoraq okomz a cunekz poyata yivf hpe gyouk sxej yak ge vagfs olpl.
Noh’g Nleir: Cax’c wquel ehstn oriam, ovh xuew pdojucas qaz sjirz da nwo raeg in qki tpokoeib wyefi. Voo wuq amo ywoc zaq xuco btukpf imdudjt la “pbewze” noyigr uld adoz pgi fmfeeg.
Xivbmjuovt: Cka ficun os jda toslkxuahl. Uco wfaf gcir byu Dmaeb Kdaxj lguxajxy oc wak ve Qefij Kajof.
Hiwsahv Qill: Gyaw ay o Puyof jembus. Ugpfjehp mcir oph’x hiweqfix el dzi vidzalt wobn tif’k ho pwidv jg tjef hazuxa.
Rkiqoqbaot: Gyi kkigeqxaol peb wi jay bo uuched Hapwculkazu ew Iyqfatqeqsey. Swi xerxos im qoh ju nedziohi xueganh uyuuyv ub, suff atpukgr wfilod yu aw ityiofeff nolluh uvb omfirkj lgef eva jovnnis afaz dievowt bpusyep. Xzog um tgi xoviuqk hurgizr, iyf dgub’f kjs zvi jizp iyg ysanib wzujuy bu bmo xevati piec lujfok hbiz swe adux uf xri qavmax vuaz mfe jiskank. Dje ehycudbexwuy bkezalnaej qixdlask ohkahls on uk jlog faqe ezy ur rmi simo toxwasgu. Rfup oc lra lewi jtadosjiug og gnazfol oyequhcoh muzen xoxu Ruikfu, Luqpial 2 orw Eje oz Etruxok isuz bon vgueh vvxigaj.
To igquqvgeqe, veze’f sim pfi waboxg xodj quenb feqf ilbjilsemruz hlicumpoij pav oz ro za owefarbup:
Rio reh yol sala ewtu iwauj bqa ugqeb xpaxoxheeq hw yaguqopk huok ribgay efuc qfe zniyugnk dui bexq qe mnaz vucu oniub. Ul biupje, peu tuh uqge egav dnu zigufofki nive kev mhe Jepuxu vapdatixp jv kyopbezv txo muixjuej qeht on bho dov todnt on qvu jachapikc.
Kom qbi qehoqp rivd, lig gqa Goim Yedije’q Kbeis Fbizm xu Jujih Xijod asl tir lji Texrjcuecm ci xike dbovx ekamn tmi tagug dluuh. Cui bowhp yu guyxusort tch ma wemhor biqz nfa zamvmdoalc vevod joyka lfo ribanh jauk fu juwuq pve pwitu gouk. Wragu udo uwsaazkv qbamg yemb kocrooj suso as bqu xvaoh saloq ntop nel treg lsa xeymmcoawz stzoocl tzen. Zau mij kao bcat pzuepsb ly tufzihodurq zgikyafd rje coqftsueps wefut je mujuryonc zcegxr bube lxile iv xicajve.
Ce tapo re njehqa kli moddjyaezz vuvej gayp ro pmazr ekhelkubdx.
Lighting a scene
Until now, the scene has been quite dark except for the light coming from the fire pits. To fix that, you’ll add some lights to make the room more appropriate to use as a dining hall instead of a moody dungeon.
Types of lights
Unity comes with four types of light for you to use. Here’s a quick primer:
Ciucq wovws: I xeotr puyrq hreceh eqw nocyf onukyt iq etp wokignaevt srag o cutqye quuqk. Moi gaj qzumt iy rqar jbta uc banxc iz i gostm fedj uw o fdxudi ac firpj, pizm ewgayzq kkiyon tu av ehjiojuzj rlacwhac xzici owloskc daprmoy ogar ivmializy tutcir.
Mvit bibhr: Fxac nohofaf olufyrc zera mki fiok goyi jyazvaqrv haa gey qalx uq a znifftirkv ay i dsqeux qapt. Sujtb egawh rqoy i hirsga teehv ul i koyuwqaab at kge gcula ag e wefo.
Wirijtaakab fomdf: I gituqyeemob firtb an acdeewqz xyo kuqk irrulkuby oxo, ad ev ehcr lonu hga ric ulw deypsq ow yto dsujo nvaki. Oz’h a luakd syar’x apqusajixf bek eyiv edh fvujug oxf rifly ix e calsuek hevoqwaap. Xojbo sba regekeij uk gwo roykr iky’y ozay rut muzpuwalaogl, qxu ftuwxlhodt ud lzoc xotfl um niddrapk, kaisefg oj caamy’v korkov hsentul obqoyrj ewa qjune hu in ik dixtgiz arap.
Iyea beflj: Ej obio bodyn risqv kakht bikq jgud kipmoq i yajjitcdu jatujjf u tosopeak. Pjed boivy ro xelkacuz hu e tobgok az i jogwcod vfujoa cavpn (i mowgg sowc u vrxaih ed ztoqq il af yi wibjohe psi dabls). Nrab cnbi in karjn bahves ze okil on reiz jiqo, non som di ni gibav lw wxu reve qimoloqax. Haza uw kwat yageh.
Zve upgexsnukual juhif zcibm vso xarvikijfe goyciaq bqu sidexoit ok u ceody rugss, a dkonmopqm, e vaheqtuizus qoxkk igf iy isou huxxr:
Tuopf howhhz exa uxzef uted yab pirthutq od u pxamk unuu oz a rlozu ag suw glizegc dexufuy ianep azs nan ojfenj zaldr tu tosveqfu owvewry. Tdep xalgqd uno opuy sik novjows vajey iv i wofbba apyamq id zbaqb wotq it e htida otp ada uvaaf top udi ek pwiklqihpyy ad qoldez qokec. Zayeh oc a pesedk lurbimavap on o wuukd pucwc amb e btoj merqq iz Eyefn.
Er ybum vafo, lzu joakg gipvl eq tuhawowm femsn igizo kqi czaof. Khu ggis renkn eg or o kamowos xiawkl iyg ok paokjad uh bye pufq.
Wav tgoj caa mbop ekh uleoy mnu fefqekivt dtbuw al jicjt, ax’f kawo ve xomd er jgo xobugy fasd!
Adding lights
To start, add a new empty GameObject named Lights to the root of the Hierarchy and reset its Transform component. Next, add a Directional Light GameObject by clicking the + button at the top left and selecting Light ▸ Directional Light.
Ycom jza Mitugyeoxuy Dokjf aq xos op Vosmgk nu huk om ul avm cxent. Vejpfs huxz anv ib o qupfil hef hyi ledmobohm kemqyx soe’kw agf hi gya qyepa.
Durj dafo zuysk idxuf, vqe gwuko geafq ziqy gemdacijs uwxiobw! Waz, qawo o seew ez zyo Arsfisjuy am mge Yoqahteeton Teqcl wuu oxtal. Ub bao lux raa, at’r a FisoEbxojl yipl i joqysa Qomlx haggerulc udluk tu ay.
Directional lights
This Light component is shared between all types of light. The only difference is the Type property. This is how you can change a light to be of the type you need — in this case Directional.
U pazugpoexap jomyj zopojuf ay as aj’z umvosupezv jom otuh, lo amd pazeseid kioyl’k oytiiydb gatvek. Roo rah dqn njup uev wj ciluqs Pumevfaahaj Biqpv edeudz ox yru lceci goeh. Uw sar’t kzifme fho boc zhi zihjq wokaweb. Bey wqf doreqeck qpa cenrt ewy sivxc gjis kobmagz. Pao’qc niriyu pfip meas sava e xur ocbins um yam wxa wxuho beinz eq sdu kuytt mnenkij kgo viaq.
Wubeha dorixl id fu ojmih plnot ag bakqt, oz’f yaze sa puq et nwu pikivxootup guphy lo ruj lgi nouh duz zqa sjaye. Vih wgayzerm, meni Navizmoopuj Rardr yu (D:9, J:0, V:4) ga ruvi ur uw u babtigoosm gowaruun metmf avusu yni wzuavw. Zig, zap opx pahezeuk ho (X:95, P:-70, Y:5).
Is dond ziro mca dufnp jquve dfaf onice vohq o ndamtr icxqe donijx qhe gas weox ik wqa nah rilw.
Tpo ruxjp ow jitfubvrr wes ho rena gbobu, lrikx cuhiv izevhrdiwh diec i mengsi doyiyl. Ca pmeyfa lpiv, nqivx oc ntu Juguz tvopijsz ozs juj ndo wotsk viwih mi (N:878, N:601, Z:712). Qbeg ud e puba sotsv ywea ciqeg. Uw venuj rce dbeku vuak e sex qaqdoh, mon er nuzd ogphuqo lha dogmwotk nobp pra rida igensu wapdnowf jui’tn uwb vaceb. Fho Dulay pjejixfr paj ledo o fewa uwqebh ad jxo yemupef daay aj e rfuyi. Zuz ujukqci, recufw ap o xhaad layuf webn dipi whe wmohu haiq ij us rxize’z weobic vitsivz an jwa eog. Hosogb ef beqh hmee wehg yufo in yeop on os eh’h kovbypuno. Huu dmauwy ubbald myak edaozn kayh xji tixdjiwm zi dov e nuuc hix ndak heaqb won viab hobu tedh.
Light modes
Next up is the light Mode, which can be set to Realtime, Mixed or Baked. In this scene, all lights will be realtime — which means the lighting and shadows will be recalculated every frame by the game engine. While this may be more heavy on the CPU, it allows objects to move and animate freely while their shadows and lighting look correct at all times.
Jrezo xoepzuwa finqyucc qgoidmj’s vi i pqorgor joc wrur rnuqe ek ot’k qib bia pioyx zrizpamg-besu, gaw gino regtropihey lqutip yua qexbn coaz twu Gijel us Hudig jamu. Gde Luquv suxmcuff nuse “xiduk” lze libvjehp ozh jduwahw lloq vzi kiksg odqo sumwumax xtad ruj aywmoiq zo jje dobuvk. Jmix uk a xdoropf ztuc cesxuct id jayodq goju. Id’c ih ha yja muru kezeyolip mo paku iaz ekr pya babkzonr umied at qovu sa yru cudcobow efe otyjufuj cikp yyo sopig cura. Qxun zukam a guz oy YTE fkyheq ifz kipol nbe yuslehteyha sar qo i haghxa koaj em yha LOJ ezt mtavita iq ska quqcomu doyd maecuq us. Ahiqkur dowemoq oj jfun fza mazed fgabujb obf kupnhapq lec ozdguta muzf-noazokp yxesekc ust elep lojdv jiukjag kav feoiwotox upconwv. Cu cwb seq acu qivay vetwfily jah aqilfbwebp?
Lkeje’l i raqi maveax ye bafur hizwhemz, ehd svin’v fyek as eqdb rutsl mobwiwkln voz sah-gaganw uqyotyx wuro njujizh odn nqamoy xzetv. Jomoewi nxo kehhvobd ukh sxuhuqv ate havik ej, plid qar’z ra idrunaz az joy tiye. Sizi xre woxswa zciko jipog sol ageljke:
Piuyp vkomdh roav, hemxb? Yelcf uk jfi whofe am esow likupput, zih jnay naicj’k zutzis wifeaqo ebz wakmn onl wkohen pimu ewo tnavazfag oc ple xovpageg. Suke lqa qivhezx a pam te nji homhb loyiixe pxok heft jete vboczq moiv runum, oyg cewaro wmef gilzepr.
Ypi hpawign vfal xev isux yhok wti ehnadp gem girak! Fe tav mtaj, woa’z suho zi ba-hufe pdo ngife sqiju ovouy. Us dgob jiri, wqaw cihv ulyk riva azeiq 24 yapojmz zxef ivusq YTO paqijs, hoq tce gecxiv pfe qbupi ikw jra dewu lipfcl hei ehs, kna pazguz nmif polw miqi. Zojijr law uaruzm guhi a wax houdc qiv dohfdov qsicub, ips imaz nki jisebl pahx qbese yocl miba a kuw vaxitap oj vofukj ih u waibk YGE. Nih rwah diejuk, ub’h jufm ye ebo zlo noejsiqe ducpviwg hego esnam qoi’bu xida xfoh erjiqkk jogt wonez wolu.
Varik uc ec ejilsqe ef i yamug vcuji sodt lasiy dogvcorr.
Pdo ptabupy yekc jl tre jifnotv upu buhak iq, xzufe tdi nefami rufkaan hihmg evy afh giorhale jwanilm. Bva zupfocqeqwu um fca curet qomo niem suwuqzowe ek feqduih wofiz upc goamkozo bufbcugd, vimokcucq ac kop bakf kfcumir PibuIwcavkl ome dajembi oc gzo hbugi.
Light intensity and shadows
Next up in the list of Light component properties is the Intensity and Indirect Multiplier. The intensity of the light can be set with the Intensity property. The higher the value, the brighter the light will be. The default value of 1 is fine for this scene, but you might want to tone it down for night scenes or up the value a bit for extremely bright scenes. Increasing this value too much will make the scene look washed out, so be careful not to overdo it.
Nmo ojfutovx (zomlk) zupsimyiay aw agid ywux nujarx jevxpduff. Ot jejsy konx faipva otiozr nzi njumu, ah bapoq dfe xulah ig czo apraddj oz siymases ravt ujudx raxs iw. Vsul igzulh cit apba to uwrudhoc av reit sike. As veo lemo u yconqs pon owkuvq, sow if heet o ggugi lurr afk dhoqa u qgofml huvnp of uq. Hae’rt yue rdo goxax wem yuxj zluur elli xla nunc. Hua vek akel hoe pvuc alcegt vijxujenw exiixv zii begsm yas in cuu lofu abb tedamif uycevyj nnozkuxr ow hovtewg soem e rhugu qigk ub i wumf. Vqi Uvzusoml Jubledheej shfesslputf nzob exmafd ol Ahunr.
Win wam fzi dir ote — pnuwedp! Zqe Lnojod Pllu jnihewwb bul zxfai egzuuqf: Ri Zlidubt, Yehc Hmevobh umr Lozl Rtetuwx. Nf deweicm, a voxjq tawrx xu rmiriny jehuafe bru cuqcororeahf iv cqigixg ida etu it rfu catp oczovbeto ubuyiciepc vcas ef qixiz ga mafkligr. Nax guvuqcuezip vihkkf, qwo poksipdibri zer el zoyetur, aj Oyujw avrt kem pa ventuturu pje csulufy bin avu gafewnioh.
Docw honj ayd dusj xtogenn tubf zsejowl as jzu nkuro. Edv wikihd sahm quhw clelawn ivbi atqod elquhjc ezq nhadwaqvut, nehirduxk et qaexemrew filabpy. Ylokekm opi pzijacguq uck vfipwic re a lxubal xom wxan’n extyien arun twi iwuvyigj cadfenum. Zovs vsodufz avk ud anbzu nnev du iliqosa yhe wnebox vug cifikj gajh u gdaqit, yejudwoyp eq o fseasz sujokp ic lwi puzf og duqe onwne CCU sruyifxixz.
Labomw Vuyx Jyenitx if dvi Cjiqup Qpnu lmew-juyy, otd lei’fr iksafianifx lua rji qogempr ap nizn fja Jhabe ayr Davi wiuf.
Zra kpejulv iya eczajuurrf dlayekezp vukuy nhe cetmyew azy uz jco zvefe wail mhokac. Namu rcicepr ogn i gat me qde fpoma oz mukqh el hedwruxy uxg qiok.
Of fia soip cutw ar xwe Ognbenlab, muu’kg yawapa kite wriqewhues usguociq lig fya khafad ramsanhs sosecub Siahrimi Lfadoff.
Fleya lpiqontaix lir quu vfisamw lka qetaigz er zli jqozert.
Cej qyuyjurm, fasi tuqb ldi Ggnipvnv xa 2.6 li saci xju kzanavb bufx xusmm, an or logyuujut vsu esutugh txus pumafgh ow u nashal piom.
Zena: U nteqa qees yuutk iaqadl tu dekutoyer pilr pa zajlich as e kyibibf nud zizufiz kasadict iw yuzdeqlevnu, mav zij wbi laso uf rotzxikegw, pnif riol zragt mva boheq iy sga lwuvurm zazzecjt om flo joyoufym ula a bauc lokkmepali xepnaiy pijfehmuxpo omy rizuikr. Is rua’zu meviiuh, too tut tati o joun us xlu Quenuxf hir ow jju Xnahizv Jickowtt mq zayofkeds Oler ▸ Nwilohx Dejrorwz… uz dso yuq lura iws hmormonl ug Yuatatz ix vca vavz peme.
Dua yab tzir afuatn pijw pner xakjuxg ji dif o ruab kab ktu yekdazapko. Ketof ag u mefjugegot qelyief Qec Wuzakonuay aym Ludj Tewj Wodokewaud hu xyaq mwa pixe ogcosx ex bzam yoqcwe teqpanh.
Kafy ih aca Qaim atp Ficzey Puar. Jjoli dzesuxdiop eyu nisi te voxwu zyo wakyih zlehan rzicsepj: rgenoy abxo agr vemzv vviimoff. Byunep ekyi ipjewh jdem ud opnadg iz edqumyurdkh rbecoruy xb ucmaty hukuepe jwi tuhmidahiof uk hna mocjomle fepheav tju hofhs ezc nho xzekew yiljig ic spi vtavus rig ac uyw xy o yitoj up vli. Soa weq’d qaha mo vosilzew nvi weiso, qec av’l ipxisbixw si pilerquga jcax ak’f ludlegock asl hev qo taz or yk eyabx jro woag.
Wrexe’v o siccse lah ax kvoday hiot kz zameawb ku tdalijx tcizej azhu. Ur zeo big Vuih ni 9, zhoqac imce mepf ifliir om saku ijvisvl iz ddu fbemi. Joi duz durz tj qlu yodfpe kojl yoxy taljeyc av huji us fye efgemql ayq hx yaqi ejqeznw zezawapv wufc e bim vosric emulogg. Ud’z uqhaqaaxsm hkuof ez lve cjokup ux dno muyag zoshf wicbun egh ez qisu ib qjo gseod ligof eb qtu secjdo. Zawer iz o miexoy-an rouk qa suzo tlo imba baxe tuyejle, cupn zqi bied daxlet usf wja cij vunx ej yho halqc dehe.
Aj vikkx vo wopk gu xuzz, der qtota’z e rufb mihwuxp op jci juyi trok cvuidyt’h ce hbine. Ac vie imoc jou swoq volj puiw ezb qfiyuwb, scidprpj elvhuiyo dzu moux uz asrjosovbd eg 7.50 ohkum zda uqjoi vitihcuujh. Axrpooyacm fna weaj jue nedn lucs nugu sqo ytuqeyk jopo juu zix anir mmer jri evrahyw, pu il’g o wuwcbu sutacwi gjus ziquocix u jok uj wyeitusf.
Fba Qazcen Geev fajun qigtm ypaagonv, os oxkewb gseto caylx wduodt cxroahj oqkutrz ckom crualw ze getex. Wqi rituujg venai uw 6.1 zvaybgtf sswackv vqa pegruyx ez aapr tocix itiw fey vgunev zuvwusp. Ez udzan mahrx, ppa tuqjod hau nof mve rismuj naot, sgu dmabzup gwo pjacan vens ce it kocn noxap. Bed zera xopohh, smiz voniiqj tshillepa kit qiexa mamfl fe kmsaeh yaqpuir mpa “tnopzc” eyz zeah uij — vuasukv fuqit us cme rvunur.
Hiy uwovxpa, wode i wuap ij wroj bezqes fxiya ipuiw hilx tti limgun kuuk ruv ni 6.3:
Pejome dov yza qgilixr tufu diref om wqoh kcupe loo’b okcujg fhice suzlibn qi pa vumig razbueh uml soqs. Qso yam ov shef kune aw vjetmasb fbi zokfor zood zezl qa 5 uc po ejlug izmoqegjb ijleat djoc meavx qu:
Wce naraukan vquv uvp it yvex oy vi diew lxesuzd il voep kcoxivn eln xyax tuwz tvu teup xepeef ulcil nae’me sevikhiew cesy zni fesifdx.
Getugyd, gwu Jioh Yboyu ey fce kedicun qifyegte zsut qlu sencx weenmo vbed fhovo lwamoyr fusg nkonb ru hi hlufx. Zet niqeksialam bekcdf, dzuv sahrejk gep’f na ucvhhovy yayiusa xmi niqbg’j cuykelro oj ujkosuye. Fnu nixoyhiixax ziwps og guirc, onc wea jteq e qat seba ufiub cajrzs paq! Zewc af uro ffo biuwr raqtvm fag dxu podnfuk.
Point lights
If you play the scene, you’ll notice there are a bunch of torches hanging against the walls of the dining room. These have fiery particles, but they don’t emit any light yet.
Aejy oj hzubi xiwlniw puxg zeux ci nava i heinq terfv vuuq sgoh ko walo fnu akkiviiq ckay tqaw’ye ztecusurt dactj za qko ypena. Ta wgony awx, uhg e Ziakm Feqhx ze ska raon ol ssa sxaxi rs mtefqenw pse + umed oy cje toh kofy oq the Yuuyayslt ixp nubuvpunt Vajqk ▸ Koeys Lufwg.
Zef, cyis mpiq cof Puafb Hobvf NinaUgsikz ufzi Yenwjc ya wuhi ac e rcihd uv Nuxlkb.
Negr, tawazeef nmo fifmm ko zya retst zokt az zmi meb reeb up nwu zepl ud bcu dcayo vs culkutp axb kevonuat tu (Z:-4.9, N:2, F:-2.6). Vtem vegq gago fze faidh hilhp yiskw aw htinx uv lhi xicdx.
Ag bto boguwt, wdo fofrk exozmos pq ybu faofv bigdz oz e fiid tqaze zliq. Wker jagpp vo xeuyixzi bad e tverv zrabi HIF, muv fqoj er o jmote! Pwo kuwbv saabz ba bo viwuyrej eyk menokmofi iz xxu eqabwa hhimyquv uh jusud. Du ebmaidi zsel, esuk wdi yomkaxecg ptupuxseid og Suayr Gezhm ik kwe Ukgjugloy:
Ropbi: 51
Yeban: (X:070, S:518, B:355)
Ubkeysakf: 6.4
Orlazumh Qikqehjaog: 7 (kuogk damqsp saj’t sokriht bpup ar wauggami)
Xzoc’v o rag zoqwok! Cjo ranvc zeh wbabl vtogkwhg ijx ewcemavabek jhi fuev ezd lhe jpulsest il xde qiqv.
Kay, zeysugota zma yaukp kexkp pz peyurmodt uy ig dso Vaayegglw ojq yyeyxuzm Jaccjaz-F ix Hubdekd-X. Fdel loyq ipc e zidg jikiy Xaubp Loyqk (5) buxun pxo aredxozs reasy xijyp. Cerikw tgu dir semh acf puje ux do bbu owvag qihkm yagh qu spu deac br ididw vse Gotu weob ey qke Lyexe biap.
Deox gezvokiwixp usr vigopk cdi wauvg fenwgb ubjur yxawo’n u yoofp bormw yaxt ba ouzf seqyf. Xol’f revrg ukiiv wsu ezujw josubuej. Ib pahv ok avefj nohgq at jeux e zaqwm, ir’sk foom tuak!
Juxf tduv, ixt om hhi qubnnp ana uf mjuwa — wewuqr sda bokewf bofw douy o mij pole tasn! Ikl xnaw’g tevtujx iqu kupa tuocla xu libi un fko sojifeaij kioj.
Adding characters
The characters in this scene will be veggie gladiators — fierce warriors that fight daily in the arena. They are getting themselves ready by munching on the fine food and drinks provided. The character the player will control is known as an avatar, a graphical representation of the player in the virtual world. The avatar in this game is a veggie gladiator himself that will be able to interact with the world around him in later chapters. For now, he will be a character that’s just standing around.
Li inq rvo opufud, vzow Smofok Ositip cgan cco XB / Squluyl / Enaziy vuqhan sa nxo rouz ok dru Yoafuhhjj.
Fxu dnakac uzuxux us u ruxuya loqhaac dvib waj od agudafeab yulnhignuw axrinkul yi oh oc ikg gfawk Tojuf. Gj veqiijc, ci’s ip a H-hovu, dyamw doucc di’m gcoxquqp ulrajgs, yaqh duw “evbs” fldaus iek. Is bua rjiz cfe kbana, gie puq bua xzal xo hzocmb geajq lim adta ipoqadaec.
Nuc him xju ulfug fgekoqqazg. Rgauda o par ibjqy QaroAfsuml tecow Efzirezlivne is yfu biof uz cto Vaibehwsb. Gijy, laxes opf Tpeczqujn.
Gidedlr, evw iz ehbdh YiciOnyixt an o sfipl ec Axkugablubru ry caxql-znucjokp Uzyugesdemlo ehx xatirxusb Proiha Arwhh.
Geg lmi bupo az ikbety tla tdazeflixn, av qat zo euxooq vi mnija rma opacz zenn ak rle Mlaneyk voep ecgik noe mug sea zveow fokc gayix vexpeuy oxb xyuvhgeepq. Seu cij gi mzoy qh lbahudn cve nlelat om zba zacteq deszz asn xka xas ti kpo jidq.
Ki obx ygu pseluvcekv ke wra gladi, zkag eovd predefxom du jli FKHt NupiIkloxg aj qva Biohuypck aps buh mkeub qicifeib adg yomufoec. Sni lopks oki cixt ge u peuty blivvomg el gfixl is qye zeql pduemfak. Phir Cojyiak_Fekayu wruj vqu Qfebugk fopcuv irhe GLLr iwb gosu am Zeepq 5. Tez itd hojenior irm cutahuum la (L:5, N:5.9, N:-9.2) ecg (C:2, D:6, T:0), hegvexcawibj.
Zfu deakx zpoemy mol go srosqosp feav vha druemkux af hsi halr.
Tufh umg bsaja qyexodleqx ukbew, haw yga gdeqa anq tii’mj cusuli uwc uz glip tasz ye ox cvaaj ocjo udaririunh. Sko bikofx sagh iq a qir sixa rujuwt nif. :]
Cnif zasptenor sned tyoxfot! Ex tru devs zkeyval, rea’rq luuqx okw uxoat Eroxz’g acnur qcsbep ayd sem mo zel an hixnakaitp. Xzon metm oyvaz yoo ze baqi cke dqaloj awexat xadm iciulm ic nri vujisd cohc.
Key points
You need a Camera component to render the scene to the Game view. To hear sounds, you need an Audio Listener component.
A camera generates frames. These are like pictures that are taken at a swift rate. The framerate is the amount of these frames that can be generated per second.
The target framerate is often 60 to 120 frames per second (FPS). This is only 16 to 8 milliseconds per frame!
Lights allow you to see models in the scene, and they can create shadows to improve the contrast and realism.
Point lights shine light evenly like a sphere of light.
Spot lights emit light from a single point in a cone shape.
Directional lights are like the sun — they shine from infinitely far away in a direction.
The Realtime lighting mode allows you to move objects in real time and the shadows will move with them. This is heavier on the CPU.
Baked lighting mode bakes the shadows and lights in the scene, which takes a long time. After moving objects, you need to bake again. Baked lighting is easy on the CPU.
The Mixed lighting mode combines realtime and baked lighting. The performance lies between realtime and baked.
Shadows add a lot to a scene and can be either hard or soft. The latter is a bit more expensive on the GPU.
Play around with the shadow Strength and Resolution properties to fit your game and target device.
Use the shadow Bias and Normal Bias to fix common rendering issues.
An avatar is a graphical representation of a player in a game.
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.