[Bf-committers] Texture Paint brush's

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Sep 7 23:42:25 CEST 2006

Hey Campbell,

Campbell Barton wrote:
> Hey Brecht.
> Was just looking at the new brush tool, (nice work, so much faster)
> If you press "F" fakeuser button, it enables the meshes fake user.

Fixed in cvs now.

> One thing that would be realy nice is to use a texture brush, and have 
> the mouse intersection point as the input to offset the texture coords, 
> because at the moment the same texture is being repeated. (would be best 
> as an option)

There's code for such a feature already, with partial updates to the texture
pixels as the brush moves to keep it fast, just not enabled, needs some
finishing touches.

> Related topic, Im experementing with a  decal projection script
> http://members.iinet.net.au/%7Ecpbarton/test.png
> http://blenderartists.org/forum/showthread.php?t=76937
> if the paint tool could project the brush texture onto the mesh's image, 
> rather then finding the point of mouse intersection   and then painting 
> in 2d- It would remove the need for the above python script.

Yeah, projection painting would be neat of course, you're not exactly the
first one asking for that :).

The hard part seems detecting which pixels are visible, did you get that to
work, or are you just discarding based on the normal? One option is to use
a shadow mapping technique, but that has aliasing and rounding issues.
Though at least bodypaint and modo seem to do that, and suffer from the
same issues, so maybe it's acceptable.


More information about the Bf-committers mailing list