[Bf-committers] Proposed default margin increase for baked textures

2013-02-22 Thread metalliandy
Hey everyone,

I want to propose a change the default margin value that is currently 
used when baking textures.

The current margin of 2px is no where near enough and really doesn't 
help anyone due to the fact that it only is enough for the initial baked 
texture and not for any further mip levels that may be needed. As I'm 
sure some of you may be aware, you need at least 1px of margin per UV 
island to be correct for each mip map level as the texture is resized 
down, in order to stop the background colour from bleeding into the UV 
islands.
I would recommend using a value of 16px as the new default as this would 
allow for 3 mip levels in addition to the initial bake, as long as the 
background colour is correct) which should be enough in most cases as 
the texture is resized down (16px>8px>4px>2px).
Ideally of course we would set the margin so high that there is actually 
no background colour, but I don't think that many people would go for 
that as some feel that it makes the texture look messy, however 
irrelevant this may be, some people do care about how their textures 
look even if you will never see margin on the final mesh. ;)

Please take a look at the link below for an example of what an incorrect 
margin value can look like when viewed on your mesh.
http://blenderartists.org/forum/showthread.php?279870-seams-artifacts-with-tangent-normal-map-in-blender-and-unity

For clarification, this is applicable to all baked textures, not just 
normal maps


Cheers,

-Andy
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-02-23 Thread Morten Mikkelsen
I agree completely. I think the default of 2 might have been set by someone
who
didn't take mip levels into account. To be honest I generally use 32 or 64
as margin
depending on texture size (larger texture means more mips).

But I suppose 16 as default which I think is also what it is in xNormal
seems reasonable.

At the very least I'll echo that 2 is no good :) The background color will
bleed into the subsequent mip levels
too quickly.

Cheers,

Morten.





On Fri, Feb 22, 2013 at 9:18 PM, metalliandy
wrote:

> Hey everyone,
>
> I want to propose a change the default margin value that is currently
> used when baking textures.
>
> The current margin of 2px is no where near enough and really doesn't
> help anyone due to the fact that it only is enough for the initial baked
> texture and not for any further mip levels that may be needed. As I'm
> sure some of you may be aware, you need at least 1px of margin per UV
> island to be correct for each mip map level as the texture is resized
> down, in order to stop the background colour from bleeding into the UV
> islands.
> I would recommend using a value of 16px as the new default as this would
> allow for 3 mip levels in addition to the initial bake, as long as the
> background colour is correct) which should be enough in most cases as
> the texture is resized down (16px>8px>4px>2px).
> Ideally of course we would set the margin so high that there is actually
> no background colour, but I don't think that many people would go for
> that as some feel that it makes the texture look messy, however
> irrelevant this may be, some people do care about how their textures
> look even if you will never see margin on the final mesh. ;)
>
> Please take a look at the link below for an example of what an incorrect
> margin value can look like when viewed on your mesh.
>
> http://blenderartists.org/forum/showthread.php?279870-seams-artifacts-with-tangent-normal-map-in-blender-and-unity
>
> For clarification, this is applicable to all baked textures, not just
> normal maps
>
>
> Cheers,
>
> -Andy
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-02-23 Thread Sean Olson
+1 from me too - I always bump that level up to a min of 16.  I could see
less if your UV's were really packed in tight, but 16 or higher usually is
what does the trick for killing nasty seams for me.  One less thing to
worry about for most cases would be great.

-Sean


On Sat, Feb 23, 2013 at 11:01 AM, Morten Mikkelsen wrote:

