www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: yindroid on November 19, 2011, 04:04:37 pm

Title: [solved] Texture artifact
Post by: yindroid on November 19, 2011, 04:04:37 pm
Hi there!
So, there is my problem. On my overlay i'm adding texture(512x512). Then I have to strech overlay to 512x600. After this artifact appears as horizontal black line. I tried to use texture with resolution 512x1024 and it works great, but it is waste of resources...

Thanks in advance
Title: Re: Texture artifact
Post by: EgonOlsen on November 20, 2011, 01:03:04 am
Screen shot?
Title: Re: Texture artifact
Post by: yindroid on November 20, 2011, 06:14:49 pm
I guess it was my fault... when useing texture with alpha chanel, "colored" pixels must not touch the texture's edges!
Title: Re: [solved] Texture artifact
Post by: EgonOlsen on November 20, 2011, 11:26:14 pm
You might also want to look at this: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#enableClamping() (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#enableClamping())