🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.graphics.rendering.misc
1 messages
1 total messages Started by Lawrence D'Oliveiro Wed, 30 Jul 2025 00:14
An Introduction To Open Shading Language
#1
Author: Lawrence D'Oliveiro
Date: Wed, 30 Jul 2025 00:14
26 lines
2505 bytes
Been watching the video from this course
<https://dl.acm.org/doi/10.1145/3664475.3664534> that was presented by
a certain Mitch Prater at SIGGRAPH 2024 on writing OSL shaders. OSL is
supported nowadays by a bunch of 3D tools, among them RenderMan and
Blender. It seems the only one of these the presenter is familiar with
is RenderMan.

What struck me is, in a two-hour talk, he didn’t once go into the
concept of the “closure color”, which is the special OSL type that
encapsulates the totality of the interaction between light and the
material. He gives example shaders that compute elaborate textures
and transform between coordinate systems, but nothing on closures.
Without these, what kind of renderer would you have?

Could it be that RenderMan does not support that feature of OSL?

In OSL (at least the current version), you do not construct closure
values from scratch. Instead, you start with the builtin closure
functions that represent elemental material characteristics like
diffuse, glossy etc
<https://open-shading-language.readthedocs.io/en/v1.13.12.0/stdlib.html#material-closures>,
and compose these into expressions that evaluate to the desired
overall material behaviour.

If you want a renderer that does integrate the totality of OSL,
including closures, have a look at Blender Cycles.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads