New dilation for texture filtering

Hi again and today I”m going to describe a changes in baker I”ve made today. This changes are related on margin filtering. Many of artists noticed that margins aren”t so good and they don”t make texture really seamless. For example if you”ll see at this images you”ll notice ugly seam going through the whole cube.

It caused by texture created by baker. Here is texture created with old-style filter function:

Here is margin which is really darker than baked parts of texture and which actually shouldn”t be so dark. It”s specific of our old filter function and new dilation function from baker doesn”t lead to such kind of darkness on. In comparison here”s the same scene with the only one difference – texture for cube was baked using new filter code:

And here”s texture itself:

As you can see there”s no more that darkness on margins.

To use new margin filtering functions you don”t need anything special — just bake in exactly the same way you”ve been doing it before – new code totally replaced old one. One more thing which was changed with margins – maximal size of margin. It was increased from 32 to 64.

Textures were scaled down from 4Kx4K so if you want “original” textures let me know (they are ~3Mb each).

New code and file with demonstration difference between old code and new code were provided by Morten Mikkelsen. Thanks to him.

12 comments 7,681 Views
  1. the seam is still visible, but it is a big improovement.

  2. Just been having trouble with that and there, out of the blue, a fix shows up. Love it! πŸ™‚

    Is this merged to trunk yet?
    Cheers

  3. Yes! Finally! Thanks, Sergey. I’ve been hoping to have this for a long time now. I won’t have to carefully hide my marked seams now, would I? πŸ™‚

    Thanks!

    -Reyn

  4. Great work! There’s still a noticeable seems in the picture with the new dilation, but compared to how it look it before it’s a huge difference. Many thanks.

  5. Great Job You. Didn’t know that this can be solved with pure mind thinking programming stuff.

  6. Very good πŸ™‚
    But if you look closely, the seam is still visible.
    But heck, way way better indeed.

  7. Awesome… Now all we need is a margin creator.

  8. !Another great feature update to Blender. This has been a nuisance for some time. Thank you Sergey!

  9. thanks to sparky as well πŸ™‚

  10. Atlast!!! Atlast baking become better!!! Thank you very much, Ρ‚Ρ‘Π·ΠΊΠ° πŸ™‚

  11. is it already included in the TRUNK version at Graphical.org?

  1. Leave a Reply

    Your email address will not be published. Required fields are marked *

     

share this story on