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

OpenGL ES 2.0: Safe to assume that Blending is relatively cheap on Mobile Devices?

All over the place, I read what a serious performance hit Blending was, until I came across a comment that it was not so expensive on iOS devices due to their architecture. Now, the wonderfully uber-controlled world of Apple is a bit different from…
class stacker
  • 5,357
  • 2
  • 32
  • 65
0
votes
1 answer

blend colors in polygon

I have a polygon which consist of segments of different colors (red and green on sample image). And for each pixel in polygon (grey area) I need to calculate coefficients to obtain the color of pixel: pix_color= red * Ca + green * Cb Boundary…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
0
votes
1 answer

Flash blending movie clip with HTML

Is there a way of having a Flash movie blend into the HTML below it. Like having a flash file with blend mode "Darken" be applied to the content below? I had a quick look at CSS blend-mode but either I can't figure it out or it doesn't work. Thanks.
Stefan Dunn
  • 5,363
  • 7
  • 48
  • 84
0
votes
3 answers

Blending with Direct3D SpriteBatch

I'm trying to achieve a simple effect: drawing an image on the screen with a transparent background. I'm using SpriteBatches to do this. Here is my code for creating the blend state: D3D11_BLEND_DESC descBlend; ZeroMemory(&descBlend,…
l3utterfly
  • 2,106
  • 4
  • 32
  • 58
0
votes
1 answer

Thoughts on opengl es multitexture shader with 8 texture units

Below is a fragment shader that is performing poorly. Removing the conditional branches doesnt seem to improve performance. With just 150 polys I get 10fps on Kindle Fire and 20fps on Galaxy S3. Any thoughts on the best way to optimize this, if…
Shaun Neal
  • 1,183
  • 1
  • 10
  • 12
0
votes
1 answer

multitexture additive blending in opengl

I want an effect that a metal surface that has a strong sun reflection virtually turns white in the light. It worked pretty well with two pass rendering and additive blending the second pass (with a nearly white texture and highmost specularlight)…
Kenobi
  • 425
  • 1
  • 4
  • 19
0
votes
1 answer

GL Func Subtract Cocos2d

Does anyone know how to change the blending mode for a specific sprite in Cocos2d 2.x to GL_FUNC_SUBTRACT? Ive tried a few things, but basically I'm trying to create a layer mask using a white (or black) circle and hiding the alpha.
Kyle Goslan
  • 10,748
  • 7
  • 26
  • 41
0
votes
3 answers

Funky OpenGL cubes

Aha! It seems my problem was that my zNear value given to gluPerspective had to be greater than 0, and I had to enable the depth buffer to get it working. Ive updated the code below to be working. I've tried to do this a lot, and always thought I…
jtst
  • 312
  • 4
  • 16
0
votes
1 answer

What blend equation is System.Drawing.SolidBrush using?

I have some GDI code that's drawing semi-transparent triangles using System.Drawing.SolidBrush. I'm trying to reimplement the code using a proper 3D rendering API (OpenGL/Direct3D11), but I'm not sure what blend equation to use for these triangles…
postgoodism
  • 948
  • 9
  • 14
0
votes
2 answers

Transparency/Blending issues with OpenGL ES/iPhone

I have a simple 16x16 particle that goes from being opaque to transparent. Unfortunately is appears different in my iPhone port and I can't see where the differences in the code are. Most of the code is essentially the same. I've uploaded an image…
user156848
  • 65
  • 1
  • 1
  • 7
0
votes
1 answer

OpenGL ES 1.1 - aquarium's realistic rendering

I've got some meshes that try to resemble an aquarium. I can move the point of view or camera that has a light attached to it. Only the front glass is fully transparent, it is suposed to be the screen glass. I've tried using the blender function…
rraallvv
  • 2,875
  • 6
  • 30
  • 67
0
votes
2 answers

Color Interpolation

Okay, so I'm looking at a typical color chooser and it looks something like this: If we deal with only highly saturated colors, the blending pattern behaves like this: R 255 G 0 B 0 R 255 G 0 -> 255 B 0 R 255 G 255 B 0 R 255 ->…
Scott
0
votes
1 answer

three.js blend color with map

I have a mesh that has map and color. I want to set the transparent part in the map to be the color. I tried this but only map is render. var map = THREE.ImageUtils.loadTexture(url); var material = new THREE.MeshPhongMaterial({ color:…
Ovilia
  • 7,066
  • 12
  • 47
  • 70
0
votes
1 answer

Disable blending of UIView with its superview

I am creating say a rectangle in coregraphics - using CGContext functions in the - (void)drawRect:(CGRect)rect method of UIView and adding it to a superview. When i change the background of the superview , the color of the UIView blends with it. I…
Abhishek Bedi
  • 5,205
  • 2
  • 36
  • 62
0
votes
1 answer

One rectangle (two connected quads) with two textures - error with their common border

I have a rectangle consists of two quads (8 vertexes, I use indexed triangles): ------+------ | \ | \ | | \ | \ | | \ | \ | ______+______ I have also two textures for it. I bind both of them to the shader. I want to texture one part of…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108