Any part of an object or graphic that light does not fully reflect off of, and thus can be seen through. Also applies to translucency effects.

learn more… | top users | synonyms

1
vote
1answer
48 views

Alpha blending, transparence and z-ordering

I'm making some tests with alpha blending in a projet and I don't understand something. In my tests I've done something like that and everything look good: Draw blue box first (depth test: true, ...
1
vote
0answers
55 views

Why does my texture-based object picking detect the wrong object? [closed]

I am a LibGDX beginner implementing a RISK-like game. I want to let the player select territories by clicking on them, but for some reason, the wrong territory is sometimes detected. The clicked ...
1
vote
1answer
114 views

How do I procedurally create a directional light cone with an HTML canvas?

To create a directional light effect, I want to draw this kind of transparency mask on an HTML canvas (using context2d): I also want to be able to generate such a mask dynamically. I've tried using ...
5
votes
1answer
323 views

How can glass breaking effect from Smash Hit be achieved? [duplicate]

I saw Smash Hit the other day and was amazed by the physics of the game, specially the shattered glass effect: I've read other posts about this subject but I still feel that they don't share enough ...
14
votes
7answers
2k views

What does the term “channel” mean when used in regards to computer graphics?

I was studying terminology for computer graphics, and this statement came up that confused me. The image can have alpha channels for transparency. I tried searching for the meaning of the term ...
0
votes
3answers
656 views

how to design transparent screen in libgdx

this question is for LibGdx geeks. I want to make transparent screen in my game. For example, when level completes I want a new transparent screen pop up and show player's high score, buttons to ...
0
votes
2answers
99 views

How to control which polygons get rendered first in a batch (e.g. to draw leaves)?

Sorting transparent objects is a well-known problem. If you send a bunch of transparent polygons (e. g. leaves and branches on a tree) into the GPU and render them with alpha blending enabled, the GPU ...
0
votes
1answer
207 views

Render scene twice in OpenGL, overlay second render with tranparency

Is it possible to render two scenes (same scene with different setups) without any alpha, and after that is done just overlay the result from the second render on top of the first layer with a static ...
2
votes
1answer
247 views

When should I use color keying vs PNG transparency?

SDL (and other toolkits) can use color keying to make a certain color in an image transparent. Alternatively, you could load a PNG image that supports transparency. When should I use which?
0
votes
1answer
406 views

Transparency in opengl - texture with alpha, color from background [duplicate]

I have to draw texture with transparent areas on square. But I don't want this transparencies to take color from this polygon, but from the background. Do you have any good tutorial to achieve it? ...
0
votes
1answer
205 views

Correct GL settings to mix 2D and 3D rendering

I'm programming a 3D game engine with 2D GUI. The GUI objects have partially transparent textures and the transparency works more or less. The sky color is rendered in transparent areas of the ...
2
votes
1answer
424 views

Alpha Blending: use the pixel with the smallest alpha

I'm writing a transparency shader where I need any intersecting textures to, wherever they overlap, take the texture pixel with the smallest alpha value and render only that, discarding the other ...
1
vote
1answer
76 views

How do I make parts of a texture transparent in Max?

I am applying an eye.psd eye-texture to my character model's face, but the results aren't what I'm expecting. Here's what it looks like (Observe the eye on the right. Ignore the other one.): The ...
0
votes
0answers
60 views

Transparency in OpenGL

I was doing some testing, and I ran into an issue that I've never run into before. I've been experimenting with having different "modules", so to speak, for rendering. Each module manages its own ...
0
votes
3answers
662 views

OpenGL - How to draw a transition of two textures on one quad?

I know when drawing a rectangle, if we select red and draw two vertices, and then select yellow and draw the other two vertices, the entire rectangle will show a nice transition of color between those ...
0
votes
0answers
46 views

OpenGL - How to use depth checking and alpha blending at the same time? [duplicate]

Suppose I have a semi-transparent object (let's call this "bubble"), a solid object (let's call this "wall"), and the bubble is closer to the camera compared to the wall behind it. If I draw the ...
0
votes
1answer
185 views

What image format supports transparency in Android?

I want to show an apple on screen but the image has a white background and it doesn't blend with the background of a tree. Is there any image format in which only the red apple is displayed?
1
vote
1answer
291 views

