Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#32643] Masking painting bug with multi-res
Date:
2012-09-24 12:36
Priority:
3
State:
Closed
Submitted by:
Campbell Barton (
campbellbarton
)
Assigned to:
Nicholas Bishop (nicholasbishop)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Masking painting bug with multi-res
Detailed description
when painting mask on multi-res with higher resolutious there is a strange glitch.
painting one point ends up effecting many others.
See attached blend file, Paint over the 'X'
See the top half of the plane is darker from painting once once the bottom.
Followup
Message
Date
: 2012-09-24 12:40
Sender
:
Campbell Barton
Note, if you delete one level of multi-res, then paint mask (which works fine), then subdivide again - the strange top-half dark area comes back.
Date
: 2012-09-24 14:08
Sender
:
Nicholas Bishop
Couldn't confirm this on latest master, although I did find the mask is drawing way darker than it did in 2.64rc1 (probably due to the diffuse material color change from Sergey?)
Will investigate this further after work.
Date
: 2012-09-24 14:21
Sender
:
Sergey Sharybin
Nick, yes since diffuse color commit mask became darker. I simply used diffuse_color * (1.0f - mask_value). If you think it's not completely nice, we can scale mask_value to 0.25 .. 1.0 to match both pre-mask diffuse color for non-masked regions and match original mask color for completely masked area before my changes.
Date
: 2012-09-25 02:41
Sender
:
Nicholas Bishop
Sergey: yes, I think it'd be good to scale the color. Otherwise it goes quickly to black and the surface of the mesh becomes impossible to see.
Campbell: played around with this a bit more, but still couldn't reproduce the bug on the file you provided. Tested latest trunk on Ubuntu 64-bit with Radeon/Gallium. Maybe a driver-specific issue?
Date
: 2012-09-26 07:40
Sender
:
Campbell Barton
tested with Mesa (SWRAST driver), (latest GIT build), and it gives the same problem - see attached screenshot.
Date
: 2012-09-27 05:09
Sender
:
Nicholas Bishop
Was able to reproduce this on a different computer, only with VBO off.
The really weird thing is that if you mask it and get that dark area up top, then go into edit mode and rotate 45 degrees, then back to sculpt mode, the dark region doesn't rotate with the mesh -- it stays above the X axis creating a jagged region of masked polys.
Really confused by this, but at least I can reproduce it here now.
Date
: 2012-09-29 04:34
Sender
:
Nicholas Bishop
Bisected to find the bug was introduced by the recent diffuse colors commit r50827,
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50827
Investigating further...
Date
: 2012-09-30 17:08
Sender
:
Sergey Sharybin
Reverted buggy commit. Proper fix for diffuse color will go after 2.64 release.
Attached Files:
Name
Date
Download
paint_mask_bug.blend
2012-09-24 12:36
Download
paint_mask_bug.png
2012-09-24 12:36
Download
paint_mask_bug_mesa.png
2012-09-26 07:40
Download
Changes:
Field
Old Value
Date
By
status_id
Open
2012-09-30 17:08
nazgul
close_date
None
2012-09-30 17:08
nazgul
Status
Confirmed
2012-09-30 17:08
nazgul
Status
Investigate
2012-09-27 05:09
nicholasbishop
Status
New
2012-09-26 07:40
campbellbarton
File Added
22176: paint_mask_bug_mesa.png
2012-09-26 07:40
campbellbarton
File Added
22152: paint_mask_bug.png
2012-09-24 12:36
campbellbarton
File Added
22151: paint_mask_bug.blend
2012-09-24 12:36
campbellbarton