Blending and transparent overlays
Arekkusu,
I just wanted to point out that, in playing with Apple's tex combine lab, I was able to get both colour and level of transparency to change dynamically using a texture and primary colour in the first texture unit, so that I could get it to draw the "texture 0" over the rock texture. If the text colour had been black, changing the primary colour's value allowed for greater and lesser opacity when combined with the image texture (in the second texture unit) using the modulate function.
That program is kick ass. Now I understand DOT3 a lot better than I did before, just by experimenting until I was able to figure out how to make the light on the rocks appear to change direction and intensity just by changing the colour that was used in the DOT3 operation.
I just wanted to point out that, in playing with Apple's tex combine lab, I was able to get both colour and level of transparency to change dynamically using a texture and primary colour in the first texture unit, so that I could get it to draw the "texture 0" over the rock texture. If the text colour had been black, changing the primary colour's value allowed for greater and lesser opacity when combined with the image texture (in the second texture unit) using the modulate function.
That program is kick ass. Now I understand DOT3 a lot better than I did before, just by experimenting until I was able to figure out how to make the light on the rocks appear to change direction and intensity just by changing the colour that was used in the DOT3 operation.
The corresponding internal formats are GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGBA and GL_RGBA.
The way to make texture uploads fast is to match the card's actual internal format to your own format. Since you don't know what actual internal formats the card will use (beyond BGRA/UNSIGNED_INT_8_8_8_8_REV), it's experimentation from there on in. I'm pretty sure I recall from somewhere that GeForces store everything either as BGRA/UNSIGNED_INT_8_8_8_8_REV or as LUMINANCE_ALPHA internally, but that Mac drivers won't take advantage of the latter. I don't know if this has changed at all.
Client Storage may well slow down texture uploads if you don't match the internal format of the card, since normally your texture would be copied to driver memory and put in the appropriate format for a quick upload, and client storage avoids this copy.
The way to make texture uploads fast is to match the card's actual internal format to your own format. Since you don't know what actual internal formats the card will use (beyond BGRA/UNSIGNED_INT_8_8_8_8_REV), it's experimentation from there on in. I'm pretty sure I recall from somewhere that GeForces store everything either as BGRA/UNSIGNED_INT_8_8_8_8_REV or as LUMINANCE_ALPHA internally, but that Mac drivers won't take advantage of the latter. I don't know if this has changed at all.
Client Storage may well slow down texture uploads if you don't match the internal format of the card, since normally your texture would be copied to driver memory and put in the appropriate format for a quick upload, and client storage avoids this copy.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Transparent textures | kordeul | 2 | 2,149 |
Aug 27, 2007 01:38 AM Last Post: kordeul |
|
| general blending versus texture blending questions | WhatMeWorry | 2 | 4,248 |
Dec 7, 2006 02:43 PM Last Post: arekkusu |
|
| OpenGL, SDL, and Transparent Bitmaps | RyanA | 4 | 3,353 |
Jun 26, 2006 04:26 PM Last Post: RyanA |
|
| About transparent colors un textures | valle | 2 | 2,474 |
Oct 26, 2004 09:52 AM Last Post: valle |
|
| "boingX" (transparent ogl) under carbon | GioFX | 2 | 2,894 |
Jun 29, 2004 09:08 AM Last Post: GioFX |
|

