Dark edges in baked texture

Hi,

I know that it’s a blender-question. But some of us may have had the same issue.
After baking the scene and importing it into babylon I see dark edges.

In Blender there’s a “Margin” option at the baking-section. And it’s set to 16px.
Nevertheless I don’t get rid of this. I know about the principles of light-baking in blender and already tried a lot. But I don’t find a way. And I don’t want to tweak the rendered image in Photoshop.

Maybe somebody has a hint for me? :slight_smile:

Hi. I think you need padding or something like this, because marign its outside distance between islands

Hi kvass, yes, that would be exactly the setting I’m looking for. Technically it’s doesn’t exist because the black areas are really rendered as black content (because no light is landing there) while the margin areas are free and can be filled with the margin.

i dont use blender for bake textures and this looks scary texturing - How can I expand the borders of a exture edge outwards like an offset? - Blender Stack Exchange

I think you are looking for extend, I’m no blender expert but that’s what substance painter and designer uses

Hi jellix
You may find a way to your answer in those old article :
http://wiki.polycount.com/wiki/Edge_padding

http://wiki.polycount.com/wiki/Light_map

Are your UV islands too close to each others? 'cause with the right margin in the unwrap operation, in combination with the right value for padding in the baking setup (tweaked having the lightmap texture size in mind), I’ve always get rid of this dark edges issues.

little example here (from my old tutorial):

Hi.
To me it looks like a UV layout/resolution, precision issue.
Because the floor does show that - and I assume that there is no UV seam in the floor - where the middle wall is.
The black edges can be more a seam issue.
Always look, that you have as little of seams as possible. e.g. a cube can be layed out into 6 sides or into one island. Be sure that your seams are there where u cannot see them,
Would make sure, that the UVs are not distorted and have the same scalings.
You might always run into such issues if your UVs do lie within a pixel.
Probably you can devide larger elemens into smalled UV islands to arange it in the layout.
Resolution and mipmaps are also always something to look into.
Best.w.