Depth write and depth test in Unity

Scenario: several objects (o1, o2,.., on) have to be rendered with the z test disable, but the z values must be written to the depth buffer. In another pass, some other objects (t1, t2,..., tm) need ...
2
votes
3answers
290 views

Order of render with transparency opengl

I tried to render using different render configurations (GL_BLEND_FUNC()) but I couldn't get the back object to render in certain angles. The first screenshot here shows one angle where the back ...
6
votes
3answers
4k views

How do I render a PNG with transparency in LibGDX?

I'm building a simple tic-tac-toe example with LibGDX. I have simple images: cross, circle and board, all pngs created with GIMP with a transparent background. How can I render them as a Texture with ...
1
vote
1answer
842 views

Rendering a image with some transparency has removed all black pixels and makes full texture transparent

I am writing a program where with Directx11 I am rendering a texture to a flat rectangle something along the line a of 2D engine. Now parts of this image need to be transparent, to this effect I ...
1
vote
3answers
204 views

Rendering order

In this thread Rendering a model with transparent or translucent uv map applied doesn't work , I asked about what was wrong with my model that the transparency wasn't working. I've got an answer ...
0
votes
0answers
79 views

Rendering a model with transparent or translucent uv map applied doesn't work

Before I try to make anything transparent, the model renders nicely. When I change the uv layout so that one piece of the model will be transparent, it renders horribly. This is the result with a ...
1
vote
1answer
949 views

Keyframing or programmatically changing attachment transparency in Spine

I've just recently been getting to grips with Spine and Unity 2D, porting some of my assets from different sources (SWFs, SVGs, GIFs, Canvas animations). Whilst I'm able to reproduce a lot of what I ...
1
vote
1answer
293 views

Clearing an SFML scene with a partially transparent color

Is there way to clear a scene with a transparency (alpha) value, in pure SFML? I'm trying to clear with rgba(0,0,0,128) so the previous frame still partially shows through, which would create a ...
0
votes
0answers
151 views

Unity3D object fill shader

I've been researching this for a while, and had no luck yet. I figured I'd ask here to see if anyone had any good ideas. Essentially what I want is a shader that can make only part of an object ...
2
votes
2answers
258 views

fast java2d translucency

I'm trying to draw a bunch of translucent circles on a Swing JComponent. This isn't exactly fast, and I was wondering if there is a way to speed it up. My custom JComponent has the following ...
0
votes
0answers
1k views

Drawing and rotating bitmaps (with transparency) efficiently in Android

I just started making a game for Android and I'm already having some issues regarding performance. You can imagine the game as being some kind of Tower Defense game with a top-view, and the enemies ...
0
votes
2answers
311 views

HTML5 Canvas Parsing image into tileset while preserving transparency

I'm trying to import a Tiled Map Editor JSON file into my HTML5 canvas game but I'm having trouble with separating out the tileset image into separate images while preserving the transparency. ...
1
vote
5answers
388 views

Drawing transparent and opaque 3D objects. How do I preventing z-fighting?

I am using a transparent weighted average algorithm to draw my transparent objects. The transparent object is drawn with the following notable render states (the rest are default XNA values): ...
1
vote
1answer
643 views

rendering transparent meshes in LibGDX

Building open this tutorial - https://code.google.com/p/libgdx/wiki/ProjectionViewportCamera I have constructed a class for generating polygon meshes. But i cannot figure out how to render semi ...
3
votes
1answer
511 views

OpenGL - Z- Buffer translucency

So lately I wanted to use the Z buffer in opengl to order my 2D sprites in my program. Now I didn;t relaize that if you use the Z buffer then you cant blend these sprites. And some of these sprites ...
1
vote
1answer
77 views

How can I fix this transparency problem when my data is viewed from a certain angle?

using Microsoft.DirectX.Direct3D; using Microsoft.DirectX; I render a 3D data by setting device.RenderState.AlphaBlendEnable = true Now my top view looks like below, the outer surface layer ...
0
votes
1answer
281 views

render sprites with a transparent background (XNA)

For my game I want to make a map of the world. Per country I made a file with the border of the country and the rest of background is transparent. This way all my files have the same width and height. ...
3
votes
1answer
268 views

