Article View: comp.graphics.rendering.misc
Article #1An Introduction To Open Shading Language
From: Lawrence D'Oliveiro
Date: Wed, 30 Jul 2025 00:14
Date: Wed, 30 Jul 2025 00:14
26 lines
2505 bytes
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.
Technical Details
Message-ID:
<106bo50$2u9pq$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <106bo50$2u9pq$2@dont-email.me> Subject: An Introduction To Open Shading Language Date: Wed, 30 Jul 2025 00:14:24 +0000 From: Lawrence D'Oliveiro <ldo@nz.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Newsgroups: comp.graphics.animation,comp.graphics.rendering.misc Organization: A noiseless patient Spider Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 30 Jul 2025 00:14:25 +0000 (UTC) Injection-Info: dont-email.me; posting-host="bfe53f363bdbd448d37b20678e1d9fce"; logging-data="3090234"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18k25ZPmmvU29CfMlYA5Raf" User-Agent: Pan/0.162 (Pokrosvk) Cancel-Lock: sha1:6XnK69JZifYpjLGTPfMr5U28B7A=