<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Matt Castley — Lab</title>
<link>https://mattcastley.com/lab/</link>
<description>Experiments, notes and small studies by Matt Castley.</description>
<language>en-gb</language>
<atom:link href="https://mattcastley.com/lab/rss.xml" rel="self" type="application/rss+xml"/>
<lastBuildDate>Sat, 14 Nov 2026 00:00:00 GMT</lastBuildDate>
<item><title>Deep output in hdCycles</title><link>https://mattcastley.com/lab/hdcycles-deep/</link><guid isPermaLink="true">https://mattcastley.com/lab/hdcycles-deep/</guid><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate><category>Note</category><category>rendering</category><category>compositing</category><category>cycles</category><description>Deep colour, compositing and deep filtering in hdCycles.</description><content:encoded><![CDATA[<p>hdCycles writes deep EXRs for surfaces, transparency and volumes, with motion blur, checkpointing and recovery.</p>
<h2 id="deep-compositing">Deep compositing</h2>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/insertion.4KFn3n9B_1YOOJP.avif 640w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/insertion.4KFn3n9B_1xoPQ2.webp 640w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/insertion.4KFn3n9B_1xoPQ2.webp" srcset="https://mattcastley.com/_astro/insertion.4KFn3n9B_1xoPQ2.webp 640w" alt="A Macbeth colour chart moves from in front of a smoky bunny and fireball, through the smoke, to behind it." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="640" height="360" class="figure__img"></picture><figcaption class="figure__caption"><span>Macbeth chart inserted in comp from a single deep render.</span></figcaption></figure>
<h2 id="deep-filtering">Deep filtering</h2>
<p>Deep colour filtering preserves depth, IDs and alpha.</p>
<figure><img src="https://mattcastley.com/_astro/wipe-raw.Db_mACzR_Z2wQ9u6.jpg" alt="The same bunny-shaped smoke cloud before and after deep filtering. (Raw)" loading="lazy" decoding="async" width="1200" height="675"><figcaption>Raw</figcaption></figure><figure><img src="https://mattcastley.com/_astro/wipe-filtered.BHOBoGyZ_ZQYWPb.jpg" alt="The same bunny-shaped smoke cloud before and after deep filtering. (Filtered)" loading="lazy" decoding="async" width="1200" height="675"><figcaption>Filtered · The same deep image, before and after filtering.</figcaption></figure>
<p>Smaller deep files and better filtering of emissive volumes are in progress.</p>
<h2 id="credits">Credits</h2>
<p>OpenVDB sample volumes, CC BY 4.0. Bunny shape: Stanford 3D Scanning Repository.</p>]]></content:encoded></item>
<item><title>Lighting in hdCycles</title><link>https://mattcastley.com/lab/hdcycles-lighting/</link><guid isPermaLink="true">https://mattcastley.com/lab/hdcycles-lighting/</guid><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate><category>Note</category><category>lighting</category><category>usd</category><category>cycles</category><description>Light linking, light filters and corrected light units in hdCycles.</description><content:encoded><![CDATA[<h2 id="light-linking">Light linking</h2>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/light-unlinked.D94tGpVR_1iBfiO.avif 640w, https://mattcastley.com/_astro/light-unlinked.D94tGpVR_1h9ycf.avif 960w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/light-unlinked.D94tGpVR_Z2mShBD.webp 640w, https://mattcastley.com/_astro/light-unlinked.D94tGpVR_Z2okXId.webp 960w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/light-unlinked.D94tGpVR_Z27Vz6F.webp" srcset="https://mattcastley.com/_astro/light-unlinked.D94tGpVR_Z2mShBD.webp 640w, https://mattcastley.com/_astro/light-unlinked.D94tGpVR_Z2okXId.webp 960w" alt="A pink light illuminates the rat, cheese, floor and backdrop." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1280" height="720" class="figure__img"></picture><figcaption class="figure__caption"><span>Unlinked.</span></figcaption></figure><figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/light-linked.BCBnTWT8_1f9LKU.avif 640w, https://mattcastley.com/_astro/light-linked.BCBnTWT8_2gqd4m.avif 960w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/light-linked.BCBnTWT8_qQDhW.webp 640w, https://mattcastley.com/_astro/light-linked.BCBnTWT8_1s84Ao.webp 960w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/light-linked.BCBnTWT8_2rsFOx.webp" srcset="https://mattcastley.com/_astro/light-linked.BCBnTWT8_qQDhW.webp 640w, https://mattcastley.com/_astro/light-linked.BCBnTWT8_1s84Ao.webp 960w" alt="The same pink light illuminates only the rat." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1280" height="720" class="figure__img"></picture><figcaption class="figure__caption"><span>Linked to the rat.</span></figcaption></figure>
<p>Also supports shadow linking and filter linking.</p>
<h2 id="light-filters">Light filters</h2>
<p>Light filters matching the Hydra RenderMan set, adapted to Cycles conventions: Rod, Cookie, Barn, Ramp and intensity filters.</p>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/light-filters.B4vjvMQ4_1m7AQ2.avif 640w, https://mattcastley.com/_astro/light-filters.B4vjvMQ4_Z1Ik0L5.avif 960w, https://mattcastley.com/_astro/light-filters.B4vjvMQ4_Zej29V.avif 1400w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/light-filters.B4vjvMQ4_1IT1dI.webp 640w, https://mattcastley.com/_astro/light-filters.B4vjvMQ4_Z1lxAoo.webp 960w, https://mattcastley.com/_astro/light-filters.B4vjvMQ4_1anyIx.webp 1400w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/light-filters.B4vjvMQ4_Z114I9A.webp" srcset="https://mattcastley.com/_astro/light-filters.B4vjvMQ4_1IT1dI.webp 640w, https://mattcastley.com/_astro/light-filters.B4vjvMQ4_Z1lxAoo.webp 960w, https://mattcastley.com/_astro/light-filters.B4vjvMQ4_1anyIx.webp 1400w" alt="Three spheres under an unfiltered light, a checkerboard Cookie filter and a Barn filter." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1440" height="270" class="figure__img"></picture><figcaption class="figure__caption"><span>Unfiltered · Cookie · Barn.</span></figcaption></figure>
<h2 id="light-units">Light units</h2>
<p>Corrected intensity, scaled sphere lights and area lights across scene units, including normalised lights.</p>
<p>Street Rat: Sean Buckley, Poly Haven, CC0.</p>]]></content:encoded></item>
<item><title>Subdivision and true displacement in hdCycles</title><link>https://mattcastley.com/lab/hdcycles-subdivision/</link><guid isPermaLink="true">https://mattcastley.com/lab/hdcycles-subdivision/</guid><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate><category>Note</category><category>rendering</category><category>usd</category><category>cycles</category><category>performance</category><description>Render-time subdivision, true displacement and screen-space dicing in hdCycles.</description><content:encoded><![CDATA[<p>Render-time Catmull-Clark subdivision and true displacement, with screen-space dicing. Set <code>cycles:subdivision:mode</code> to <code>none</code> to disable subdivision.</p>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_fRcTD.avif 640w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_2waSOD.avif 960w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_2lTHc8.avif 1400w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_Z2cs6MT.avif 2000w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_Z1WgkL2.webp 640w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_j2l8X.webp 960w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_ZcPwky.webp 1400w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_iXMtl.webp 2000w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_Z2ivWw8.webp" srcset="https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_Z1WgkL2.webp 640w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_j2l8X.webp 960w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_ZcPwky.webp 1400w, https://mattcastley.com/_astro/subdiv-showcase.Bz2LtHx5_iXMtl.webp 2000w" alt="A low-poly ground plane and rock before and after subdivision and displacement." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="2566" height="720" class="figure__img"></picture><figcaption class="figure__caption"><span>The same scene, before and after subdivision and true displacement.</span></figcaption></figure>
<p>The crease bug and Moana subdivision crash are fixed. Subdivision memory use remains a constraint; the island renders use control cages.</p>]]></content:encoded></item>
<item><title>The Moana Island Scene in three renderers</title><link>https://mattcastley.com/lab/hdcycles-island/</link><guid isPermaLink="true">https://mattcastley.com/lab/hdcycles-island/</guid><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate><category>Note</category><category>rendering</category><category>usd</category><category>cycles</category><category>lighting</category><description>The Moana Island Scene in hdCycles, RenderMan and Karma.</description><content:encoded><![CDATA[<p>The same culled shots in hdCycles, RenderMan and Karma. RenderMan uses the original materials; hdCycles and Karma use a portable conversion.</p>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/island-hero.BDMfEe9v_ZwFOWo.avif 640w, https://mattcastley.com/_astro/island-hero.BDMfEe9v_ZGuP2h.avif 960w, https://mattcastley.com/_astro/island-hero.BDMfEe9v_Z1FO8bc.avif 1400w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/island-hero.BDMfEe9v_Zeg3qA.webp 640w, https://mattcastley.com/_astro/island-hero.BDMfEe9v_Zo53vt.webp 960w, https://mattcastley.com/_astro/island-hero.BDMfEe9v_Z2u7gEa.webp 1400w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/island-hero.BDMfEe9v_s7kBV.webp" srcset="https://mattcastley.com/_astro/island-hero.BDMfEe9v_Zeg3qA.webp 640w, https://mattcastley.com/_astro/island-hero.BDMfEe9v_Zo53vt.webp 960w, https://mattcastley.com/_astro/island-hero.BDMfEe9v_Z2u7gEa.webp 1400w" alt="Palms against a green mountain and cloudy sky, rendered in hdCycles." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1920" height="804" class="figure__img"></picture><figcaption class="figure__caption"><span>Moana Island Scene, hdCycles.</span></figcaption></figure>
<h2 id="three-renderers">Three renderers</h2>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/island-sheet.CTY7bjbT_Z2l073N.avif 640w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_Fid8e.avif 960w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_1cuKKi.avif 1400w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_ZY3Fcr.avif 2000w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_z62CE.avif 2800w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/island-sheet.CTY7bjbT_1USSha.webp 640w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_Z7YUkJ.webp 960w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_1zhb7Y.webp 1400w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_ZBhfOK.webp 2000w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_VRs0l.webp 2800w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/island-sheet.CTY7bjbT_Z1Wukhz.webp" srcset="https://mattcastley.com/_astro/island-sheet.CTY7bjbT_1USSha.webp 640w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_Z7YUkJ.webp 960w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_1zhb7Y.webp 1400w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_ZBhfOK.webp 2000w, https://mattcastley.com/_astro/island-sheet.CTY7bjbT_VRs0l.webp 2800w" alt="The same palm shot side by side in hdCycles, RenderMan and Karma." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="2944" height="580" class="figure__img"></picture><figcaption class="figure__caption"><span>hdCycles · RenderMan RIS · Karma.</span></figcaption></figure>
<p><a href="https://mattcastley.com/lab/hdcycles-speed-memory/">Compare the renders</a>.</p>
<h2 id="wider-shots">Wider shots</h2>
<figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_JxYrl.avif 640w, https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_jT4kH.avif 960w, https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_ppOI7.avif 1400w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_mlxay.webp 640w, https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_Z3imV5.webp 960w, https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_Z1cuJap.webp 1400w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_Z1K34tC.webp" srcset="https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_mlxay.webp 640w, https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_Z3imV5.webp 960w, https://mattcastley.com/_astro/beachCam-probe-three-up.BWlBaF1U_Z1cuJap.webp 1400w" alt="The same beach shot in hdCycles, RenderMan and Karma." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1984" height="446" class="figure__img"></picture><figcaption class="figure__caption"><span>Beach shot. Low-resolution memory test.</span></figcaption></figure><figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_1j48vE.avif 640w, https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_18cEji.avif 960w, https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_rA9i8.avif 1400w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_1Ckg4O.webp 640w, https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_1rsLRs.webp 960w, https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_4nH1l.webp 1400w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_Z1Dxntj.webp" srcset="https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_1Ckg4O.webp 640w, https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_1rsLRs.webp 960w, https://mattcastley.com/_astro/shotCam-probe-three-up.gv7gQrP6_4nH1l.webp 1400w" alt="The same long shot in hdCycles, RenderMan and Karma." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1984" height="446" class="figure__img"></picture><figcaption class="figure__caption"><span>Long shot. Low-resolution memory test.</span></figcaption></figure><figure class="figure"><picture><source srcset="https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_ZWwWV7.avif 640w, https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_Z1k5JHL.avif 960w, https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_u0cDv.avif 1400w" type="image/avif" sizes="(min-width: 1000px) 960px, 94vw"><source srcset="https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_J8Wxu.webp 640w, https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_mAaKP.webp 960w, https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_2kjsuX.webp 1400w" type="image/webp" sizes="(min-width: 1000px) 960px, 94vw"><img src="https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_Z26uhOT.webp" srcset="https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_J8Wxu.webp 640w, https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_mAaKP.webp 960w, https://mattcastley.com/_astro/beachCam-hdcycles.BJ4h3Ayf_2kjsuX.webp 1400w" alt="A leaning tree and flowering bushes over pale sand, with a palm-lined shore." sizes="(min-width: 1000px) 960px, 94vw" loading="lazy" decoding="async" width="1600" height="670" class="figure__img"></picture><figcaption class="figure__caption"><span>Beach shot, hdCycles.</span></figcaption></figure>
<p>Only hdCycles completed the full-size beach render in the available memory. The long shot exceeded available memory.</p>
<h2 id="scene-notes">Scene notes</h2>
<ul>
<li>The portable material conversion still loses some ground detail.</li>
<li>Subdivision is disabled to fit available memory.</li>
<li>RenderMan .tex sky maps are converted to EXR.</li>
<li>Missing texture coordinates and colour-space metadata are supplied in shot layers.</li>
<li>Camera-only dome illumination is fixed; these frames use a separate sky plate.</li>
</ul>
<h2 id="credits">Credits</h2>
<p>Moana Island Scene. Copyright 2017-2022 Disney Enterprises, Inc. All rights reserved. Research and software-development demonstration only.</p>]]></content:encoded></item>
<item><title>Time and memory in hdCycles</title><link>https://mattcastley.com/lab/hdcycles-speed-memory/</link><guid isPermaLink="true">https://mattcastley.com/lab/hdcycles-speed-memory/</guid><pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate><category>Note</category><category>performance</category><category>rendering</category><category>cycles</category><description>Renderer time and memory comparisons, texture mipmap caching and scene memory fixes.</description><content:encoded><![CDATA[<figure><img src="https://mattcastley.com/_astro/palmsCam-hdcycles.DgExAovF_2bNhIl.jpg" alt="The same Moana Island palm shot in hdCycles, RenderMan and Karma. (hdCycles)" loading="lazy" decoding="async" width="961" height="403"><figcaption>hdCycles · Memory 18.1 GiB · Time 19.7 min</figcaption></figure><figure><img src="https://mattcastley.com/_astro/palmsCam-renderman.D10LOkj6_WOzED.jpg" alt="The same Moana Island palm shot in hdCycles, RenderMan and Karma. (RenderMan)" loading="lazy" decoding="async" width="961" height="403"><figcaption>RenderMan · Memory 31.2 GiB · Time 12.5 min</figcaption></figure><figure><img src="https://mattcastley.com/_astro/palmsCam-karma.B_TOrmBb_EWzXQ.jpg" alt="The same Moana Island palm shot in hdCycles, RenderMan and Karma. (Karma)" loading="lazy" decoding="async" width="961" height="403"><figcaption>Karma · Memory 32.0 GiB · Time 22.9 min · 1600 × 670. Moana Island Scene. Copyright 2017-2022 Disney Enterprises, Inc. All rights reserved. Research and software-development demonstration only.</figcaption></figure>
<p>The same shot on one Intel Mac with 64 GiB. Each renderer used its own sample count; noise levels are not matched. RenderMan was quickest; hdCycles used the least memory.</p>
<h2 id="texture-mipmap-caching">Texture mipmap caching</h2>
<p>The texture cache is enabled by default. On the alley test, texture memory fell from 2.6 GiB to 48 MiB.</p>
<h2 id="scene-memory">Scene memory</h2>
<p>Restoring Embree, memory fixes and simpler material graphs reduced the island test from 33.7 GiB to 17.4 GiB with the same image.</p>
<h2 id="checkpointing-and-recovery">Checkpointing and recovery</h2>
<p>Render checkpoints and recovery include deep output.</p>
<h2 id="builds">Builds</h2>
<p>hdCycles fork: <code>cbf463a89</code>. RenderMan Pro Server 27.3 through hdPrman; Karma through Houdini Apprentice.</p>]]></content:encoded></item>
</channel>
</rss>