All language subtitles for 8. Baking lightmaps

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

So now going to bake some lighting in order to make this scene look a little bit more effective.

And so in our scene view, I just basically want to add some lights.

So game object light and a point light.

OK, just going to get into a position where I think I want this point light, let's say somewhere like

here.

As long as you got my point light selected game object and aligned with you, then it puts it into that

same position.

Just switch on your gizmo's if you need to see that.

OK.

And so I'm going to make the range of this about 45.

That might be a bit too much, about 35.

So you can see how far that light is actually extending.

And then I'm going to make the color of this relatively warm color.

So I want it to be like a pretty intense orange.

Well, it changes mode to Bakht so that when we bait the light, it'll actually bait that color into

everything, its intensity going to set to about a three.

And it's indirect.

Multiply that one.

OK.

Don't need any shadows.

I'm fine.

Now, you're not going to see the light show up at the moment, because all of these textures that we're

using are unlet textures.

So they're not affected by lights.

So I'm just going to take this to the point.

Light control, Andy.

Let's move it over to the other side.

And this one might have a sort of a bluish light, so I'm just going to change this to a blue and bear

in mind that these two colors sit and opposite sides to each other on a color wheel.

So I'm using a little bit of color theory there in order to kind of warm everything up.

These are supposed to be complimentary colors to each of us.

They work in tandem and they're quite useful together.

I'm going to make the intensity of this one about a four point five and its range to about 65.

So it's pretty big.

OK.

Once again, no shadows and it should be a bakht light.

And then I'm going to take this point light again.

Control and the duplicate.

I'm just going to bring this one up into the air and kind of obvious that over the top of everything

and I want to color this one, a red, deep kind of red color.

The intensity of this one, I'm going to make about a two point one.

But the range to make about a 55.

So the three callers should team work together in the scene.

Now, my directional light, I want to change the mode from mixed bakht, the intensity.

I'm just going to raise this a little bit.

But one point three, OK, so that whitens everything, OK?

Because as you know, at the moment, everything is really, really dark.

And the more you light in the direction of light, the more it will sort of filter out the other colors.

So if you feel that the other colors are a bit too strong, just keep increasing that intensity of that

directional light.

OK, now I only want the colors to affect the central objects, but not this wall.

I want to keep the wall at this kind of a color.

So to do that.

I'm going to go to the ground and I'm going to take all of these wall elements.

It's going to hold shift and select them all.

I'm just going to unmarked them is static.

So anything that is not static does not get affected by any like baking.

OK, I'll put those back later.

Just for the moment, I'm going to switch those off.

And so now we're going to actually bake the lighting, so if you go to window rendering and lighting

and we drag our lighting top over here, first of all, we need a light setting.

I'm just coming to the my scenes folder, and this is where it will save our new light settings.

Let's just do that.

Not now gives me access to all this so that I can actually bake.

And if you find that you've got auto generate checked on and it's already baked a bunch of lights.

Just uncheck that and then click the dropdown, choose clear baked data.

You'll find out if it's baked in the data, because if you come over to the baseline labs, there will

probably be some textures in here.

You just basically need to get rid of those.

By doing what I just showed you.

OK.

And if you've got a good graphics card, probably move over to progressive GPU.

It's a lot faster.

And for the purpose of testing, I'm going to lower my light resolution down to about one.

All right.

So it's really, really low.

And this is this will be extremely fast.

Not very good quality.

Much like map size.

I'm going to yeah, I'm going to keep it on about 1024.

That should be OK for a light map.

If it was a texture, I'd lower that down to about 512.

This should be fine.

OK, and then finally, my light, my parameters go as low as you can default.

Very low resolution.

OK, so now I'm simply going to click generate lightning.

It will go through the same thing and it will now light it.

And there we go.

OK, so now it's made a bunch of changes in my simulator.

I can now see that everything's a little bit brighter, looks a little bit nicer and.

Yep.

OK, so quiet without not necessarily getting that much red.

So I'm just going to click on this.

Right, and move it down a bit.

And I'm just going to increase it to about two point six.

And I may very well actually just move this forward a bit just over here.

And the orange intensity, I just want this to be a little bit more intense, so I'm going to go with

about five and my blue intensity is already pretty good at 4.5.

OK, so I want to once again rebate.

So what I'm going to do is and metalic, women generate light in this clear debate data.

And I'll show you what bait light maps look like.

Just looks like this.

OK, it's just one single image, 128 pixel by 128 pixel image.

So I'm going to clear the data and then once again, generate lighting.

It's going to relight everything so I can see what it now looks like through my simulator.

I quite like to look at that.

Uh, I think the colors could be more intense.

OK, so once again, I'm going to go to my orange light here.

I'm really going to push this up now.

So about about a seven range increase to about forty five point one, which is the blue.

And I'll go up to about a six point five indirect multiplier.

Yeah, increase that to a two.

And then the red lights.

She only looks like this effect in this back area.

Woman ring back up here, maybe range.

Let's go with eighty five.

And I'm going to go with a for this one.

My directional for light and everything up just a little bit more.

So we go from point four.

OK.

I'm also going to switch off any shadows or shadows over to my lighting now.

