[Bf-blender-cvs] CVS commit: blender/source/blender/makesdna DNA_scene_types.h blender/source/blender/src buttons_editing.c header_view3d.c sculptmode.c space.c
Nicholas Bishop
nicholasbishop at gmail.com
Fri Dec 29 09:40:20 CET 2006
nicholasbishop (Nicholas Bishop) 2006/12/29 09:40:20 CET
Modified files:
blender/source/blender/makesdna DNA_scene_types.h
blender/source/blender/src buttons_editing.c header_view3d.c
sculptmode.c space.c
Log:
Sort-of-fix for bug #5382, sculpt - image/texture brush heavily distorted when not sculpting flat relative to screen
Fix for bug #5248, sculpt - mirrored tiled texture odd results
Changed the algorithm used for projecting the brush texture onto the model. The old algorithm was never implemented properly, causing increasingly
wonky distortions of the brush as it got farther away from parallel to the screen. The new system uses the screen coords of vertices, the obvious
advantage being that 2D screen coords can be mapped quite easily to 2D texture coords. The main disadvantage of this method is that there are still
distortions in the brush as the surface beneath it becomes less parallel the screen. These distortions, however, are not as bad as the old ones
because they are predictable from the user's perspective. (It's analogous to a movie being projected onto a sphere; if the viewer is in front of the
sphere there is no apparent distortion, but from the side the movie appears stretched and distorted.)
This may still be worth revisiting after the release.
Revision Changes Path
1.100 +10 -6 blender/source/blender/makesdna/DNA_scene_types.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/makesdna/DNA_scene_types.h.diff?r1=1.99&r2=1.100&cvsroot=bf-blender>
1.324 +4 -4 blender/source/blender/src/buttons_editing.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/buttons_editing.c.diff?r1=1.323&r2=1.324&cvsroot=bf-blender>
1.213 +7 -7 blender/source/blender/src/header_view3d.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/header_view3d.c.diff?r1=1.212&r2=1.213&cvsroot=bf-blender>
1.44 +62 -93 blender/source/blender/src/sculptmode.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/sculptmode.c.diff?r1=1.43&r2=1.44&cvsroot=bf-blender>
1.433 +4 -4 blender/source/blender/src/space.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/space.c.diff?r1=1.432&r2=1.433&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list