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
2answers
3k views

Transparent parts of texture are opaque black instead

I render a sprite twice, one on top of the other. The sprites have transparent parts, so I should be able to see the bottom sprite under the top sprite. The transparent parts are black (the clear ...
3
votes
3answers
758 views

How can I render a semi transparent model with OpenGL correctly?

I'm using OpenGL ES 2 and I want to render a simple model with some level of transparency. I'm just starting out with shaders, and I wrote a simple diffuse shader for the model without any issues but ...
0
votes
1answer
224 views

Rendering two textures with blending and alpha test

What I am looking for is the following: I have a circle on a square image, alpha is 0 at the corners and also a square shadow, alpha is 0 everywhere else I would like to have as final result a ...
2
votes
1answer
1k views

Collision detection with non-rectangular images

I'm creating a game and I need to detect collisions between a character and some parts of the environment. Since my character's frames are taken from a sprite sheet with a transparent background, I'm ...
0
votes
1answer
889 views

Making a surface transparent from blackness of texture

I am making a "halo" shader in unity using GLSL. And I've come to a roadblock. What I need to do is take a texture, like the following, and make it transparent according to the darkness of it. And I ...
3
votes
3answers
1k views

Alpha blending without depth writing

A recurring problem I get is this one: given two different billboard sets with alpha textures intended to create particle special effects (such as point lights and smoke puffs), rendering them ...
5
votes
2answers
275 views

Mobile 3D engine renders alpha as full-object transparency

I am running a iOS project using the isgl3d framework for showing pod files. I have a stylish car with 0.5 alpha windows, that I wish to render on a camera background, seeking some augmented reality ...
1
vote
1answer
1k views

Early Z culling - Ogre

For Ogre experienced people, but also experts in the field: Early Z culling is sometimes quite desirable, and that's what I tried to do in Ogre by using a two pass material. The first one is writing ...
3
votes
4answers
2k views

IOS OpenGl transparency performance issue

I have built a game in Unity that uses OpenGL ES 1.1 for IOS. I have a nice constant frame rate of 30 until i place a semi transparent texture over the top on my entire scene. I expect the drop in ...
3
votes
1answer
1k views

What is the AlphaToCoverage blend state useful for?

Alright, just finished most of my early UI stuff and I wanted the windows to have some transparency. So I expanded my application to initialize and bind blend states so that my UI shader could ...
3
votes
1answer
2k views

Why do my sprites have a dark shadow/line/frame surrounding the texture?

I'm starting OpenGL with Apple's GLKit hand I'm having some trouble to get my sprites displayed properly. The Problem is that they all are surrounded with thin dark lines. The screen shot below shows ...
-1
votes
1answer
193 views

Selective jogl texture transparancy depending on bitwise magic?

I have rewritten some code to allow to load bitmaps to be loaded as textures and if a pixel has a max green color component it is marked transparent. What is odd is that I cannot use the value from a ...
2
votes
1answer
4k views

How do I make magenta in my PNG transparent in HTML5/Canvas/JS?

I'm putting together a simple hex map to use within an HTML5 / Canvas / JS game and before I get round to sorting any custom graphics, I was wondering if anybody knew how to make the pink/magenta ...
1
vote
1answer
457 views

OpenGL ES Faces appear to be transparent when alpha is 1.0?

I am working on an object (OBJ File) loader for my app on iOS, currently I have successfully read the vertices and the faces of the object, and I am now just adding colours to the imported models. I ...
0
votes
1answer
2k views

How does one do alpha transparency testing in XNA 4.0?

I've read a lot of tutorials, but it just doesn't seem to work. Here's the code as suggested by a tutorial, using the built-in AlphaTestEffect class: Matrix projection = ...
5
votes
1answer
389 views

Line at edge of transparent texture on XNA mesh

I have a mesh that is computer generated with a texture on top of it with transparancy on one side. The SamplerState is set to LinearWrap because I would like the texture to wrap. The problem I have ...
6
votes
1answer
6k views

How to render a texture partly transparent?

Good Morning StackOverflow, I'm having a bit of a problem right now as I can't seem to find a way to render part of a texture transparently with openGL. Here is my setting : I have a quad, ...
2
votes
2answers
1k views

Alpha in model XNA

OK been googling nonstop for ages... My problem is, i need transparent models in my game. After a lot of annoying fiddling around with my code, i changed the blendstate to alphablend. This allowed ...
3
votes
1answer
391 views

What are some effective methods for implementing downsampled transparency?

It seems that some games have managed to implement downsampled transparency, and presumably gained a significant performance boost. (Examples: Uncharted 2, Crysis 2) A while back I attempted to ...
6
votes
4answers
2k 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 ...
1
vote
1answer
566 views

Broken alpha of two-sided OpenGL mesh

How do I get rid of this alpha transparency artifacting with classic fixed function OpenGL? I tried all kinds of settings but I'm not sure why it's good in the upper half of the mask but not in the ...
1
vote
1answer
1k views

OpenGL ES Shader help (Blending)

Earlier I required assistance getting to grips with how to retain the alpha channel of a transparent texture in my colourised texture shader program. Whilst playing with that first version of my ...
10
votes
2answers
16k views

How Do I Do Alpha Transparency Properly In XNA 4.0?

Okay, I've read several articles, tutorials, and questions regarding this. Most point to the same technique which doesn't solve my problem. I need the ability to create semi-transparent sprites ...
8
votes
4answers
2k views

Shadow Mapping and Transparent Quads

Shadow mapping uses the depth buffer to calculate where shadows should be drawn. My problem is that I'd like some semi transparent textured quads to cast shadows - for example billboarded trees. As ...