Make some black pixels transparent in Love2D

Is it possible to put a black opaque rectangle over my game screen and then change transparency on some pixels? For example I have black rectangle on screen represented by 1 1111111111111111111111 ...
2
votes
1answer
86 views

Transparency behaviour on PowerVR

I'm doing some graphics optimizing tests, especially on PowerVR transparency. Now I made a scene where there are two groups of simple objects. One group has the shape in geometry using diffuse shader ...
6
votes
1answer
504 views

Sprite with alpha Blending in 3D world

I'm working on a game in a 3D world with elements 2D only (Like Don't starve game) for Android and IOS. Currently, I've managed "Sprite" without alpha blending, I've just put a condition in the pixel ...
1
vote
1answer
219 views

Drawing Transparency in XNA 4.0

Using C# (VS2010) with XNA 4.0, I have a terrain layer (RenderTarget2D) in a 2D side-scroller. My visual system tracks updates to redraw individual tiles, but I am having trouble finding a way to ...
3
votes
1answer
326 views

Odd blending result (semi-transparent 2d quad over 3D scene)

I'm working on a GUI library for my game, and I'm having problems with my blending. I have a 3D scene, which I render with glDrawArrays. In the fragment shader the alpha color is hardcoded 1.0f ...
4
votes
1answer
534 views

How do games deal with Z-sorting partially transparent foliage textures?

I was busy implementing basic transparency in a prototype I'm working on when something occurred to me. In order for a given texture's transparency to work as expected, the (semi-)transparent texture ...
3
votes
2answers
3k views

Android: Loading bitmaps without premultiplied alpha (OpenGL ES 2.0)

Is this possible? To load textures in non-premultiplied format (Straight alpha?)? My game has 1 or 2 images which have semi-transparent pixels and I need to be able to fade them in and out but this ...
3
votes
0answers
863 views

How to make the background of an OpenGL object transparent? [closed]

It sounds so simple but i didn't get it to work. The Background of my FrameLayout where i add the GLSurfaceView in is colored blue but there is only black. So here is my method to initiate the ...
0
votes
1answer
661 views

How do I programmatically remove an image's background color?

I have a sprite sheet (image) and want to draw it on screen. image = sprite sheet image x = player x position y = player y position width = player width height = player height public ...
4
votes
2answers
140 views

XNA Transparency depending on drawing order?

I am drawing two 3D objects, both of them can fade from opaque to transparent independently, and they can intersect between them (so you cannot say when one of them is before the other one). Look at ...
4
votes
1answer
499 views

How do you display non-cutout transparent 2D textures with a depth buffer? (OpenGL)

I've been able to get my 2D renderer to display transparent cutout textures by testing the alpha of a fragment and discarding if it is less than 1 (or any fraction really). The problem is I want to ...
3
votes
1answer
516 views

Change opacity of a texture in XNA 4.0

I have created a terrain using VertexPositionNormalTexture in XNA 4.0, but now I would like to allow the user changing the opacity of the terrain (from 0%, totally opaque, to 100%, totally ...
5
votes
3answers
1k views

Does Unity's “Transparent Bumped Specular” translate to “semi-shiny must be semi-transparent”?

Unity's documentation for the "Transparent Bumped Specular" shader/material-type is simply a concatenation of each of the descriptions for its Transparent and Specular Shaders (and also Bumped, but ...
4
votes
2answers
793 views

Jagged transparency when rendering translucent textures (OpenGL 3.2 + GLSL)

Like most others, I'll start off mentioning that I'm still a beginner when it comes to OpenGL and GLSL programming. So bear with me on any dumb mistakes you may spot in the code ahead. I'm basically ...
1
vote
2answers
586 views

Tile-based game with DirectX - issues with transparency and StretchRect

In my current project I have a class which loads a map file and then it should load all associated tilesets (no transparent tiles - I used to work with magenta as a colorkey) and precreate a surface ...
1
vote
0answers
59 views

Creating transparent image with localGraphicsConfig not always working

I'm trying to use GraphicsConfiguration.createCompatibleImage to create transparent images. This creates an empty image which I'm filling with a mosaic pattern later on in the code. This seems to ...