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
0 votes
1 answer
42 views

Transparent Composite Object In Unity HDRP

Potentially a big question, but it seems like it should be simple enough. I have an object in my game composed of multiple parts (connected GameObjects with their own renderers). I want to make this ...
1 vote
0 answers
42 views

How to create intersection shader that simulates squishing?

I want to create a shader that will make spheres/circles look like a blob when colliding. I don't understand shadergraph at all, but I tried to follow intersection shader tutorials. The problem is ...
4 votes
3 answers
3k 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 ...
0 votes
1 answer
190 views

How to change the alpha of a tilemap if the player is in it in Unity

I'm working on a 2D game and would like to have it so when I'm entering a building, the roof fades away. This is my current attempt, I'd just like to know how to set the alpha of a tilemap through c#. ...
0 votes
1 answer
55 views

How to make texture appear only once, in the center of a cube's top face?

I'm making a platformer game and I need a texture to be only on the top face of a cube and in the centre. Can I do this without scripts or do I need scripts? Also, my texture is transparent and I need ...
0 votes
0 answers
83 views

How can I correctly draw semi transparent textures in a VBO in C++/openGL

I am using C++ glew/glfw to make a game, and I currently have different areas of the map and different entity classes using their own VBO's. So far this decision has been informed from a large part of ...
5 votes
1 answer
6k 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 ...
2 votes
3 answers
7k 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
1 answer
332 views

How can I implement semi-transparent/semi-opaque voxels in a voxel game?

