texture paint + zoom #34665
%%%--- Operating System, Graphics card ---
Win7_x64 , intel HD 4000 , lenovo Y580
- Blender version with error, and version that worked ---
- Short description of error ---
When zoomed in i cant paint in texture paint mode
- Steps for others to reproduce the error (preferably based on attached .blend file) ---
just see a blend file and try to paint than zoom out
%%%This is an old bug, I remember stumbling onto it often. Time to squash it.
Campbel, I see that the issue is the use of PROJ_VERT_CULL for face masking based on vertex positions alone. This is problematic and we should ideally use the face or interpolated normal for that, as is indeed is done in project_paint_uvpixel_mask. If we do it based on vertices alone, faces will be culled where they shouldn't. Would you recommend doing it that way?%%%
%%%This is known limitation since projection paint was added, noted in wiki docs (realize these docs are insubstantial but they will have to do)
%%%I was looking into this last night. The only solution I came up with is somewhat more expensive on startup of a stroke and is more or less this: Project the normals in view space and check if both the x/y projected vector components change sign between face vertices. If they do that means that there probably exists a point within the polygon where the normal will be valid for painting and the polygon should not be discarded.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?