Alpha Masking Problem
Hi,
is there a way, to make sharper corners for alphamasking?
The black pixels dosent looks good :-(
is there a way, to make sharper corners for alphamasking?
The black pixels dosent looks good :-(
arekkusu Wrote:Improved Alpha-Tested Magniï¬cation
thanks, for this.
Is there an easy way, to implement this with OpenGL?
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.
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.
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 ;-) )
Also for that texture you could rotate it so that the edges are parallel with the image edges.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| OpenGL Alpha Channel Problem | Moganza | 1 | 1,453 |
Jan 19, 2013 08:25 AM Last Post: sealfin |
|
| OpenGL ES Texture Masking | airfire | 5 | 11,504 |
Nov 14, 2012 09:36 AM Last Post: toanNguyen |
|
| OpenGL ES Texture Masking | dalasjoe sin | 0 | 3,157 |
Apr 13, 2012 12:17 AM Last Post: dalasjoe sin |
|
| Masking without a stencil buffer? | Bachus | 12 | 10,772 |
Sep 2, 2010 02:42 PM Last Post: Skorche |
|
| Masking | Jake | 12 | 4,467 |
Jun 29, 2005 02:04 PM Last Post: TomorrowPlusX |
|

