transparent sprite contour

transparent sprite contour

Postby ikam » Wednesday, 03.October 2012, 22:33

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
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: transparent sprite contour

Postby ikam » Thursday, 04.October 2012, 13:21

it works with this method.
I think it should works with every compatible image (png 8 bits - RVB - not entrelaced)
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: transparent sprite contour

Postby erbsen » Thursday, 04.October 2012, 13:50

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.
You do not have the required permissions to view the files attached to this post.
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: transparent sprite contour

Postby ikam » Thursday, 04.October 2012, 14:21

yes this was the problem too. I fixed colored pixels around the figure with the nearest filter but it doesn't work here.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: transparent sprite contour

Postby ikam » Thursday, 04.October 2012, 14:47

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)
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: transparent sprite contour

Postby Skinnytorus » Thursday, 04.October 2012, 15:19

Hey, guys.
I can't open hypergokuu.png. It says wrong format. Any tricks how to open it?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: transparent sprite contour

Postby ikam » Thursday, 04.October 2012, 18:01

nop, maybe it's a bad download, click left on image and save it.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: transparent sprite contour

Postby Skinnytorus » Friday, 05.October 2012, 07:57

Ahh. It worked. I shouldn't have doubleclicked the image before downloading it. Thanks.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46


Return to Support



Who is online

Users browsing this forum: No registered users and 2 guests

cron