Going to clear all my data.

Once again, just generate lighting.

You can see everything's got a little bit lighter now, we can really see those elements.

I think they're quite nice.

All right.

Coming out very illuminated.

And then when we put our enemies in shortly, I think that will look quite nice.

All right.

So I'm up here with up 128 pixels by 120 pixels is not that great for a very light map.

So I just want to start to increase the quality without making the image too big.

So what I'm going to do is my light.

My resolution can increase this to about a full four.

Texans would probably be good enough to actually render across this element.

I'm going to change my resolution to a default low resolution.

So once again, in a clear debate data I'm going to generate, this will take a little bit longer time

to do this, only slightly longer.

There we go.

Let's take telomere with total time of one second.

So I've now got a 512 by 512 picture like.

Not necessarily changed how much?

It's mostly all white, actually.

But what we can see there is a color like map is right there and a shadow light map is right there.

There's nothing in the shadow leimer, which is interesting.

So let me try a baked in direct.

So there's no shadow and be clear debate data.

Try it again.

Generate.

You'll see the images being populated.

Here we are.

For some reason, it's still in the shadow map.

That's my image with all my colors stored there.

That will then be applied over the objects.

And it means that you don't have to use any direct lighting in mobile.

When you use direct lighting, for example, like this, that's going to kill you.

Frame rate mobiles hate real time lights.

They really do affect your frame rate.

So where possible, don't use any real time lights.

If you do need to a maximum of one, OK, only one real time like otherwise, it's really going to affect

your performance.

OK.

So I think I'm quite happy without my bait light map is there is only 512, 512 got no Real-Time lights.

Everything is good.

Now, if I'm happy with that, I can take my point lights and I can actually now just delete on my directional

light.

No longer need to use it so I can just switch it off.

Notice, it has no effect whatsoever on my seat.

It's all that light is now being baked into that.

And it's just applied as an image overlay.

The only issue is obviously adds another Dracul to my profile, and I switch my canvas off to check

how many draw calls were used on my canvas.

And let me just give this a quick go on, my profiler.

Just get it started.

And as you can see, the wall still looks perfectly fine, no changes there.

It's only on these elements, but now it's a lot brighter.

It looks nice.

Just click anywhere.

And then I want to come down to rendering.

OK, so now I've got 18 draw calls, which is still pretty good, to be honest.

But now I've got my canvas on.

So, for example, this item and this item and a little bit of text and the moon and all these other

items are all adding now to my draw calls, including my bait light maps.

OK, wait, Androcles, it's perfectly fine.

All right.

What we're trying to avoid is like a few thousand robocalls and we're still backing all of our elements.

OK.

Oh, I forgot to do my.

That's why my backstroke calls are still back down at 12.

OK, so but let me just double check that.

So I'm just going to go to ground, just going to make sure that my walls are static once again.

Probably only reduce it by one, Dracul or something.

Just click somewhere and on my rendering.

Oh, yeah, quite a lot, actually.

Nine Draco's.

All right.

Excellent.

Yes.

Of half that.

That's good.

So now my back shore calls is back to twenty four, and that's with my canvas on there.

And also the lighting as well.

All right.

I've only got six separate calls and now my scene actually looks like it's being fully lit by all sorts

of lights.

All right, excellent.

Yeah, I'm quite happy with that.

And so what they want to do now is effectively save my scene.

And they actually want to export this out at the moment as an case so that we can test it on mobiles.

So if you have a mobile device, I basically want you to test this at the moment just to double check

that you all get in a good frame rate at this point in time.

At each stage, you're working through this game with recommend doing an export every now and then checking

it, double checking to make sure it does work on your phone and that you all get in a good frame rate.

So to do this, we are going to safe and we're going to go to file and build settings.

At the moment, there's absolutely no scenes in the scenes and belt, which means it won't actually

load anything.

So we have to click and open scenes, which means zero now.

So now that's all you have to do in order to get that to work.

So and I'm simply going to click build.

As you can see, it's going to export and epic.

I'll probably create myself a new folder here called Apex or something and just give it a name.

And well, it's called Halloween shooter anyway.

So Halloween test one.

And that will then explore that.

Now, it could take a while, but once it's exported, you will never be able to load that up in your

phone.

So what I want you to do, if you've got an Android device, you've got an Apple device, don't worry.

We'll get onto that later.

And I want you to go on to Google Play and install this app installer or it's completely free.

And I've been using it for a while.

It seems to be perfectly fine.

And it just lets you basically load in your APCs from unity in order to play them.

And now, normally, if it's not coming from a verified source like Google Play or Apple I iso, and

you will get these kind of messages.

So unknown source, will you allow it to actually install?

What this is worried about is that it may be an APK that's from an untrusted source.

It might be stealing your data and all that kind of stuff.

You know, this is a trusted source because you've made it yourself.

All right.

It's coming from unity.

So all you have to do there is either click allow or you might have to change something like this.

Where.

Install apps from external sources.

It differs from phone to phone.

OK, now to actually allow your phones to actually install APCs from outside sources.

OK, but once it's on there, you should then be able to fire it up and just double check, see how

many frames per second you're getting to make sure it's all working fine.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.