Pleochroma GitHub

User manual › Render and look

Chapter 28

Play-of-Color and Schiller

The flashes of precious opal and labradorite, and a structure for a custom material.

All chapters

Everything in this chapter is part of every build of the program. A design that does not switch the effect on renders, scores and saves exactly as it did before.

28.1 What You Will Do

A precious opal flashes patches of spectral color that change as you move the stone. A labradorite flashes one electric blue, green or gold across a whole face, and only from the right angle. A moonstone glows with a sheen that floats on the stone. None of these colors comes from absorption, and none comes from a dye. They come from the fine structure inside the stone. This chapter shows how to:

Chapter 27 covers inclusions with a direction, Chapter 25 the Crystal Axis, and Chapter 29 the Material Editor.

28.2 The Idea

Color From Structure#

A diffraction structure reflects only the wavelengths that fit its spacing. Where the spacing repeats evenly, the reflections from every layer add up for one wavelength and cancel for the rest. The wavelength that is reflected is given by the Bragg condition: roughly twice the spacing, times the refractive index, times the cosine of the angle between the light and the layers' normal.

Two consequences hold for both stones:

Precious Opal#

Precious opal is a close-packed array of tiny silica spheres, 150 to 300 nm across, stacked in orderly patches and surrounded by water-bearing silica. The spacing of the planes of spheres sets the color straight on: spheres of about 200 nm reflect blue (about 470 nm), spheres of about 270 nm reflect red (about 630 nm). Larger spheres therefore give the reds, which is why red is the rarest color of opal. Each orderly patch has its own orientation, so the stone is a mosaic of patches that flash at different angles. A second, weaker reflection at half the wavelength is included when it falls inside the visible range.

Labradorite#

Labradorite has stacked lamellae that formed as the crystal cooled, with a period of 150 to 250 nm. A period of about 190 nm reflects yellow (about 600 nm); 150 nm gives blue and 250 nm a deep red. The lamellae all run the same way in the crystal, so there is one direction in which the whole face flashes at once. That direction is fixed in the crystal, and the flash follows the Crystal Axis: turn the stone's axis and the flash moves with it. The program takes the lamella planes as tilted a little from one of the crystal's cleavage faces, which is an approximation: the real orientation changes with the composition of the stone.

Moonstone#

A moonstone's adularescence is a soft, floating sheen. How it forms is still debated and the numbers are not settled, so the program models it as a family of broad plates (the Adularescence preset of Chapter 27), not as a diffraction structure. You find it in the Inclusions group of the Stone tab. Moonstone has no Play-of-Color group.

28.3 The Materials

The built-in materials for this chapter are:

Material Optical character What it shows
Precious Opal (White) Isotropic, index 1.45 A milky, translucent cream-white body, with the play-of-color of its patches.
Precious Opal (Black) Isotropic, index 1.45 A dark neutral body, which makes the colors stand out as on a black opal.
Labradorite Biaxial (+), indices about 1.559, 1.5625 and 1.567 A translucent olive-gray body and the schiller, fixed in the crystal. Its lamellae lie parallel to the table until you turn the Crystal Axis, as a labradorite is cut to flash face-up.
Moonstone Biaxial (−), indices about 1.518, 1.523 and 1.526 Adularescence from the Inclusions group.

The older Opal is unchanged: a plain colorless body opal with no play-of-color. Choose it when you want the plain stone.

The dispersion of Labradorite is a placeholder of the right size taken from moonstone, since no measured value was found. The indices are values from the published ranges.

28.4 In the Stone Tab

For a material that has a structure, the Stone tab shows a Play-of-Color group (opal) or a Schiller group (labradorite) under the Inclusions group. Choosing Precious Opal (White), Precious Opal (Black) or Labradorite in the material list switches it on with the material's own values, in the same undoable step as the material, so the stone looks like the gem straight away; the white opal also gets its milky body as Inclusion Haze and the labradorite its translucent one (less of it, since a dense haze hides the schiller), and a Moonstone gets its Adularescence preset in the Inclusions group (Chapter 27). Whatever the design already had stays, and a switch you turn off afterwards stays off. For any other material, switch on Show Play-of-Color (or Show Schiller) yourself: the settings start from the material's own values. Each choice below is saved in the design as one undoable step. On the command line, --material does the same for a render job.

With the view on Ray-Traced the group adds "Ray-Traced ignores Play-of-Color. Switch to Path-Traced to see it." A custom material with its own structure is listed under the group's header as part of the material, and edited in the Material Editor.

What to Expect#

Video tutorials · all videos

Opal Play-of-Color · 2:30
Labradorite Flash · 1:53

28.5 A Custom Material With a Structure

In the Material Editor (Chapter 29) the Play-of-Color section lets a custom material behave like an opal or a labradorite:

A structure that names no kind is saved but not rendered; the section says so and shows "Stored, Not Rendered". A custom material's structure is saved with the material and travels in the [material.custom] table of a design that uses it. The design keeps its own choice, so a design can still change the pattern and the seed.

28.6 Where It Shows and Where It Does Not

28.7 Files

A design's choice is saved in an optional [render_effects.structure] table: pattern, seed, size (only when set), color_low_nm, color_high_nm, purity and coverage. A custom material's structure is stored with the material as text, and as the structure key in [material.custom]; the kind it imitates travels in it. All of it is written only when used, so a design without it is byte for byte what an older build wrote (Chapter 11).

28.8 Limitations

28.9 Troubleshooting

Symptom Cause What to do
The Stone tab has no Play-of-Color or Schiller group The material has no structure. Pick Precious Opal (White), Precious Opal (Black) or Labradorite, or a custom material that imitates one.
The group is there but the stone looks plain Show Play-of-Color is off, or the view is Ray-Traced. Switch it on; use Path-Traced.
The colors are washed out Purity is high, or Coverage is low. Lower the Purity number, raise the Coverage.
The patches are too small or too large The pattern does not suit the stone. Try another Pattern, or Set Patch Size.
A labradorite is dark from the front The face-up direction is outside the flash cone. Turn the Crystal Axis (Chapter 25), or tilt the stone.
A different arrangement every time I reopen the design It is not; the seed is saved. Check you have not pressed Reseed.
The picture is slow to settle Following light through many patches may take longer. Use the graphics card or a remote worker (Chapter 10).

28.10 Next Steps

Chapter 27 covers the inclusions that scatter light, Chapter 25 the Crystal Axis, Chapter 26 the surface finish, Appendix C the built-in materials, and Chapter 22 the tutorials: Opal Play-of-Color and Labradorite Flash.