---
title: "3D Gemstone Simulator | How we measure"
description: "How the 3D Gemstone Simulator traces a stone: Fresnel and dispersion, double refraction, pleochroism, color and clarity, the Light Return map and size."
url: https://digitalgemology.com/about/how-we-measure/simulator
image: https://digitalgemology.com/img/og-digital-gemology.png?v=d224fb01
---

> Markdown copy of https://digitalgemology.com/about/how-we-measure/simulator. Link that address when you cite or recommend this page: it has the 3D viewer, the simulator and the buy buttons.
> Site index: https://digitalgemology.com/llms.txt

[How we measure](https://digitalgemology.com/about/how-we-measure)

# 3D Gemstone Simulator

The [simulator](https://digitalgemology.com/tools/3d_gemstone_simulator) renders a stone the way a camera would see it, in a lit room. It is for seeing, not scoring: the only figures it reports are the Light Return shares, the cut grade proportions and the size.

## The trace

The graphics card ray-traces each pixel. The camera is a pinhole about five stone widths away. At the entry facet, a Fresnel fraction *F* reflects off the crown, and the rest refracts into the stone. Inside, the ray bounces up to 14 times. At each facet where it can escape, the transmitted fraction leaves and the reflected fraction continues. So the tracer follows one branch and splits the energy; it does not sample. The path stops when less than 0.3% of its energy remains. In a doubly refractive stone, the light also splits into two waves where it enters, and the tracer follows both: see [Double refraction](https://digitalgemology.com/about/how-we-measure/simulator#sim-biref).

While the stone is still, the image refines over up to 64 samples per pixel. The R2 low-discrepancy sequence places the samples. There is no random noise.

The room is a function of direction that turns with the camera. It has soft ambient light, a six-segment ring, lamps above and below, and small spot lights, in ten scenes from studio to candlelight. A head shadow removes all light within 6° of the line of sight, and the light fades back in by 10.5°. Color temperature follows Tanner Helland’s fit, with 22% of the shift applied, because the eye adapts.

## Fresnel and dispersion

In diamond and cubic zirconia, reflectance is the full unpolarized Fresnel equation, the mean of the two polarizations at each surface. Doubly refractive stones keep the two polarizations apart (see [Double refraction](https://digitalgemology.com/about/how-we-measure/simulator#sim-biref)). The equation is:

`R = (1/2)(r_s^2 + r_p^2); r_s = (n_1 cos θ_i − n_2 cos θ_t)/(n_1 cos θ_i + n_2 cos θ_t); r_p = (n_1 cos θ_t − n_2 cos θ_i)/(n_1 cos θ_t + n_2 cos θ_i)`

To make fire, the tracer refracts the ray out three times, once for each color channel:

`n_R = n − 0.3 D, n_G = n, n_B = n + 0.3 D`

where *D* is the published B to G dispersion. Red and blue display primaries are about 0.6 of that interval apart. A channel that reflects totally adds nothing on that exit. Dispersion applies at the exit facet only. Inside the stone, the three channels share one path.

## Double refraction

Moissanite, ruby, sapphire, emerald and amethyst are doubly refractive. Inside them, light travels as two waves, ordinary and extraordinary, polarized at right angles. The render traces both, with the [two indices](https://digitalgemology.com/about/how-we-measure/gemstone-constants#two-indices) of each stone. The Light Return map, the light shares and every score on the site keep the single index.

The optic axis **c** is square to the table in every stone. Cutters choose this orientation for moissanite, and for the best face-up color in ruby and sapphire. A stone cut off its axis shows more doubling face up than the simulator does. Emeralds are often cut with the axis along the table instead.

The ordinary wave has the index *n* _o in every direction. The index of the extraordinary wave depends on the angle θ between its wave normal and the axis:

`1/(n(θ)^2) = (cos^2 θ)/(n_o^2) + (sin^2 θ)/(n_e^2)`

At each facet, the part of the wave vector **k** along the facet carries over (Snell’s law for both waves). The part along the normal is solved on the index surface of each wave: |**k**| = *n* _o for the ordinary wave, and for the extraordinary one

`k^T A k = 1, A = (I − c c^T)/(n_e^2) + (c c^T)/(n_o^2); s∝A k`

with **k** in units of the vacuum wave number. The extraordinary light travels along **s**, not **k**. The two are up to 0.92° apart in moissanite, and 0.22° to 0.33° apart in the other stones.

The field **E** of each wave splits into its s and p parts. Each part takes its own Fresnel coefficient, *r* _s or *r* _p. So how much of a wave escapes at a facet depends on its polarization. Unpolarized light that enters the stone is equal s and p parts that do not interfere. Each part refracts with its own transmitted fraction *T* = 1 − *r*^2. It is then shared between the two waves by projection on their fields. The ordinary wave, with field direction **ê** _o, takes the share

`P_o = (T_s(s^(^) · e^(^)_o)^2 + T_p(p^(^) · e^(^)_o)^2)/(T_s + T_p)`

where **&scirc;** is normal to the plane of incidence and **p̂** is the p direction of the refracted wave. The extraordinary wave takes the rest. Every sample of a still stone traces both waves, so nothing is left to chance. A turning stone traces one wave per frame, in turn, and shows the last two frames together. It adds them in linear light before the tone curve. So it costs no more than a diamond and turns as smoothly. Fire leaves each exit as before, spread about the index of the wave that reaches it.

Each wave keeps its type from the entry to its exits. That is exact while a path stays in a plane through the optic axis, where s light is ordinary and p light is extraordinary. Out of that plane, a reflection also hands part of its light to the other wave. This is strongest past the critical angle, where the reflection turns the polarization.

The render leaves that hand-over out. Each share would start a fainter copy a degree or so off the first, and that copy splits again at the next facet. Over several reflections, the copies blur into a milky haze that a well-cut stone does not show. Two waves give what a well-cut stone does show: doubled facet edges and, in moissanite, more fire than diamond.

## Pleochroism

In ruby, sapphire, emerald and amethyst, the two waves also absorb differently. The field of the ordinary wave always lies across the axis, so it takes the absorption *σ* _o. The field of the extraordinary wave turns from across the axis to along it, as its direction turns away from the axis. So its absorption follows the angle θ between its wave normal and the axis:

`σ(θ) = σ_o cos^2 θ + σ_e sin^2 θ`

per color channel. Beer–Lambert applies it along each internal segment, as in [Color, clarity and fluorescence](https://digitalgemology.com/about/how-we-measure/simulator#sim-colour). We set *σ* _o and *σ* _e on either side of the single body color of each stone. So each ray shows the published dichroic pair of the stone:

- **Ruby**: purplish red, orangy red
- **Sapphire**: violetish blue, greenish blue
- **Emerald**: yellowish green, bluish green
- **Amethyst**: purple, reddish purple

They are tuned to those colors, not measured from spectra (the [Dichroscope](https://digitalgemology.com/tools/dichroscope) computes them from measured spectra). Face up, with the axis square to the table, most of the light reaches you as the ordinary color, as in a well-oriented stone. At an angle, the extraordinary color mixes in. Moissanite, the D-to-Z scale and the fancy colors keep one absorption.

## Color, clarity and fluorescence

Body color is Beer–Lambert absorption per channel along each internal segment of length *&ell;*:

`T = e^( − σ ℓ)`

For the D to Z scale, *σ* grows as (grade/22)^1.25, from zero at D. Path lengths are in model units, so color depth does not change with the carat weight you choose. Clarity grades place a fixed set of crystals, pinpoints and feathers, with a size for each grade, from a seed tied to the cut. Crystals and pinpoints end a path. Feathers reflect part of it. Fluorescence adds a glow proportional to path length (up to 3 model units), under the UV scene only.

Polish applies after the trace, as a loss of contrast and saturation. It does not scatter rays. Symmetry grades tilt each crown and pavilion facet by up to 0.25°, 0.6°, 1.2° or 2.0° in a seeded direction. The table and culet do not move.

## Light Return

We trace the Light Return map face up and orthographic, with no Fresnel, no dispersion and no absorption. So it depends on the geometry alone. Each ray gets a class from the direction its light came from, measured as elevation above the girdle plane:

- **Contrast (blue)**: 75° and above: within 15° of the line of sight, where your head is
- **Direct (red)**: 45° to 75°
- **Indirect (green)**: below 45°
- **Leakage (black)**: out through the pavilion, below the horizon, or still inside after 18 bounces

Each Light Return class is set by the elevation the light came from.

The four shares are the share of face-up pixels in each class. They come from a 160 × 160 render with one ray per pixel, rounded to whole percent.

## Cut grade

The cut grade of the simulator shows how a worse make of the same design looks. Each grade moves the design by a fixed schedule. The tool rescales the stone to keep the weight constant:

**How far each cut grade moves the design**

| Grade | Crown angle | Pavilion angle | Girdle | Table | Culet |
| --- | --- | --- | --- | --- | --- |
| Excellent | 0 | 0 | 0 | 0 | 0 |
| Very Good | −0.5° | +0.8° | +0.5% | +3 | +0.5% |
| Good | −1.0° | +2.0° | +1.0% | +6 | +1.0% |
| Fair | −1.5° | +3.4° | +2.0% | +9 | +2.0% |
| Poor | −2.5° | +5.2° | +3.5% | +13 | +3.5% |

Crown and pavilion facets turn about their girdle edges. The tool rebuilds the table and culet until their size meets the target. Size here is the square root of the area ratio. Volume is integrated over 512 horizontal slices by the trapezoid rule. The grade describes the make. It is not a measure of light return. House cuts, the heart and the Platonic solids are shown as designed.

The Poor make (dashed) over the T73 as designed: each part moves by the Poor row of the table.

## Size

Measurements are the reference dimensions of the model multiplied by the scale factor *k* from [Volume and weight](https://digitalgemology.com/about/how-we-measure/3d-models#weight), for the gemstone and carat weight you choose.