> I agree completely. I think the default of 2 might have been set by someone
> who
> didn't take mip levels into account. To be honest I generally use 32 or 64
> as margin
> depending on texture size (larger texture means more mips).
>
> But I suppose 16 as default which I think is also what it is in xNormal
> seems reasonable.
>
> At the very least I'll echo that 2 is no good :) The background color will
> bleed into the subsequent mip levels
> too quickly.
>
> Cheers,
>
> Morten.
>
>
>
>
>
> On Fri, Feb 22, 2013 at 9:18 PM, metalliandy
> wrote:
>
> > Hey everyone,
> >
> > I want to propose a change the default margin value that is currently
> > used when baking textures.
> >
> > The current margin of 2px is no where near enough and really doesn't
> > help anyone due to the fact that it only is enough for the initial baked
> > texture and not for any further mip levels that may be needed. As I'm
> > sure some of you may be aware, you need at least 1px of margin per UV
> > island to be correct for each mip map level as the texture is resized
> > down, in order to stop the background colour from bleeding into the UV
> > islands.
> > I would recommend using a value of 16px as the new default as this would
> > allow for 3 mip levels in addition to the initial bake, as long as the
> > background colour is correct) which should be enough in most cases as
> > the texture is resized down (16px>8px>4px>2px).
> > Ideally of course we would set the margin so high that there is actually
> > no background colour, but I don't think that many people would go for
> > that as some feel that it makes the texture look messy, however
> > irrelevant this may be, some people do care about how their textures
> > look even if you will never see margin on the final mesh. ;)
> >
> > Please take a look at the link below for an example of what an incorrect
> > margin value can look like when viewed on your mesh.
> >
> >
> http://blenderartists.org/forum/showthread.php?279870-seams-artifacts-with-tangent-normal-map-in-blender-and-unity
> >
> > For clarification, this is applicable to all baked textures, not just
> > normal maps
> >
> >
> > Cheers,
> >
> > -Andy
> > ___
> > Bf-committers mailing list
> > Bf-committers@blender.org
> > http://lists.blender.org/mailman/listinfo/bf-committers
> >
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
||-- Instant Messengers --
|| ICQ at 11133295
|| AIM at shatterstar98
||  MSN Messenger at shatte...@hotmail.com
||  Yahoo Y! at the_7th_samuri
||--
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-02-23 Thread Knapp
On Sat, Feb 23, 2013 at 8:30 PM, Sean Olson  wrote:
> +1 from me too - I always bump that level up to a min of 16.  I could see
> less if your UV's were really packed in tight, but 16 or higher usually is
> what does the trick for killing nasty seams for me.  One less thing to
> worry about for most cases would be great.
>
> -Sean

Where do you set that?


-- 
Douglas E Knapp

Creative Commons Film Group, Helping people make open source movies
with open source software!
http://douglas.bespin.org/CommonsFilmGroup/phpBB3/index.php

Massage in Gelsenkirchen-Buer:
http://douglas.bespin.org/tcm/ztab1.htm
Please link to me and trade links with me!

Open Source Sci-Fi mmoRPG Game project.
http://sf-journey-creations.wikispot.org/Front_Page
http://code.google.com/p/perspectiveproject/
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-02-23 Thread metalliandy...@googlemail.com
Bake panel> Margin #px :)

On 23 Feb 2013, at 21:24, Knapp  wrote:

> On Sat, Feb 23, 2013 at 8:30 PM, Sean Olson  wrote:
>> +1 from me too - I always bump that level up to a min of 16.  I could see
>> less if your UV's were really packed in tight, but 16 or higher usually is
>> what does the trick for killing nasty seams for me.  One less thing to
>> worry about for most cases would be great.
>> 
>> -Sean
> 
> Where do you set that?
> 
> 
> -- 
> Douglas E Knapp
> 
> Creative Commons Film Group, Helping people make open source movies
> with open source software!
> http://douglas.bespin.org/CommonsFilmGroup/phpBB3/index.php
> 
> Massage in Gelsenkirchen-Buer:
> http://douglas.bespin.org/tcm/ztab1.htm
> Please link to me and trade links with me!
> 
> Open Source Sci-Fi mmoRPG Game project.
> http://sf-journey-creations.wikispot.org/Front_Page
> http://code.google.com/p/perspectiveproject/
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-02-24 Thread Knapp
On Sun, Feb 24, 2013 at 1:17 AM, metalliandy...@googlemail.com
 wrote:
> Bake panel> Margin #px :)
>
> On 23 Feb 2013, at 21:24, Knapp  wrote:
>
>> On Sat, Feb 23, 2013 at 8:30 PM, Sean Olson  wrote:
>>> +1 from me too - I always bump that level up to a min of 16.  I could see
>>> less if your UV's were really packed in tight, but 16 or higher usually is
>>> what does the trick for killing nasty seams for me.  One less thing to
>>> worry about for most cases would be great.
>>>
>>> -Sean
>>
>> Where do you set that?
>>
>>
>> --
>> Douglas E Knapp

