Тёмный

Bake Lightmap in Blender 

KatsBits
Подписаться 3,7 тыс.
Просмотров 27 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@WangleLine
@WangleLine Год назад
I wish it was easier than this, especially in scenes with hundreds of objects
@KatsBits
@KatsBits Год назад
Yep, the joy of environment/level design!. That's largely why Unity, UE, Godot etc. game development suites have their own 'bake' and 'lightmap' solutions to cater to that very scenario.
@nulliverse1891
@nulliverse1891 6 месяцев назад
You can join alot of object into multiple sections, example, furniture, walls, etc. And sometimes you just have to be patient. Thats the beauty of it ☝️👉
@MrKezives
@MrKezives Год назад
Thankss for the explanation! Is hard to find good stuff about light map. There is an addon that makes the life easier while baking maps in blender, is called SimpleBaking, i think,( i just discovered it while searching for light maps) you can bake all maps at once and it auto save the maps.
@KatsBits
@KatsBits Год назад
Cheers and yep, probably won't cover any of those because they're not part of default Blender.
@slothsarecool
@slothsarecool 2 месяца назад
Definitely cumbersome but appreciate the tutorial! I wish Blender let you change the settings of selected objects at once, seems unintuitive, accidentally add Lightmap UV etc to only the final object. Makes me appreciate GPU Lightmass in UE haha
@KatsBits
@KatsBits 2 месяца назад
Yup, historically Blender hasn't really had a great track-record with Baking compared to other apps but it's sufficient for most purposes (big con is not anti-aliasing borders and edges fully).
@NeilMyatt
@NeilMyatt 5 месяцев назад
Really appreciate you taking the time to share this. However, the workflow seems incredibly tedious and prone to mistakes if you forget something. Surely there has to be a more efficient way to do this? Wondered if you found a better way in the intervening time, maybe via an add-on?
@KatsBits
@KatsBits 5 месяцев назад
There are addons but their usefulness largely depends on what the assets are for; if for a game it's worth seeing if the engine editing tools provide functionality to bake texture maps as that will typically be a better option for that specific outcome.
@wolfsmith9342
@wolfsmith9342 11 месяцев назад
Thank you so much for making this tutorial, I searched a lot for blender lightmap baking tutorial, because unity's bakeresult is very ugly, I want to make the lightmap in blender. And I finally found your tutorial! And I am curious if it is possible to use these lightmaps in a game engine like unity.
@KatsBits
@KatsBits 11 месяцев назад
In principle it should be possible to use them in any engine that supports meshes having multiple UV maps, you won't be able to bake and then use lightmaps as a separate group of assets otherwise. Failing that, and this is a little more tricky to manage, it is possible to bake everything, lighting, shadows *and* diffuse etc., to a 'unified' image that will then be usable as would normally be done for 'diffuse'. Might be a little old skool but it's a failsafe, although this then makes use of dynamic effects, normal, specular etc. moot.
@sylvia1991
@sylvia1991 Год назад
Hello, is there a way to bake world lightings? I applied a world lighting (forest.exr) to my project and renders correctly within blender, but when I move it to unity, it does not show the lightings. Is there a way to bake? or maybe unwrap UV for a world lighting?
@KatsBits
@KatsBits Год назад
It actually sounds like you're trying to bake 'ambient light', which isn't really a fully qualified light 'source' so it doesn't illuminate in the same way Point, Sun, Area etc. lights. This means, as Blender can only 'bake' direct and indirect light sources, anything that's not emitting light, or affects surfaces therein, generally won't be included. There should be a setting in Unity to set the 'world' or 'ambient' light value.
@ElRotura
@ElRotura Год назад
Thanks a lot for your work Boss!!! :)
@user-tm7uh3dh5i
@user-tm7uh3dh5i 4 месяца назад
Hello. Thanks for sharing. I have noticed a checkbox 'New UV Map' at 12:17 in the dialogue for creating a lightmap. What does it do? Couldn't you just tick that one instead of creating new UV map channels for each object?
@KatsBits
@KatsBits 4 месяца назад
It's just a workflow thing really. That can be used but you'll probably have to edit a few things after the fact.
@floyd1411
@floyd1411 Год назад
thank you for the tutorial. May I ask, what is the difference between this and baking Defuse, Metalic, roughness and Normal maps with the direct and indirect light checked on. As in baking material with lights. Is lights maps something different from that? Im learning blender and basically i am creating a room for a website that only supports pbr textures, so i have to bake the light in. Would this approach above work for that?
@KatsBits
@KatsBits Год назад
In essence they're the same except how each 'type' is used or organised (collated together)... With that in mind if your project uses PBR you likely don't need to bake shadows or shading as that would typically be handled real-time by the render engine (or the engines/editing tools). Just make sure your normal, metallic, roughness etc., are set up per what each material represents and you should be good to go.
@floyd1411
@floyd1411 Год назад
@@KatsBits ahh thank you for replying. Yaa that s the problem there is no real time render. And I'm just using 1 combined back texture of 2k. So very Low quality :(
@KatsBits
@KatsBits Год назад
@@floyd1411 If there's no real-time why is it using PDR? What engine is it?
@KatsBits
@KatsBits Год назад
@@floyd1411 based on their docs it looks like you'd need to UV map everything so all objects used their own unique UVs and then bakes everything to similarly unique assigned textures. In other words, you'd set the scene up in Blender as you want it to appear, and then bake, including normal map influence.
@floyd1411
@floyd1411 Год назад
@@KatsBits ahh yes. That's why it was coming up all warped. Yaa definitely will unwrap. And yes. Next time i ll bake all 4 textures instead of using just one combined one. Thank you so much for checking. I really appreciate it. Your Tutorials are awesome, definitely gonna keep an eye of for more as and when u post em. Thanks again. Cheers again.
@floyd1411
@floyd1411 Год назад
Hiya. Amm this is a bit tricky a question. But is there a way to bake reflections? E.g. Floor has roughness to 0.2 (gloss)and so reflects the walls. Is there a way to bake that?
@KatsBits
@KatsBits Год назад
If you're essentially baking the effect into the diffuse then you're not really baking a functional reflection, all you're doing is baking what that effect is showing, its appearance, at the time of baking, i.e. a static render of the scene relative to the surfaces in it/visible to the effect. To avoid that you have to bake separate image maps and then rely on your engine or renderers material system to (re)build the materials slots with 'reflection' being a separate component therein.
@floyd1411
@floyd1411 Год назад
@@KatsBits thank you so much for replying. I may be doing something wrong. I bake the normal, metal and roughness which I connect to the principal bsd. I bake the defuse with direct and indirect, it shows up as image baked proper, but when I connect it to the base shader it gets darker and I'm not sure why that is :( No lights and background set to 0.
@KatsBits
@KatsBits Год назад
@@floyd1411 That's likely a consequence to the Mix *mode* that's being used. This is similar to *Blend Mode* in image editors, just try different ones to see which gives the best result.
@floyd1411
@floyd1411 Год назад
@@KatsBits oks will do. Yaa trying to figure it out is the struggle after that it's smooth sailing. Thank you ever so much for being so kind and taking the time to reply. Much appreciated❤
@sytric.
@sytric. Год назад
this is used primarily in game engines (like unity, or unreal engine) to optimize game performance, where as performance isn't a focus for blender as its designed to render things that almost exclusively csnt be rendered in real time
@SwiftyGazz
@SwiftyGazz Год назад
Awesome Video! However after converting the UV's to Lightmap pack in edit mode and there is no tearing or texture changes if you switch back to object mode while having your UV lightmap pack active you see the textures playing up is this normal in object mode ?
@KatsBits
@KatsBits Год назад
Kind of yes because Blender doesn't clamp textures the same way a game engine might so they can bleed or tear.
@GhettoWxzrd
@GhettoWxzrd 10 месяцев назад
I quite literally should have stuck to "generate Lightmap UVs" in Unity.. waiting 20 hours for something that has less then 4k faces.
@KatsBits
@KatsBits 10 месяцев назад
Unity has it's own way of generating and optimizing bakes specifically for that platform, so "yes" ;)
@realistic3
@realistic3 Год назад
Can't we use GPU for Baking? If not then why NO?
@KatsBits
@KatsBits Год назад
Not 100% sure about this but the Bake sub-system uses its own renderer, it doesn't use the offline rendering engine (or if it does it's not fully integrated).
@realistic3
@realistic3 Год назад
@@KatsBits I have confirmed, plus I myself tested, it does support GPU. The baking time reduced as well and in my system settings I can see GPU is being used while baking process. If it is not working, Go to Edit -> Preferences -> System -> CUDA and make sure GPU is enabled (If CPU and CPU both are enabled, then uncheck CPU, only GPU must be enabled)
@KatsBits
@KatsBits Год назад
Ah yes, CUDA is for Nvidia based GPUs so isn't enabled by default (not everyone uses Nvidia's obviously).
@uis246
@uis246 8 месяцев назад
Why you used uncompressed format to save lightmap?
@KatsBits
@KatsBits 8 месяцев назад
Uncompressed is basically 'raw' data that's not been adulterated by compression artefacts.
@uis246
@uis246 8 месяцев назад
@@KatsBits same for PNG, except it takes less space
@KatsBits
@KatsBits 8 месяцев назад
@@uis246 you should *always* save 'raw' data where possible. If using PNG make sure compression is *disabled*.
@uis246
@uis246 8 месяцев назад
@@KatsBits compression can be lossless. This is how ZIP and PNG work.
@KatsBits
@KatsBits 8 месяцев назад
@@uis246you're missing the point, save RAW data whenever possible.
@MichaelFlynn0
@MichaelFlynn0 Год назад
what a complete nightmare
@KatsBits
@KatsBits Год назад
Yep, that's baking shadows/lighting for games in a nutshell.
@mixtapechi
@mixtapechi Год назад
if you have redshift, it's simpler than this but again still a bit confusing.
@KatsBits
@KatsBits Год назад
@@mixtapechi yep, there are a couple of external tools/plugins that can be used but that doesn't necessarily make the process easier!
Далее
Modus males sekolah
00:14
Просмотров 9 млн
Baking Multiple Textures onto One Map | No Plugins
9:15
Lightmapping in Blender
4:29
Просмотров 10 тыс.
06. Baked Lighting with Blender in BabylonJS
31:45
Просмотров 13 тыс.
I Forced Myself to Learn Blender - 100 Hour Progress
6:43
Simple Bake
16:46
Просмотров 3 тыс.
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,8 млн
How to Bake Metallic Maps in Blender (Tutorial)
10:35
Simplebake  //  Baking addon for Blender 3d!
7:26
Просмотров 17 тыс.