Questions tagged [transparency]

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.

Filter by
Sorted by
Tagged with
2
votes
2answers
954 views

Modern OpenGL, billboarding, alpha transparency

I'm having some transparency issues when rendering billboards in modern OpenGL. I've created two billboard sprites, each one with alpha transparency, just for testing. When I render two sprites ...
2
votes
2answers
927 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 ...
2
votes
3answers
6k 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 ...
2
votes
3answers
2k 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 ...
2
votes
2answers
2k 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 ...
2
votes
2answers
4k views

Why is my alpha transparency not working correctly in Unity?

In Unity I have never seen a bug quite as weird as this one. As usual, I import my texture with a transparent background and then check the alpha is transparency box and apply it, and everything ...
2
votes
2answers
1k 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 ...
2
votes
1answer
204 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
2answers
2k views

How can I make a tile appear on top of another without completely blocking the tile below?

Making a small RPG with libdgx just for learning about how to draw tiled maps and move around in them. I've got the tiles drawn and OrthographicCamera stuff figured out so I can see my world. My ...
1
vote
3answers
13k 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 ...
1
vote
3answers
2k 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 ...
1
vote
1answer
2k 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 ...
1
vote
4answers
438 views

How are semitransparent polygons rendered in the correct order?

It is my understanding that while opaque triangles can be rendered in any order thanks to the Z buffer (especially when rendering in hardware), semitransparent triangles cannot. Instead, they need to ...
1
vote
1answer
4k 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
2answers
149 views

Add oceans to an earth model with only continents?

I have the following earth model, it only has continents: I wanted to add water but as you can see, some of the continents are now hidden due to the water sphere being more round than continents: I ...
1
vote
2answers
382 views

Fade in rendering mode doesn't work as intended

The picture shows an object made out of one model. The object works as intended when rendering with opaque rendering mode, but I want the object to fade in/out during animation. The glitch seems to ...
1
vote
1answer
1k views

Deferred Shading and Transparency Clarification?

So, this is a bit of a simple question, but I can't seem to find a real answer anywhere. I've been looking into implementing deferred rendering using MRT into my in-progress render engine, but I'm a ...
1
vote
2answers
10k views

Why isn't my image's transparency honoured in the Unity sprite?

I'm following through Jesse Freeman's Lynda course Unity 5 2D Essential Training. The exercise files contain sprites with transparency. Here's a screenshot of one such sprite on the trainers screen (...
1
vote
1answer
3k 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
1answer
1k 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 ...
1
vote
1answer
1k 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
2k 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 ...
1
vote
1answer
120 views

How front-to-back blending works?

I would like to implement dual depth peeling in my engine. I read the original paper and examined the corresponding source code. I understand the algorithm, except how the blending works, especially ...
1
vote
1answer
128 views

How can I improve the display of my png files?

I develop a mini Android game available from my github (also the release apk file). The game is for kids and you are supposed to catch falling object and get points for that. Now I just created png ...
1
vote
1answer
471 views

Making Buildings Transparent When the Player is Behind Them

I am making a 3D twin stick shooter in Unity and this is a question I need to have answered while I am still in early development. The map my player is in will have very tall buildings that will ...
1
vote
1answer
1k 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 ...
1
vote
1answer
361 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
1answer
6k 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 ...
1
vote
2answers
6k 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
5answers
1k 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
125 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 ...
1
vote
1answer
1k views

Lost transparency in SDL surfaces drawn manually

I want to create SDL_Surface objects for each layer of my 2d tile-based map so that I have to render only one surface per layer rather than too many tiles. With ...
1
vote
1answer
686 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 ...
1
vote
0answers
20 views

Custom shader with stencil breaks Unity built-in masking

my custom shader works like a charm for what I wanted it, but if it is referenced in the scene, Unity built-in masking stops working (both the Sprite Mask component and the rect-based Mask stop ...
1
vote
0answers
152 views

Throwing away inner faces of cubes of a transparent voxel structure in Unity3D?

I want to create a "Building site is (not) obstructed." indicator for my building system. How can I throw away those faces which would be hidden if the material would be opaque?
1
vote
0answers
22 views

Transparency problem / Expanding material fixes it magically?

i stumbled upon a problem, can't figure out what's the reason and how to solve it. I have glass-windows which use just the standard (specular setup) shader. in the first place when the model is added ...
1
vote
0answers
187 views

How to implement weighted blended order independent transparency in OpenGL?

I want to implement weighted blended OIT in my C++ OpenGL 3D game, but I didn't find any C++ examples about weighted blended order independent transparency. Paper How to clear accumTexture(...
1
vote
0answers
81 views

Multipart character sprite and transparency

In my 2D platform game I have characters made of multiple separate pieces that can move independently in a hierarchy, so that I could move the limbs and head, change facial expressions etc., or add ...
1
vote
1answer
607 views

Showing background transparent image in android [closed]

I have a image with transparent background created from photoshop. I added this to my android game which I am creating using libgdx. But when I add it to that, it is shown with white background like ...
1
vote
1answer
748 views

Change the alpha blending color of scaled textures

It looks like semitransparent pixels are blended with while color when textures are drawn scaled. It is very noticeable and looks ugly when textures are drawn on dark background. ...
1
vote
0answers
268 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 ...
1
vote
0answers
92 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
1answer
1k 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 ...
1
vote
0answers
4k 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 ...
1
vote
1answer
2k 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 ...
1
vote
2answers
1k 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
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 ...
0
votes
1answer
416 views

How to get rid of the white border/background on my png image?

I am making a game using pyGame; it is basically a space invader game, with a tank. As we can see, this tank image I have has white borders / a white background, which I really want to get rid of. I ...
0
votes
2answers
22k 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 ...
0
votes
2answers
408 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 ...