# Questions tagged [transparency]

The tag has no usage guidance.

24 questions
Filter by
Sorted by
Tagged with
64 views

### How to draw depth-based volume in real-time

Normally when we talk about realistic transparent volumes, we care about refraction (and total internal reflection), and we care about scattering. But there's a much simpler case of volume ...
170 views

### Blur with alpha transparency

I'm writing a simple box blur for a graphics library. The formula makes the average of a range of pixels by adding the ARGB amounts and then dividing by the blur range For example, with a blur range ...
132 views

The Unity Engine manual page Best Practice: Setting up the Lighting Pipeline has a section "Render pipelines" with an illustration of Tile Rendering and Cluster Rendering: The section then mentions:...
159 views

### How does the Painter's Algorithm handle transparency?

I was wondering if anyone could explain how the Painter's algorithm would handle transparent objects? Can the Painter's algorithm handle transparency?
30 views

### Can order-independent transparency sort fragments for a subset of all transparent objects?

I've read Wikipedia's article on the topic, and a tutorial on how it affects MikuMikuDance. I tried to read a patent on "packing the 3D array with a prefix sum scan, or linearizing", but I have no ...
127 views

### Why is this not a proper solution to handling transparency in deferred rendering?

From the sources that I have read about deferred rendering they all mention "handling transparency is hard" without much more information. However a solution that I see is, handle the scene once ...
541 views

### Is it possible to override or disable blending per pixel

I'm rendering transparent objects in separate framebuffer then compositing it with opaque one to get final image. The transparent pass has additive blending: ...
237 views

### using default depth buffer in off-screen framebuffer

I'm trying to implement Weighted, Blended Order-Independent Transparency There are three passes: 3D opaque surfaces to a primary framebuffer 3D transparency accumulation to an off-screen framebuffer ...
192 views

### Avoid having an opaque and transparent variant of each pixel shader

Transparency can be achieved (or actually approximated) by using alpha-to-coverage (in case of MSAA) or basic alpha/transparency blending using the following approach: Bind a rasterizer state with a ...
113 views

### Cloud rendering and transparency order

I am working on a graphics engine designed to be used in flight simulators. It therefore has to feature an advanced weather rendering system with clouds you can fly through. For this, I implemented a ...
296 views

### Are there tricks for getting proper sort ordering on particle systems?

If you have a bunch of particles to render, using different shaders and/or render states, that have some level of transparency, the naive solution of sorting all particles by depth can be extremely ...
1k views

### Does premultiplied alpha give order independent transparency?

I've heard that pre-multiplied alpha gives you order independent transparency but when I sit down and do the math, it doesn't seem to be working. Is that untrue, or am I doing something incorrectly? ...
2k views

### Alpha blending between two overlapping semi-transparent shapes

I am working on a 2D lighting system for my game. My approach has been to: Create a transparency quad representing 'darkness'. Create a stencil shader for light sources to clip from the darkness quad....
139 views

### Equivalent of Fresnel law for determining transmitted/diffuse split

I understand that Fresnel tells us what percentage of light reflects vs refracts, but what law tells me the percentage of refracted light that is transmitted versus the percentage of refracted light ...
274 views

### Volumetric raycasting with transparent rasterized geometry

I have an idea of how to render opaque rasterized geometry alongside raycast volumes: Render rasterized geometry to a depth map and also a render target When raycasting, check position against the ...
1k views

### Additive blending with weighted-blended order independent transparency

I am trying to retrofit weighted blended OIT to my rendering pipeline and while it works well, producing convincing results, for normal alpha blending (based on the OVER) operator, I am struggling to ...
482 views

### Only show opaque objects behind transparent objects

I would like to make certain objects in my scene transparent, but only the parts visible to the camera when opaque. Currently, when I make objects transparent, I can see other transparent objects ...
152 views

### How to store > 256 transparency values in textures?

I am making an engine with 2D volumetric transparent objects and need advice how to store transparency data. There are 3 requirements: - The transparency textures need to be easily editable with ...
64 views

### In what order to apply lighting and translucency?

I'm making a game that is supposed to like like a early 90s 3D game, so i'm rendering in software on an 8-bit indexed bitmap, using lookup tables for translucency and lighting. Now I have to draw a ...
128 views

I have a game that has simple particles (basically dots) moving around the screen leaving a trail. My ultimate goal is to be able to change the opacity of the solid black fading texture each drawing ...
336 views

### Why integrate over a hemisphere (and not a sphere) to solve the rendering equation?

In most text books that I have seen, this is how the rendering equation is written: $$L_0( \omega_0)= L_e(\omega_0)+\int_{\Omega}{f(\omega_i, \omega_0)L_i(\omega_i)\,\mathrm{d}\omega_i}$$ Where \$\...
546 views

### Is this the correct way to implement Beer's Law?

When I implement Beer's law (color absorption over distance through an object), it never looks very good for some reason. When i have the color behind the object, I calculate the adjusted color like ...