Page 1 of 1

transparent sprite contour

PostPosted: Wednesday, 03.October 2012, 22:33
by ikam
Hi

I'm trying to make a little anim using sprites and animated textures. My problem is to delete sprite backgroud color directly in wz (in fact, how to create a mask from a texture), any idea ?

I know it's possible with importing an another mask image, but I would like to do it without.

here, It almost done but there is some small holes.

thanks

Re: transparent sprite contour

PostPosted: Thursday, 04.October 2012, 13:21
by ikam
it works with this method.
I think it should works with every compatible image (png 8 bits - RVB - not entrelaced)

Re: transparent sprite contour

PostPosted: Thursday, 04.October 2012, 13:50
by erbsen
Great solution and explanation. =D>

There are colored pixels around the figure, i guess they are part of the problem but i´m no expert.
Here is my approach.

Re: transparent sprite contour

PostPosted: Thursday, 04.October 2012, 14:21
by ikam
yes this was the problem too. I fixed colored pixels around the figure with the nearest filter but it doesn't work here.

Re: transparent sprite contour

PostPosted: Thursday, 04.October 2012, 14:47
by ikam
just a little fix.
Loop was too big 64 instead of 4 (that's why time factor for vector0 is different between manually and auto for atlas part generation)

Re: transparent sprite contour

PostPosted: Thursday, 04.October 2012, 15:19
by Skinnytorus
Hey, guys.
I can't open hypergokuu.png. It says wrong format. Any tricks how to open it?

Re: transparent sprite contour

PostPosted: Thursday, 04.October 2012, 18:01
by ikam
nop, maybe it's a bad download, click left on image and save it.

Re: transparent sprite contour

PostPosted: Friday, 05.October 2012, 07:57
by Skinnytorus
Ahh. It worked. I shouldn't have doubleclicked the image before downloading it. Thanks.