Ah, thanks. I see my problem. I have been only working in cycles for
some time but this panel only shows up with internal render. PS
someone working the manual might want to point that fact out.

-- 
Douglas E Knapp

Creative Commons Film Group, Helping people make open source movies
with open source software!
http://douglas.bespin.org/CommonsFilmGroup/phpBB3/index.php

Massage in Gelsenkirchen-Buer:
http://douglas.bespin.org/tcm/ztab1.htm
Please link to me and trade links with me!

Open Source Sci-Fi mmoRPG Game project.
http://sf-journey-creations.wikispot.org/Front_Page
http://code.google.com/p/perspectiveproject/
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-02-24 Thread Jonathan Williamson
+1 for the increased default margin as well from me. 

On Feb 24, 2013, at 3:29 AM, Knapp  wrote:

> On Sun, Feb 24, 2013 at 1:17 AM, metalliandy...@googlemail.com
>  wrote:
>> Bake panel> Margin #px :)
>> 
>> On 23 Feb 2013, at 21:24, Knapp  wrote:
>> 
>>> On Sat, Feb 23, 2013 at 8:30 PM, Sean Olson  wrote:
 +1 from me too - I always bump that level up to a min of 16.  I could see
 less if your UV's were really packed in tight, but 16 or higher usually is
 what does the trick for killing nasty seams for me.  One less thing to
 worry about for most cases would be great.
 
 -Sean
>>> 
>>> Where do you set that?
>>> 
>>> 
>>> --
>>> Douglas E Knapp
> 
> Ah, thanks. I see my problem. I have been only working in cycles for
> some time but this panel only shows up with internal render. PS
> someone working the manual might want to point that fact out.
> 
> -- 
> Douglas E Knapp
> 
> Creative Commons Film Group, Helping people make open source movies
> with open source software!
> http://douglas.bespin.org/CommonsFilmGroup/phpBB3/index.php
> 
> Massage in Gelsenkirchen-Buer:
> http://douglas.bespin.org/tcm/ztab1.htm
> Please link to me and trade links with me!
> 
> Open Source Sci-Fi mmoRPG Game project.
> http://sf-journey-creations.wikispot.org/Front_Page
> http://code.google.com/p/perspectiveproject/
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-03-03 Thread Antony Riakiotakis
This is trivial but will require yet another version patch. If others
agree I could commit it wit h a value of 16.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-03-03 Thread Morten Mikkelsen
Go for it! :)




On Sun, Mar 3, 2013 at 7:01 PM, Antony Riakiotakis  wrote:

> This is trivial but will require yet another version patch. If others
> agree I could commit it wit h a value of 16.
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-03-03 Thread Campbell Barton
On Mon, Mar 4, 2013 at 3:32 PM, Morten Mikkelsen  wrote:
> Go for it! :)
>
>
>
>
> On Sun, Mar 3, 2013 at 7:01 PM, Antony Riakiotakis  wrote:
>
>> This is trivial but will require yet another version patch. If others
>> agree I could commit it wit h a value of 16.

Why version patch?, old files can keep their margin.
Just update scene.c's bake_filter for newly added scenes,
rna_scene.c's default and startup.blend.

-- 
- Campbell
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Proposed default margin increase for baked textures

2013-03-04 Thread metalliandy
Awesome! Thanks!

-Andy
On 04/03/2013 04:35, Campbell Barton wrote:
> On Mon, Mar 4, 2013 at 3:32 PM, Morten Mikkelsen  wrote:
>> Go for it! :)
>>
>>
>>
>>
>> On Sun, Mar 3, 2013 at 7:01 PM, Antony Riakiotakis  wrote:
>>
>>> This is trivial but will require yet another version patch. If others
>>> agree I could commit it wit h a value of 16.
> Why version patch?, old files can keep their margin.
> Just update scene.c's bake_filter for newly added scenes,
> rna_scene.c's default and startup.blend.
>

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers