DescriptionThis patch adds an optional brush display mode that visualizes the intersection between the brush's sphere of influence and the mesh. The code is based off Jason Wilkins' GSoC branch.
The most significant change from the original code is that it does not require any copying or preservation of the GL depth buffer; instead the PBVH is used to partially redraw the necessary parts of the depth buffer. This could be a bit slower than making a copy of the depth buffer, but I think that relies too much on graphics cards/drivers behaving properly.
Unchanged, however, is a requirement on the stencil buffer. Currently the patch unconditionally adds the stencil buffer to the GL-initialization code for all platforms in GHOST. (I've only tested X11 here, the Mac and Win code I just copied over.) I'm not sure if this is considered safe, or if we should have a compile-time option, or a command-line startup option, or better run-time checking (i.e. if drawable request fails, create a new request without the stencil buffer bit.) Or some combination of these.
Patch Set 1 #
Total comments: 5
Patch Set 2 : Fix texture overlay and update comment #MessagesTotal messages: 7
|