Border on images.

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Border on images.

Postby Shaka » Sun Feb 14, 2010 11:18 am

Hi!

I'm using OpenGL for my 2D framework and I've noticed that textures with transparent areas get an ugly black border around the edges. Has any of you encountered this problem? I'm using PNGs.

Regards/Per
Shaka
Developer
Developer
 
Posts: 44
Joined: Fri Aug 28, 2009 3:01 pm

Top

Postby Shaka » Sun Feb 14, 2010 7:18 pm

Hmm, seems like it's a texture coordinate artifact. I translate texture coordinates before rendering them (if there are animations on the sprites) and it seems like there's some bleeding. I have an idea on how I can fix it, will post the solution here if it works.....ehrm if anyone's interested :P
Shaka
Developer
Developer
 
Posts: 44
Joined: Fri Aug 28, 2009 3:01 pm

Postby zorro » Mon Feb 15, 2010 9:23 pm

Are you getting the border around the whole image (a rectangle) or around the transparent areas?
User avatar
zorro
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Mon Aug 10, 2009 3:11 pm
Location: Romania

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests