M
mu112
Guest
Hello, I need help with a problem with rendering swf vector sprites. It happens when a rotation and/or resizing is applied. In a screenshot below you can see clearly visible thin black lines going through the diagonals of some of the squares. Source swf image does not containt these lines of course so they shouldnt be there. When testing I found out that it has something to do with AA because when I turned it off the lines aren't there. But turning off AA isn't an option because then the rotated squares have really ugly lines.
Screenshot:
Source code for the example:
Interpolation have no effect on the problem. The sprite was created in Inkscape then saved as svg and then converted to swf with svg2swf. Original size of the sprite is 512x512px.
Thank you for any ideas. If you need more information just ask, please.
Screenshot:
Source code for the example:
Code:
texture_set_interpolation(true);
display_reset(8, true);
var cycle;
for(cycle=1;cycle<=100;cycle++){
with(instance_create(random(1600), random(900), obj_test)){
image_xscale=random(0.2)+0.1;
image_yscale=image_xscale;
image_angle=random(360);
}
}
Thank you for any ideas. If you need more information just ask, please.