Closed Bug 306755 Opened 19 years ago Closed 19 years ago

Anti-aliased/semi transparent pixels have random colors when rendered on the canvas

Categories

(Core :: Graphics: Canvas2D, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 293353

People

(Reporter: kamiel, Unassigned)

Details

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050901 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050901 Firefox/1.6a1

Anti aliasing of elements on the canvas is inconsistent. In some cases it does
but in most cases it doesn't.
On my machine the demo ROC showed in his xtech presentation works great and I
don't see anything going wrong with anti-aliasing. When I change the script
slightly the semi transparent pixels produce random colors.
All other elements I've drawn on the canvas don't get correct anti-aliasing and
I've never seen this working properly in firefox (safari on the mac works great)

Reproducible: Always

Steps to Reproduce:
see attachment testcase

Actual Results:  
see attachments

Expected Results:  
render correct anti-aliased and semi-transparent pixels
Attached file Testcase
The result I get from the testcase
Similar rendering problems when using paths
This is the ROC demo which works correctly on my machine
Flags: blocking1.8b5?
this test case rendered correctly for me using the 1.5 branch builds. The
reporter was using trunk builds. This could be an invalid bug for the 1.5 branch.
Which version of Visual Studio are you building with?
It seems I mixed up some of the versions I was looking at (I've several
installed). As far is I can tell the testcase above works on the branch build:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050901
Firefox/1.0+

I think this bug can be closed/removed. Sorry for the trouble folks.
not a branch  bug. unsetting blocker request.
Flags: blocking1.8b5?
CONFIRM - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1)
Gecko/20050904 Firefox/1.6a1

I actually came by this bug when I retested a canvas example I made:

http://www.agustinfernandez.com.ar/proyectos/canvas/.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'll ask again:

> Which version of Visual Studio are you building with?

Anything less than VC71 will build cairo incorrectly.
Vladimir,

I don't. I just use the nightly builds.
Ah. The nightly builds are still built with VC6.1; that probably won't change
until Deerk Park ships and people have time to do the infrastructure work.  If
you have access to a linux or OSX machine, those builds should be fine.
Just going to dupe this unless proven otherwise.

Reporter, if you can still reproduce this then let us know.


*** This bug has been marked as a duplicate of 293353 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
I tested it again with both the testcase and the page I mentioned and it still shows random colors (with firefox 1.5 it works correctly). Bug 293353 seems to be different since its testcase now works as expected.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
I forgot to mention, the build I used is today's nightly:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051206 Firefox/1.6a1
This is still a dup of 293353; the bug is bad generated assembly code that's only triggered in some cases; enough other things could have changed in cairo on trunk to not trigger the bad codepaths with canvas to make the testcase in 293353 work.

In any case, trunk nightly builds will have a broken build until we do some license checking and upgrade the build machines to VC8.

*** This bug has been marked as a duplicate of 293353 ***
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: