Not drawing fully transparent
when I draw a textured poly that has fully transparent parts I get dithering. Am I doing something wrong or is there no way to get fully transparent textures?
---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Make sure the color channels of the transparent parts match the color channels of the surrounding opaque parts.
What's causing those dots? They must be in your texture...
What's causing those dots? They must be in your texture...
as far as I know, the dots are dithering.
for generating the texture here's my code:
for generating the texture here's my code:
Code:
[debugImage lockFocus];
[[[[NSColor whiteColor] colorWithAlphaComponent:0.0] colorUsingColorSpaceName:NSDeviceRGBColorSpace] set];
NSRectFill(NSMakeRect(0,0,size.width,size.height));
[debugImage unlockFocus];
...
[debugImage lockFocus];
[[text_view layoutManager] drawGlyphsForGlyphRange:NSMakeRange(0,1)
atPoint:NSMakePoint(image_offset.x,
image_offset.y +
[aFont boundingRectForFont].origin.y)];
[debugImage unlockFocus];---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Are you drawing to a 32-bit texture and rendering to a 16-bit screen on a Rage 128?
yes.
---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
LOL
I didn't expect to be right
The Rage 128's dithering is appalling. Try matching your texture depth to your screen depth.
I didn't expect to be right
The Rage 128's dithering is appalling. Try matching your texture depth to your screen depth.
I don't have my Rage 128 anymore, but it always seemed that dithering looked WAY better in OS 9 than it did in OS X. In OS 9 it seemed to be using a sort of random diffuse dither while OS X used a sort of pattern based dithering if you know what I mean.
Yuck, I guess I never noticed that on my family's G4, but then again I haven't really ever played openGL games under OSX.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
My issue is: should ALL pixels with 0.0 alpha be transparent? guh... I need a new mac.
---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Animstreet is now fully open. | mrbones | 0 | 2,307 |
Feb 24, 2011 07:05 PM Last Post: mrbones |
|
| Transparent textures | kordeul | 2 | 2,149 |
Aug 27, 2007 01:38 AM Last Post: kordeul |
|
| OpenGL, SDL, and Transparent Bitmaps | RyanA | 4 | 3,351 |
Jun 26, 2006 04:26 PM Last Post: RyanA |
|
| About transparent colors un textures | valle | 2 | 2,472 |
Oct 26, 2004 09:52 AM Last Post: valle |
|
| "boingX" (transparent ogl) under carbon | GioFX | 2 | 2,893 |
Jun 29, 2004 09:08 AM Last Post: GioFX |
|

