Questions tagged [alphablending]

Alpha blending is a convex combination of a translucent foreground color with a background color allowing for transparency effects.

562 questions
0
votes
1 answer

Alpha blending 2D sprites in 3D space on windows phone with Xna 4.0

Hey all I'm trying to make a 3d game in with 2d sprite characters. I'm loading my sprites as plane models from blender with textures already applied. I'm currently alphablending the sprites but it appears the meshes are only taking the background…
Charles Haro
  • 1,866
  • 3
  • 22
  • 36
0
votes
1 answer

Blender to Xna 4.0 windows 7.0 Alpha Blending Problems

I'm having trouble loading a textured model with alpha blending from blender to xna. On blender I know that the texture has the correct alpha values, but whenever I draw the model into my game the extra space that was supposed to be transparent is…
Charles Haro
  • 1,866
  • 3
  • 22
  • 36
0
votes
1 answer

Android Opengl-es glAlphaBlend() remove green from picture

I'm trying to figure out how to remove all green pixels of a picture i am rendering. I've already searched the web, but found nothing I can use. I know I probably have to use this function: gl.glEnable(GL10.GL_BLEND); …
0
votes
2 answers

Changing Alpha Value of OpenGL ES Object - GL_BLEND - iPhone

I have a textured object in my OpenGL ES scene (version 1.1) for which I want to change the alpha to 0.5. I am trying the following code…
GuybrushThreepwood
  • 5,598
  • 9
  • 55
  • 113
0
votes
1 answer

D3D9 Alpha Blending on the surfaces

I have a surface (OffScreenPlain or RenderTarget with D3DFMT_A8R8G8B8) which I copy pixels (ARGB) to, from a third party function. Before pixel copying, Bits are accessed by LockRect. This surface is then StretchRect to the Backbuffer which is…
Indy9000
  • 8,651
  • 2
  • 32
  • 37
-1
votes
0 answers

SDL_DestroyTexture causes artifact

I want to be able to render the character's sprite as pure white with ColorMod and AlphaMod set to some external values at some frames on top of character's actual sprite. Here's this code: auto spr = m_currentAnimation->getSprite(); bool shining =…
SavedowW
  • 39
  • 5
-1
votes
1 answer

Java AlphaComposite Graphics2D objects without creating intermediate BufferedImages (for SVG export)

2 Graphics2D objects are being created with alphaComposite "embedded" in their creation process (so an additional setComposite in front seems useless) there is ability to export as SVGs in Batik SVGGenerator and JFreeSVG libraries and the vector…
jazznbass
  • 24
  • 6
-1
votes
1 answer

What is pd3dDevice in DirectX 11?

I am currently trying to make a UI transparent in DirectX 11 for a university project, and am looking at blend states and other resources within the Microsoft docs. I keep coming across pd3dDevice and am truly lost on what it is. I have looked in so…
-1
votes
2 answers

OpenGL : Blending & feedback effect

I'm struggling on a simple project, as an example/sandbox, I'm rendering a small oscillating rectangle on my output. I'm not using glclearcolor() but instead, on every frame I draw a black rectangle before anything else, blending with…
ebkgne
  • 39
  • 6
-1
votes
2 answers

Set background color on an alpha blended image

When saving an alpha blended image like this: using imagejpeg(), with the code below, I get a black background. $sourcePath = ""; $destPath = ""; $image =…
KIKO Software
  • 15,283
  • 3
  • 18
  • 33
-1
votes
1 answer

Webgl Blending is blending to white

I have written a library for webgl, it has many tests and runs those tests perfectly fine including the one I have for blending. I've set the test to do a standard blending of Src_Alpha, One_minus_Src_Alpha and the test properly renders the…
Diniden
  • 1,005
  • 6
  • 14
-1
votes
1 answer

off screen rendering and alpha blending with background color buffer

I render the object with off screen rendering and extract it back into the image. And draw it back on the screen. Then there are other objects underneath. When I off screen render, I draw a cylindrical object with a hole, The circle has an alpha…
-1
votes
1 answer

alpha blended control on layered window in C#

i have a layered form with the WS_EX_LAYERED extended style set. i've created a child "EDIT" control using CreateWindowEx(...) API function; the control it's there but is not painted and nothing appears on the form. i know that when using…
dst
  • 27
  • 5
-1
votes
1 answer

Delphi: Alphablending two Timages

I have on a Form two TImages. One is fixed (BackgroundImage - Car) and the other one is movable and is always in front (FrontImage - Tree). When both Images overlap the FrontImage should be transparent. I tried the exact code from the answer by…
-1
votes
1 answer

How can I alphablend only certain parts of a texture in DX 9?

How can I alphablend only certain parts of a texture in DX 9? For example, layers in Photoshop (or any other photo editing program that supports layers). You can draw something in a layer (background filled with alpha), then place the layer over…
C4theWin
  • 123
  • 1
  • 1
  • 5
1 2 3
37
38