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

6
votes
1answer
165 views

How to detect collision only in non-transparent texture?

I am developing a game using libgdx. I am trying to detect the collision between bee and tube. I am using the following code to detect the collision. if(player.getBounds().overlaps(boundsBot)){ } ...
0
votes
1answer
58 views

Problem with transparent textures in SFML

I have been told that this is kind of a common problem with transparent textures, but didn't get any further information on how to solve it. In my code, I'm trying to render this texture (a square ...
7
votes
1answer
130 views

Depth Peeling implementation problem: How to render the next layer? (OpenGL)

I try to implement order-independet transparency sticking to the pseudo code in the linked paper (page 4). I can't figure out how they are able to do this in OpenGL. I am rendering the scene two ...
3
votes
0answers
49 views

Optimal batching for 2D objects with transparency

I have a collection of 2d objects with transparency. Each object has a depth value to determine draw order and a material. I'm trying to batch them in an optimal way to minimize draw calls. Assume ...
0
votes
0answers
49 views

Light only passes through static mesh when selected - Unreal Engine 4

I just started working with UE4 and this issue has been bothering me for a couple of nights now. There are two questions regarding this problem on Unreal AnswerHub, but none of them offers a solution. ...
9
votes
3answers
4k views

Order independent transparency in particle system

I'm writing a particle system and would like to find a trick to achieve proper alpha blending without sorting particles because: Each particle is a point sprite in a single mesh and I can't use ...
0
votes
1answer
41 views

OpenGL color overlay

I want to create a pause menu where everything in the background gets darker. I've looked up a bunch of possible solutions (even the second page on google) but it doesn't seem to work. I do already ...
3
votes
0answers
71 views

Unusual black squares in transparency effect after wake from sleep

I've encountered unusual black squares in semi transparent textures for a while now, usually in processes that were resumed after the computer woke from sleep. For example I've seen the effect in the ...
3
votes
1answer
1k 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 ...
3
votes
2answers
81 views

How to render transparent meshes without sorting? [duplicate]

Let's assume we have some arbitrary triangle manifold meshes which are transparent. How real guys effectively render it? Is it possible todo it without sorting faces back to front (e.g. via bsp) and ...
3
votes
2answers
49 views

How can I render all objects behind a plane with a specific transparency value?

I have a game where there a multiple floor levels between the player switches. The floor is not present everywhere, so you can look through it. When 'working' (playing, building stuff, etc.) on a ...
1
vote
0answers
38 views

Transparent Game Window (Windows 7 x64) [closed]

i want to develop mode to minecraft but if i start minecraft i've got this how can i repair this ?
0
votes
2answers
908 views

How to change alpha of a sprite through script in Unity

I have 4 buttons and they each flash when the button is pressed. However if you were to press a button, then while the button is darker (flashing) click another one, that button then stays dark. I ...
4
votes
2answers
176 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 ...
2
votes
2answers
480 views

How do I use transparent textures in panda3d?

I need to map a partially transparent texture on a flat quad with panda3d. With the quad as a canvas I'd like to create something like sprites positioned in the 3d coordinate system. I wanted to ...
0
votes
1answer
3k views

How to change the transparency of an object in Unity c# scripting?

I have laser-object in my scene, which I want to be seen only when I press the 'E' button on the key board(just an example of a key). I have seen many ways to change the transparency , however, none ...
3
votes
2answers
355 views

Color key or transparent images?

Ive seen a lot of people make sprite sheets magenta instead of transparent and then they make the magenta transparent using code. What is best (Performance) to use transparent images or use a color ...
4
votes
1answer
138 views

How do I check for collision between transparent textures?

I am creating a 2D game using OpenGL. For sprites, I use textured quads (actually two triangles). The texures contain transparent pixels, since objects are not always perfectly rectangular. How do I ...
0
votes
0answers
12 views

Cube dissappearing in different camera angle

I got this odd problem when I look at few objects while moving with the camera. They disappear until I move camera again, in editor and play mode. I had the same problem before when making some ...
1
vote
0answers
77 views

Why is my partially transparent image blitted fully opaque?

I have a part in my program that should display the currently playing song's name for the first 4 seconds, then fade out. Even though Surface.get_alpha() returns expected results, the image still does ...
1
vote
1answer
228 views

How can I draw some of my XNA models semi-transparent? (C#, XNA 4.0)

I've recently made some basic Blender models without transparency for a new game I've been working on, but I'm having some problems rendering them semi-transparently. Namely, I haven't been able to ...
0
votes
0answers
100 views

Looking through transparent voxels doesn't show other blocks

In my voxel game, looking through the transparent water blocks can sometimes cause blocks in other chunks not to show. The water is in its own VBO, and the face facing the other chunk (in the ...
1
vote
0answers
71 views

Building Irregular terrain in tile-based approach

I'm starting to build a 2D game, metroidvania-like, tile-based and all. I've had some prior experience in it, and one of the major letdowns of those prior games was that worlds seemed too "blockish", ...
1
vote
2answers
1k 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 ...
1
vote
3answers
2k 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
1answer
170 views

Artefacts when drawing textures

I am working on a level-based android game. The level is constructed of many blocks, all drawn with the same texture. Until now I didn't have any problems with drawing the different textures next to ...
2
votes
1answer
133 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 ...
1
vote
1answer
126 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, ...
2
votes
1answer
445 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 ...
1
vote
0answers
133 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
1k 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 ...
5
votes
1answer
1k 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
3k 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 ...
4
votes
2answers
3k views

Pygame set_colorkey transparency issues

I'm having a strange issue that I cannot seem to remedy. I am doing some prototyping with Pygame on a desktop running windows and a laptop running OS X. Both are running python v2.7.3 (installed via ...
0
votes
3answers
2k 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 ...
2
votes
1answer
578 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
2k 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 ...
10
votes
3answers
9k 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 ...
0
votes
2answers
148 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
336 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 ...
0
votes
1answer
3k 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
658 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 ...
5
votes
2answers
2k 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 ...
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
412 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?
4
votes
1answer
926 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 ...
2
votes
3answers
757 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 ...
1
vote
1answer
3k 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
99 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 ...
1
vote
0answers
61 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 ...