hey, can someone give me an advise please, i’m new to lightmap baking, i have huge castle building, majority of the meshes shared same material and contain multiple material, for example there’s castle tower that has multiple materials and another part like wall shared same material with the tower.
questions are
Do i have to generate second uv for lightmaps for all meshes?
Do i have to generate second uv channel by merge unwrap all the meshes?
How much resolution if i use merged UV for that huge castle building?
i spent 2 months building this castle, interior and exterior, please help me, appriciate it, thanks.
what? Go google what a light map is, see if the results help?
you probably can’t merge a whole castle into a single thing. Look up what Texel Density is, understand it. Then partion off the model in a way that makes the most sense in order to preserve that; Resolution wise, each piece at around 1064 is already going to somewhat cost you a few hours to bake, but the shadows are bound to look crispier than they would at say 256. Except this depends on the texel density and the size of the pieces as well.
You probably need to spend another month building the castel if you werent aware of how lightmap UVs work. And that’s perfectly OK. Do it right, instead of taking shortcuts.
And on that note, you want to pixel align to the center of the pixel for all lightmap UVs.
And you want the pieces to always fall at a consistent pixel defined distance so that your MIP wont affect the quality too much when you apply different scale values to the lightmap - all always in power of 2 format.
There are some obvious issues with small stuff.
Overall:
If you build your UV on 256, correctly, it will scale up nicely to anything ^2 above it.
If you build your UV on 526 or higher ^2 value, there is no absolute guarantee it will look nice as you scale down.
So, for models you want to use in a videogame, see if you can get away with 256 and extremely simple lightmap UVs.
Having done this on several castles, it’s not impossible if you consider small 2m by 2m sections.
Be mindful of slants, as they will go jaggy regadless of what you do. A proper lightmap UV shouldn’t really have any slants when possible; so a beam that unwraps at a 45deg angle is cut and rotated to be at 90deg instead - but an arch is an arch and you have to accept the jaggies will exist on it.
that’s not i meant sir, i’m talking about second UV channel for lightmaps, do i have to merge all meshes to generate one lightmaps and separate them afterwards? nothing is wrong with main UV, i’m just trying to avoid dynamic lighting performance cost.
always do it yourself. The engine isnt even good at what it used to be good about years ago.
You still have confusion over what lightmap UVs are - you need to do some more research on them.
They do not affect or intersect with the other UV channles.
And while UE supports something like 10 uvs, not all other engines do…
my only confusions are does lightmap affecting material node? since multiple meshes shared same material and each one of them has second UV channel, would they interfeering each other or not?
does UE process the lightmaps differently from main materials?
i’ve been asking chat gpt, but it gave me options, that’s why i need expert, not machine.
I think you need a more basic explanation video or similar.
There used to be some decent material in the learn tab once upon a time.
I would recommend you check out any content from some 3D Artists that explains what they are and how they work.
In short. They are used to bake shadows into a shadow atlas that is managed by the engine.
Each pice cannot have any overlapping geometry to produce clean results.