ArticleslgStudy

science

Open Shading Language

Open Shading Language is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Open Shading Language rather than just read about it. In short: Open Shading Language (OSL) is a shading language developed by Sony Pictures Imageworks for use in its Arnold Renderer. It is also supported by Illumination Research's 3Delight renderer, Otoy's Octane Render, V-Ray 3, Redshift (from April 2021), and the Cycles render engine in Blender (starting with Blender 2.65).

Open Shading Language — main illustration
Open Shading Language — illustration

Key takeaways

  • Open Shading Language belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Open Shading Language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Open Shading Language from memory before moving on to harder problems.

Reference excerpt

Open Shading Language (OSL) is a shading language developed by Sony Pictures Imageworks for use in its Arnold Renderer. It is also supported by Illumination Research's 3Delight renderer, Otoy's Octane Render, V-Ray 3, Redshift (from April 2021), and the Cycles render engine in Blender (starting with Blender 2.65). OSL's surface and volume shaders define how surfaces or volumes scatter light in a way that allows for importance sampling; thus, it is well suited for physically based renderers that support ray tracing and global illumination. RenderMan has limited OSL support that is used only for patterns; i.e. without any material closure (shading) functionality. It is modified there for better AVX2 and AVX-512 instruction set support with doubled performance. Release 1.12 supports C++14 as default, but also newer C++17 and C++20. OpenImageIO support will be dropped for 2.0 with support of 2.2. Minimum OpenEXR Version changes up to 2.3. SIMD Batch shader Mode and OptiX support are in development and experimental. CUDA 11 and OptiX 7.1 are here supported levels. 1.12.6 is supported in Blender 3.4. 1.12.6.2 is the first new release of the 1.12 series with a stable API. 1.12.13 is the current version.

Origin Larry Gritz explains the origin of Open Shading Language:

We had a renderer (Sony Imageworks's fork of the Arnold renderer) where shaders were implemented as C++ plugins, and that had many problems. We desired a shading language for the renderer, and this is the one I designed. In addition to just wanting a language, we also sought to make many improvements over previous shading languages. We explained a lot of the details about the new ideas in this SIGGRAPH 2010 talk 'Open Shading Language'. And apparently, the rest of the industry agreed, because it resulted in an 2017 Academy technical achievement award.

Movies Many movies made in 2012 or later have used OSL, including:

2017

2018

2019

2020

2021

See also Shading language 3Delight Arnold Render Engine Blender Octane Render RenderMan

References

External links Official website

Illustrations

Open Shading Language illustration

Worked examples

Example 1 — a first encounter with Open Shading Language

Start with the simplest possible case. Write down what Open Shading Language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Open Shading Language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Open Shading Language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Open Shading Language

In research
Open Shading Language appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Open Shading Language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Open Shading Language is common in secondary-school and first-year university syllabi. It links to neighbouring topics Shading languages, so understanding it makes those chapters shorter.
In everyday life
Look for Open Shading Language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Open Shading Language” →

How to study Open Shading Language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Open Shading Language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Open Shading Language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Open Shading Language in simple terms?

Open Shading Language (OSL) is a shading language developed by Sony Pictures Imageworks for use in its Arnold Renderer. It is also supported by Illumination Research's 3Delight renderer, Otoy's Octane Render, V-Ray 3, Redshift (from April 2021), and the Cycles render engine in Blender (starting wit…

Why does Open Shading Language matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Open Shading Language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Open Shading Language.

Tags

  • Shading languages

Keep exploring