RayCaster example is missing a call to beginPath (thus broken in Firefox and latest WebKit)

RESOLVED FIXED

Status

RESOLVED FIXED
12 years ago
6 years ago

People

(Reporter: darin, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/418 (KHTML, like Gecko) Safari/417.9.3
Build Identifier: 

The example at <http://developer.mozilla.org/samples/raycaster/RayCaster.html> has a bug in it. In Safari 2.0 it shades the walls as it should, but it does not in Firefox nor in the latest TOT WebKit. The reason is that the drawSliver function does not call beginPath, so it just keeps adding lines to one large path, overwriting itself.

Reported as a bug in WebKit as <http://bugzilla.opendarwin.org/show_bug.cgi?id=9607>.

Reproducible: Always

Actual Results:  
Walls appear to not be shaded.

Expected Results:  
Walls should look shaded as they do in Safari 2.0.
(Reporter)

Comment 1

12 years ago
Not sure I got the right component for this.

Comment 2

12 years ago
As far as i can figure out, this is the right component. Confirming that the behavior of RayCaster is wrong here as well.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 3

12 years ago
Ok it's the wrong product, moving it to the right one.
Component: Web Developer → Documentation Requests
Product: Documentation → Mozilla Developer Center
Assignee: web.developer → nobody
QA Contact: doc-request
Added beginPath() and closePath() calls to drawSliver().
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
(Assignee)

Updated

6 years ago
Component: Documentation Requests → Documentation
Product: Mozilla Developer Network → Mozilla Developer Network
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
You need to log in before you can comment on or make changes to this bug.