Opacity describes how much a material, object, or pixel blocks light from passing through it.
In simple terms:
- high opacity means something is hard to see through
- low opacity means something is more transparent
So opacity is the opposite of transparency.
Main idea
Opacity is usually represented by a value between 0 and 1:
where:
means fully transparent means fully opaque - values in between mean partially transparent
This is why opacity is often associated with an alpha value.
In computer graphics
In graphics, opacity controls how much of a foreground color is visible compared to the background behind it.
If a pixel has:
- high opacity, it mostly covers what is behind it
- low opacity, more of the background shows through
This is important for things like:
- glass
- smoke
- fog
- shadows
- UI overlays
- particle effects
Alpha blending
Opacity is commonly used in alpha blending, where a foreground color is combined with a background color.
A simple version is:
So:
- if
, you only see the foreground - if
, you only see the background - if
, you see a 50-50 mix
This is the core idea behind transparency effects in rendering.
Example
Suppose a red foreground is placed over a blue background.
If the red layer has opacity
then the final pixel is mostly red, but some blue still shows through.
If instead
then the result is mostly blue with only a small red contribution.
Opacity vs transparency
Opacity and transparency describe the same idea from opposite directions.
- opacity asks: how much is blocked?
- transparency asks: how much passes through?
So if opacity is high, transparency is low.
Connection to 3DGS
In 3DGS, each Gaussian has an opacity parameter:
This controls how strongly that Gaussian contributes to the rendered image.
A Gaussian with:
- high opacity contributes strongly
- low opacity contributes weakly
That is why very low-opacity Gaussians can often be pruned during training.
Intuition
The best mental model is:
Opacity tells you how much something covers what is behind it.
If opacity is 1, it completely covers the background.
If opacity is 0, it contributes nothing visible.
Values in between mean partial contribution.