StarlingGraphics / Starling-Extension-Graphics

flash.display.Graphics style extension for the Starling Flash GPU rendering framework
https://github.com/StarlingGraphics/Starling-Extension-Graphics/wiki
MIT License
282 stars 89 forks source link

Weird beginTextureFill results #114

Open dholem opened 10 years ago

dholem commented 10 years ago

First of all I just wanted to say that I love this extension! I just started using it today and I'm blown away by the possibilities these tools offer.

I'm trying to use a texture to fill the circle and I'm getting strange results:

var shape:Shape = new Shape(); shape.graphics.beginTextureFill(Texture.fromEmbeddedAsset(myPortrait, false)); shape.graphics.drawCircle(100,100,100); shape.graphics.endFill(); shape.x = 25; shape.y = 25; addChild(shape);

I end up with this:

starling-texturefillproblem

IonSwitz commented 10 years ago

That is very odd, as I am assuming the "myPortrait" asset doesnt look like that? Is it a proper Power of Two texture? if not, try with POT textures. Is it an atlas? If it is, try without an atlas.