This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8396 - clip() is fine, but why isn't there something like a stencil buffer? It's similar to clip except you turn on the stencil then render an image and only where you rendered the image are pixels rendered to the canvas.
Summary: clip() is fine, but why isn't there something like a stencil buffer? It's sim...
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML Canvas 2D Context (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 enhancement
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: canvas RFE
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-29 10:42 UTC by contributor
Modified: 2012-02-29 22:30 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2009-11-29 10:42:21 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#complex-shapes-(paths)

Comment:
clip() is fine, but why isn't there something like a stencil buffer? It's similar to clip except you  turn on the stencil then render an image and only where you rendered the image are pixels rendered to the canvas.

Posted from: 75.5.229.136
Comment 1 Ian 'Hixie' Hickson 2010-01-05 11:50:39 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: no change
Rationale: There's no particular reason that there's no stencil buffer, it's just that we had to draw the line somewhere and it was drawn at what Apple initially implemented. I imagine we'll add something like a stencil buffer in some future version, if there is enough demand. We have to get what's specced now implemented before we can go ahead and add more stuff. 
Comment 2 Ian 'Hixie' Hickson 2012-02-29 00:04:35 UTC
Can you elaborate on what use case you have in mind here exactly? What you describe in comment 0 sounds like it could be done using just clip(). Stencil buffers as described in wikipedia have a variety of use cases but it's not clear which would be really that applicable here.
Comment 3 Ian 'Hixie' Hickson 2012-02-29 22:30:35 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: please see comment 2.