|
|
Set Texture Alpha
Hi,
How can I set the alpha value of a texture without setting each
pixel's alpha? Any OpenGL functions can do that? Thank you
f.f
|
|
0
|
|
|
|
Reply
|
f
|
10/26/2004 8:14:07 AM |
|
f.f wrote:
> Hi,
>
> How can I set the alpha value of a texture without setting each
> pixel's alpha? Any OpenGL functions can do that? Thank you
>
Textures are combined with the underlying
polygon. Set alpha in the polygon.
--
<\___/> For email, remove my socks.
/ O O \
\_____/ FTB. The Cheat is not dead!
|
|
0
|
|
|
|
Reply
|
fungus
|
10/26/2004 10:23:46 AM
|
|
fungus wrote:
> f.f wrote:
>
>> Hi,
>>
>> How can I set the alpha value of a texture without setting each
>> pixel's alpha? Any OpenGL functions can do that? Thank you
>>
>
> Textures are combined with the underlying
> polygon. Set alpha in the polygon.
>
>
>
Thanks, let me try.
f.f
|
|
0
|
|
|
|
Reply
|
f
|
10/26/2004 3:31:51 PM
|
|
Another option would be to use another texture just for alpha channel (and
use one of the multitexturing functions which I'm still trying to figure
out). You can neatly combine both (texture and alpha) in a single TGA file
for instance.
--
Adam Kadlubek | uz - at - gsi - dot - pl
|
|
0
|
|
|
|
Reply
|
Adam
|
10/28/2004 7:42:35 PM
|
|
|
3 Replies
150 Views
(page loaded in 0.059 seconds)
Similiar Articles: Alpha with Textures - comp.graphics.api.openglDXT textures - comp.graphics.api.opengl Why? because I have many non-DDS images without alpha channels and currently, when I load the texture, I set the alpha based on my ... Transparency of BMP image pixels - comp.graphics.api.opengl ...( anyway I can set those alpha values at BMP loading time to fix it ) > Now, depending on the texture function, the polygon alpha will be ignored, > added to the texture's ... Rendering to shadow map with alpha testing on ATI cards - comp ...This is where it gets a bit weird: I am using a texture where about half the pixels have alpha < 0.5 and the other half > 0.5. If I set the alpha test function to GL ... Texture memory usage - comp.graphics.api.openglI do the following (for RGB 2D textures): { GLint red, green, blue, alpha, width, height; g... ... If you're concernd about swapping, why not just not set the heap ... Antialiasing with transparent background - comp.graphics.api ...First, I set the background totally transparent (I need this ... then I *think* you can use glBlendFunc(GL_ONE_MINUS_DST_ALPHA, GL_ONE) when you use the texture. Volume Rendering - comp.graphics.api.opengl... are more developed than others but a short list is as follows: 2D and 3D texture, alpha ... As the result any custom 3D processing of data set will require data set ... Another Transparency Problem using png - comp.graphics.api.opengl ...You have to set up sources, operands and functions (up to 3, i believe ... GL_TEXTURE_ENV, GL_COMBINE_ALPHA, GL_REPLACE); glTexEnvi(GL_TEXTURE_ENV, GL_SOURCE0_ALPHA, GL ... volumetric textures - comp.graphics.api.openglI would stick with PNG -- it compresses very well (lossless) and supports alpha ... If none of the above applies, you are probably better off with a 2D texture or set of 2D ... arb fragment shader fog program - comp.graphics.api.opengl ...... shader to compute a DRR # # The gradient and alpha values are stored in texture[0]. ... graphics.api.opengl You can use the ARB_depth_texture extension to get ... after I've set ... Changing brightness and Contrast for pixels having intensities ...... would really be great if you give ur comments on this: // Set ... GL_OPERAND0_ALPHA, GL_SRC_ALPHA); glTexEnvi(GL_TEXTURE_ENV, GL_SOURCE1_ALPHA, GL_TEXTURE ... Texture Alpha - Microsoft Corporation: Software, Smartphones ...Alpha data also can be supplied by textures. The texture must first be created, and then the alpha values added to it. To render with the texture, set it to a texture ... Texture Alpha (Direct3D 9) - Microsoft Corporation: Software ...First, the texture must be created. Second, the alpha values must be added to the texture. To render with the texture, set the texture to a texture stage and ... 7/20/2012 12:31:27 PM
|
|
|
|
|
|
|
|
|