Questions tagged [blending]

The process of mixing things together. Computer graphics uses blending concept to achieve transparency with image.

Blending: The process of mixing things together. Computer graphics uses blending concept to achieve transparency with image.

Resources:

567 questions
0
votes
2 answers

Step Independent Smoothing

I often smooth values by blending percentages and inverse percentages with the below: current_value = (current_value * 0.95f) + (goal_value * 0.05f) I'm running into a situation where I would like to perform this action n times, and n is a…
Kalen
  • 3,106
  • 8
  • 29
  • 42
0
votes
1 answer

How can I render back to front in opengl?

I am trying to render an transparent object in opengl but sometimes the textures are visible through each other and sometimes they are not. As far as I know I have to render them from the back to the front and it is looking fine when I do it…
Busti
  • 5,492
  • 2
  • 21
  • 34
0
votes
1 answer

Blending with GPUImage: How to control the position of the second image on top of the first

I use the following code to blend two images using GPUImage framework by Brad Larson. Is there a way to control the position of the topImage relatively to the baseImage? Now, it places topImage on the middle of baseImage. GPUImageMultiplyBlendFilter…
Tassos Voulgaris
  • 878
  • 1
  • 9
  • 21
0
votes
0 answers

What color blending algorithm does MyPaint use?

I am confused with how does MyPaint blend color, here are what I did: It has a background layer (initial white color). Select a brush with some color and alpha < 1, paint some lines on the canvas. When I paint at the same line, it will be…
Chi
  • 23
  • 3
0
votes
0 answers

openGL ES - drawing empty pixels

I am in a situation where I need to render to a texture using FBO, and I need to remove some pixels from the buffer. That is, draw (0,0,0,0) color in a RGBA colored framebuffer. This will later allow me to later render this texture on top of another…
Vladimir Gazbarov
  • 860
  • 1
  • 10
  • 25
0
votes
1 answer

How to dynamically color CCSprite but preserve black, white and transparent pixels

Is there a way, possibly a ccBlendFunc, that will allow me to dynamically color sprites without affecting the pure white (255, 255, 255), pure black (0, 0, 0), and purely transparent (alpha=255) pixels? Using the default blend function and setting…
stackunderflow
  • 754
  • 7
  • 18
0
votes
2 answers

OpenGL - blending

I have raycasting with this kind of color blending in for cycle in PS actual = ; actual.a *= 0.05; //reduce the alpha to have a more transparent result //Front to back blending actual.rgb *= actual.a; last =…
Martin Perry
  • 9,232
  • 8
  • 46
  • 114
0
votes
1 answer

How to create a hue (saturation) picker in cocos2d

I'm trying to create a simplified hue/saturation picker for cocos2d. I want to create a gradient and to pick from it. I need to recolor a black/white image gradient for every color like blue, red and others. So I need to create many gradients. I…
Claudio Ferraro
  • 4,551
  • 6
  • 43
  • 78
0
votes
1 answer

Please explain blend mode bm_dest_color for blending image data

I need blend image data. I do not know how to explain it, so I show it. I cant write links because my reputation is minimal, so here is directory with images online. I have destination image as in link above. FirstStep.png I draw to black image with…
Tito100
  • 1,660
  • 1
  • 12
  • 12
0
votes
1 answer

Implement photoshop blending mode in iOS

There were numerous situations when designers gave me psd files, and there two layers where set with blending mode multiply. and always I couldn't implement that behaviour, and just used different colour for front view with opacity set to, for…
kyurkchyan
  • 2,260
  • 2
  • 23
  • 37
0
votes
1 answer

Making opaque layer in OpenGL ES 2.0 on iOS.

I'm working on a simple 3D application with OpenGL ES 2 on iOS. I just followed steps in "OpenGL ES Programming Guide for iOS" in Apple Developer Site. I wanted make the OpenGL View entirely opaque for better performance as suggested in the…
Sugu Lee
  • 11
  • 1
  • 3
0
votes
1 answer

Create an alpha mask (glBlendFunc does what now?)

I am trying to render a square border (variable thickness so lines won't work). I was thinking 4 quads would do the trick (all the same size, just rotated and translated for each side). Then I thought, 2 quads should do it- Draw one then draw a…
Chemistpp
  • 2,006
  • 2
  • 28
  • 48
0
votes
1 answer

(LWJGL) How to render a plain colored object with glBlendFunc() on

I've put the line glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); in my OpenGL initialization code so the transparent parts of my textures stay transparent. Now I want to add a simple colored object, without a texture. But I can't as long as I…
0
votes
2 answers

How do I properly achieve subtractive blending in C#, XNA?

I'm working on some kind of mod for Terraria (written in C# and using XNA), in which I need to use some blend modes. I didn't have any troubles getting additive blending to work, but subtractive one causes me some problems. I managed to display…
Shockah
  • 116
  • 7
0
votes
1 answer

clarifying gamma topic (in general)

I understand gamma topic but maybe not 100% and want to ask somebody to answer and clarify my doubts. As I understand there is a natural linear color space where color with value 100 is exactly four times brighter then color with value 25 and so…
grunge fightr
  • 1,360
  • 2
  • 19
  • 38