Alpha Masking Problem

Apprentice
Posts: 9
Joined: 2010.02
Post: #1
Hi,
is there a way, to make sharper corners for alphamasking?
The black pixels dosent looks good :-(

[Image: alpha.tiff]
Quote this message in a reply
Sage
Posts: 1,234
Joined: 2002.10
Post: #2
Quote this message in a reply
Apprentice
Posts: 9
Joined: 2010.02
Post: #3
arekkusu Wrote:Improved Alpha-Tested Magnification

thanks, for this.
Is there an easy way, to implement this with OpenGL?
Quote this message in a reply
Member
Posts: 446
Joined: 2002.09
Post: #4
Try turning on both blending and testing, then adjusting the test value until you can see the smooth blended edge - assuming your alpha channel is smooth!

This hack can and will result in errors with overlapping surfaces if you don't draw back to front, but for sharp-edged alphas as in your screenshot these errors should be tolerable without sorting.
Quote this message in a reply
Apprentice
Posts: 9
Joined: 2010.02
Post: #5
Frank C. Wrote:Try turning on both blending and testing, then adjusting the test value until you can see the smooth blended edge - assuming your alpha channel is smooth!

This hack can and will result in errors with overlapping surfaces if you don't draw back to front, but for sharp-edged alphas as in your screenshot these errors should be tolerable without sorting.

Thanks,
it looks better with blending (not perfect, but ok ;-) )
Quote this message in a reply
Member
Posts: 283
Joined: 2006.05
Post: #6
Also for that texture you could rotate it so that the edges are parallel with the image edges.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL ES Texture Masking airfire 6 15,355 Mar 17, 2014 07:07 PM
Last Post: baioses
  OpenGL Alpha Channel Problem Moganza 1 3,299 Jan 19, 2013 08:25 AM
Last Post: sealfin
  OpenGL ES Texture Masking dalasjoe sin 0 3,952 Apr 13, 2012 12:17 AM
Last Post: dalasjoe sin
  Masking without a stencil buffer? Bachus 12 14,076 Sep 2, 2010 02:42 PM
Last Post: Skorche
  Masking Jake 12 5,011 Jun 29, 2005 02:04 PM
Last Post: TomorrowPlusX