three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Unusual dark anti-alias when using canvas as texture

Open WallHackJack opened this issue 13 years ago • 2 comments

Hello,

Here is an image of my issue:

Zoomed: capture

Unzoomed: capture2

I am generating a plane mesh and a canvas of the same size and I apply the canvas to the mesh using a texture mapped to the canvas. I generate the text in the canvas, and if I look at the contents of the canvas I can see everything is perfectly clear and not anti-aliased. When rendered by the WebGLRenderer, however, the text begins to antialias. I understand that this antialias can be the product of many complicated things and hard to control, but what is annoying about this situation is that the white text is antialiasing to a darker color, and not mixing correctly with the blue behind or borrowing colors from the texture.

Is there anyway to set the antialiasing on a texture like this to be more dynamic? Otherwise, is it possible to change what color it is blurring towards? In this case it's getting darker so it looks like it's trying to mix with a black, if I could set this to white some how?

Thanks

WallHackJack avatar Aug 27 '13 14:08 WallHackJack

if anyone has an answer, this problem bothered me too and I would like to have some insight on this, too :)

GuyGood avatar Aug 30 '13 08:08 GuyGood

As stated in the guidelines, help requests should be directed to stackoverflow. This board is for bugs or feature requests.

mrdoob avatar Sep 03 '13 23:09 mrdoob