I am creating a voxel game with OpenGL, and I would like to implement water. My voxel world is divided into chunks of 16x256x16 cubes (or voxels). Each chunk has its own VAO with two VBOs, the first ...
14 votes
2 answers
24k 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 (...
0 votes
0 answers
34 views

How do I make it look like the ring here is going around the spire?

I have game objects which I'm placing relative to a tilemap using the GameObject brush from the 2D Tilemap Extras package. Unfortunately, I'm not sure what is necessary to acheive the visual look I'm ...
0 votes
0 answers
81 views

Increase opacity of a floor plane along the path travelled by a cube

I have a plane object (a normal Unity 3D Plane, but it can be a complex floor in the future) and a cube is moving on the plane. Currently, the plane is transparent. I want to make the plane opaque as ...
0 votes
1 answer
159 views

How can I write an additive mesh shader that splits the RGB channels while accounting for depth?

I'm trying to create a sort of "hologram" effect. So far, what I have is an additive, three-pass shader that uses ColorMask for each pass to separate the RGB channels. The problem is that doing so ...
2 votes
1 answer
2k views

Can't make simple shader transparent in Unity

I have already visited a lot of links, but non of them did not help me. I just want to make a window as a plane (face) with texture with transparency. .shader: <...
7 votes
2 answers
6k views

What is the order-less rendering technique that allows partial transparency?

I've seen somewhere rendering technique that allows order-less rendering of partially transparent sprites/objects. Though I can't remember what the technique is called, so I'm having trouble Googling ...
1 vote
2 answers
176 views

Does OIT Rendering work for semi-transparent textures with opaque parts?

I'm Work ing on a minecraft-like game (in OpenGL with c++) and I'm tryping to Implement Transparency for Blocks like windows, ice, leafs and water. I've tried to implement Weighted Blended Order-...
1 vote
0 answers
226 views

How can transparency be implemented in a Minecraft-like game without sorting the vertices?

I'm working on a minecraft clone with OpenGL and I've been trying to implement the rendering of textures with transparency for several days now with out succes. What techniques can be used to achieve ...
0 votes
1 answer
381 views

Deferred shader for transparency. Working or not?

many people are saying defered shader is not accurate for transparency. I've done some with a small demo (Directx11) and would like to know the limit of this strategy when rendering opaque+transparent ...
1 vote
0 answers
147 views

How do I make a mask that dictates which layers are visible in Unity?

I'm trying to create an effect where the player progresses from one level to the next by a portal appearing as a rip in the fabric of time, and the portal grows until it'd half the screen, then ...
0 votes
1 answer
286 views

Sprite transparency fails when rendered through shader

I am currently trying to implement a shader to a sprite of mine, but the transparency is completely removed when the texture goes through a Sample Texture 2D node. The sprite under the Sample Texture ...
7 votes
5 answers
47k views

How can I make my Camera's RenderTexture output have a transparent background?

I'm writing a 3D game using Unity 2017.1.0b1. I have a disabled Camera that takes a "snapshot" of the current scene and stores it in a RenderTexture when a button is clicked. I then display the ...
0 votes
1 answer
482 views

Rendering order objects with transparency?

I do not know if this question might have been asked before, but which method for rendering transparency is more efficient in terms of less lag?: Rendering the scene from front to back with respect ...
0 votes
3 answers
28k views

How to change the transparency of an object in using code?

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
1 answer
748 views

Rendering to Texture with Transparency in Monogame?

Please forgive me if I'm asking a question that has been answered before, but for the life of me, search as I might, I couldn't find a problem exactly like this anywhere. I'm trying to render a ...
2 votes
2 answers
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 ...
0 votes
0 answers
323 views

Spawning projectile: it's there but does not show

Here is the code and very simple. I can see the object in the blue print and has nothing except the object itself. so all the issue should be on the C++ code. ...
0 votes
1 answer
179 views

How to set transparency in DirectX 7 surfaces, which contain 32BPP BMP files?

The following is my working code. Everything functions and I can animate my sprite but the sprite has no transparency color. It has a white background on every frame. I am using DirectX 7.0 and 32BPP ...
1 vote
2 answers
8k 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 ...
4 votes
2 answers
5k views

Can I clip a collection of geometry to render only inside a particular worldspace volume?

I am making a VR app in Unity. I have a giant map that I want to display on a virtual table. The map is too large to fit on the table, and I cannot change its size. (It is a third party asset, and ...
2 votes
1 answer
1k 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 ...
7 votes
1 answer
4k 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 ...
1 vote
0 answers
398 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 ...
7 votes
1 answer
8k views

How to write a transparent shader for a sprite that ignores transparent sprites behind it?

I have multiple UI Sprites that have their alpha set so you can see what's behind them. I would like to make these UI Sprites ignore other UI Sprites. So take this first picture. There are 4 UI ...
1 vote
2 answers
179 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
2 answers
16k 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 (...
0 votes
0 answers
210 views

How to highlight intersection between objects?

I'm new to Unity and I'm developing an augmented reality app. My situation is as follows: I have two objects in the scene, a neighborhood model and a cube. The mockup will be the object I am going to ...
1 vote
1 answer
2k views

Unity Vertex Color Shader with Transparency

I'm trying to achieve a simple effect: I have a cube mesh and I want some of the vertices to change color. In this case, I want it to form some sort of a gradient where the unchanged vertices are set ...
2 votes
2 answers
807 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 ...
16 votes
7 answers
4k 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
1 answer
1k views

XNA / MonoGame - render transparent background using stencil buffer problem (3d)

I'm trying to render 3d texture quads with the following properties: With lighting (rule out "AlphaTestEffect"). Transparent background (no opacity levels, just binary opaque or transparent). No ...
0 votes
0 answers
89 views

Alpha blending works when rendering to an FBO, but not when rendering to the screen buffer

My rendering pipeline goes something like this- Bind multisampled FBO Render GameObjects Render Transparent Objects Blit multisampled FBO to normal FBO perform any Post processing Render a quad ...
0 votes
1 answer
2k 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 ...
4 votes
3 answers
19k 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 ...
1 vote
0 answers
500 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
1 answer
674 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
4 answers
1k 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
0 answers
23 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 ...
2 votes
3 answers
7k 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
1 answer
43 views

How to get 60fps animation in terms of rounding/truncating position/alpha floats

I am wondering what gives the best animation performance running at 60fps with lots of objects. I have seen in a few places such as this that you should round or truncate your values so you don't get <...
7 votes
1 answer
601 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 ...