Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

9.4 KB
Raw Blame
---
import troy from "../../data/troy.json";
import cabinWoods from "../../data/cabin-woods-psx-horror.json";
import PageHeader from "../../components/PageHeader.astro";
import BaseLayout from "../../layouts/BaseLayout.astro";
import ResponsiveImage from "../../components/ResponsiveImage.astro";
import ScenePoster from "../../components/ScenePoster.astro";
import { cabinWoodsScene } from "../../data/scenes";
import { farm, vehicles } from "../../lib/catalog";
import { PACKS_ENABLED } from "../../lib/config";
import foundryFloor from "../../data/foundry-floor.json";
import foundryFloorPack from "../../data/packs/foundry-floor.json";
import sceneMedia from "../../data/scene-media.json";
import { holodeckPackHref, holodeckPlanned, holodeckWorldUrl } from "../../lib/holodeck";
import { curatedWorlds, worldCover } from "../../lib/site-curation";
const foundryCampusPoster = sceneMedia["foundry-floor"].captures.campus.poster;
// Six of the Foundry Floor models stand for the pack on its card; each must be in the staged catalog.
const featured = ["s1-head-w", "s2-hall-w", "euv-scanner", "etch-cluster-tool", "stocker", "oht-vehicle"].map((slug) => {
  const asset = foundryFloorPack.assets.find((candidate) => candidate.slug === slug);
  if (!asset) throw new Error(`The Foundry Floor catalog has no model ${slug}`);
  return asset;
});
---

<BaseLayout
  title="Packs · Kiln"
  description="Explore Holodeck asset packs, from Meridian Sanctuary to Crescent Cove and Winter Mountainside Cabin. Download GLBs and editable source, and browse earlier packs."
  breadcrumbs={[{ label: "Packs", href: "/packs/" }]}
  card="packs"
>
  <div class="container">
    <PageHeader class="max-w-reading py-8">Packs</PageHeader>
    <p class="lead">
      Asset packs made with Kiln. Use the GLBs in your application, or keep the
      source and revise them with your coding agent.
    </p>
    {PACKS_ENABLED && (
      <section class="mt-12 border-b border-rule pb-8" aria-labelledby="holodeck-packs">
        <h2 id="holodeck-packs" class="text-subheading">Holodeck scenes</h2>
        <p class="mt-4 max-w-reading">Kiln assets placed in walkable Holodeck worlds. Each pack holds every Kiln asset its scene uses.</p>
        <div class="mt-6 grid gap-8 md:grid-cols-3">
          {curatedWorlds.map((pack) => {
            // Use the same curated scene order and covers as the scene listing.
            const shot = worldCover(pack.id);
            return (
              <div class="border-t border-rule pt-4">
                <a href={holodeckPackHref(pack)} class="block text-ink no-underline" aria-label={`${pack.name} asset pack`}>
                  {shot && <ResponsiveImage image={{ ...shot, alt: "" }} sizes="(max-width: 767px) 100vw, (max-width: 1023px) 50vw, 33vw" class="aspect-video w-full bg-stage object-cover" />}
                  <h3 class="mt-4 text-title">{pack.name}</h3>
                  <p class="mt-2 text-dim">{pack.assetCount} editable assets and runtime models.</p>
                </a>
                <a class="text-link" href={holodeckWorldUrl(pack.id)}>Walk the scene <span aria-hidden="true">↗</span></a>
              </div>
            );
          })}
          {holodeckPlanned.map((pack) => (
            <div class="border-t border-rule pt-4">
              <h3 class="text-title">{pack.name}</h3>
              <p class="mt-2 text-dim">{pack.description}</p>
            </div>
          ))}
        </div>
      </section>
    )}
    {PACKS_ENABLED && <h2 class="mt-12 text-subheading">Earlier packs</h2>}
    {PACKS_ENABLED && <a class="pack-card mt-12 grid items-center gap-8 border-y border-rule py-8 lg:grid-cols-3" href="/packs/troy/" aria-label="Troy"><div class="lg:col-span-2"><ResponsiveImage image={troy.posters[0]!} eager sizes="(max-width: 1024px) 100vw, 65vw" /></div><div><h2 class="text-subheading">Troy</h2><p class="mt-5">{troy.assetCount} models: heroes, soldiers, ships, buildings, equipment and vegetation.</p><p class="mt-4">Play the scene or download the models.</p><span class="text-link mt-4">Inspect the pack and downloads</span></div></a>}
    {PACKS_ENABLED && (
      <a class="pack-card mt-12 grid items-center gap-8 border-y border-rule py-8 lg:grid-cols-3" href="/packs/farm/" aria-label="Shapes &amp; Seasons Farm">
        <div class="lg:col-span-2">
          <ResponsiveImage
            image={{ ...farm.scene.poster, alt: "" }}
            eager
            sizes="(max-width: 1024px) 100vw, 65vw"
          />
        </div>
        <div>
          <h2 class="text-subheading">Shapes &amp; Seasons Farm</h2>
          <p class="mt-5">
            23 assets: buildings, animals, crops, fencing and farm equipment.
          </p>
          <p class="mt-4 text-dim">
            Runtime, editable and scene profiles.
          </p>
          <span class="text-link mt-4">
            Inspect the pack and downloads<span class="sr-only">: Shapes &amp; Seasons Farm</span> <span aria-hidden="true">→</span>
          </span>
        </div>
      </a>
    )}
    {PACKS_ENABLED && (
      <a href="/packs/vehicles/" aria-label="Generic Road Vehicles" class="mt-12 grid items-center gap-8 border-b border-rule pb-8 lg:grid-cols-3">
        <div class="grid grid-cols-3 gap-2 lg:col-span-2">
          {vehicles.assets.map((asset) => (
            <div class="bg-stage">
              <ResponsiveImage
                image={{ ...asset.poster, alt: "" }}
                sizes="(max-width: 1024px) 33vw, 22vw"
                class="aspect-square w-full object-contain"
              />
            </div>
          ))}
        </div>
        <div>
          <h2 class="text-subheading">{vehicles.name}</h2>
          <p class="mt-5">
            Six vehicles: a hatchback, a sedan, an SUV, a pickup, a box truck
            and a transit bus, each with three detail tiers.
          </p>
          <p class="mt-4 text-dim">
            Runtime GLBs, editable source and licence texts.
          </p>
          <span class="text-link mt-4">
            Inspect the pack and downloads<span class="sr-only">: Generic Road Vehicles</span> <span aria-hidden="true">→</span>
          </span>
        </div>
      </a>
    )}
    {PACKS_ENABLED && (
      <a href="/packs/foundry-floor/" aria-label="Foundry Floor" class="mt-12 grid items-center gap-8 border-b border-rule pb-8 lg:grid-cols-3">
        <div class="lg:col-span-2">
          <ResponsiveImage image={foundryCampusPoster} sizes="(max-width: 1024px) 100vw, 65vw" />
          <div class="mt-2 grid grid-cols-3 gap-2">
          {featured.map((asset) => (
            <div class="bg-stage">
              <ResponsiveImage
                image={{ ...asset.poster, alt: "" }}
                sizes="(max-width: 1024px) 33vw, 22vw"
                class="aspect-square w-full object-contain"
              />
            </div>
          ))}
          </div>
        </div>
        <div>
          <h2 class="text-subheading">{foundryFloorPack.name}</h2>
          <p class="mt-5">
            {foundryFloorPack.assetCount} models for a fictional 2 nm-class chip
            fab: campus buildings, process tools, wafer transport and storage, the cleanroom’s
            floor, ceiling and walls, and the people and robots who work there.
          </p>
          <p class="mt-4 text-dim">
            Runtime GLBs and the pack’s licence text.
          </p>
          <span class="text-link mt-4">
            Inspect the pack <span aria-hidden="true">→</span>
          </span>
        </div>
      </a>
    )}
    <a href="/packs/cabin-woods-psx-horror/" aria-label={cabinWoods.name} class="mt-12 grid gap-6 border-b border-rule pb-8 lg:grid-cols-2">
      {PACKS_ENABLED && <ScenePoster images={cabinWoodsScene.posterImages} sizes="(max-width: 1023px) 100vw, 50vw" decorative class="border border-rule" />}
      <div><h2 class="text-subheading">{cabinWoods.name}</h2><p class="mt-4">{cabinWoods.description}</p><p class="mt-4">53 editable assets, runtime models and a playable scene.</p><p class="mt-3 text-dim">{cabinWoods.devices}</p><span class="text-link mt-4">Browse the pack</span></div>
    </a>
    <div class="mt-12 grid gap-8 lg:grid-cols-2">
      {!PACKS_ENABLED && (
        <div>
          <h2 class="text-subheading">{foundryFloor.name}</h2>
          <p class="mt-4 max-w-reading">
            A fictional 2 nm-class chip fab with process tools,
            wafer transport and a scene where the factory runs.
          </p>
          <a href={foundryFloor.packRoute} class="text-link mt-2">
            Read the production note <span aria-hidden="true">→</span>
          </a>
        </div>
      )}
      <div>
        <h2 class="text-subheading">Choose the files you need.</h2>
        <p class="mt-4 max-w-reading">
          Runtime profiles contain GLBs and metadata. Editable profiles add
          source and rebuilding dependencies. Scene profiles include a runnable
          demonstration. You do not need Kiln to use the runtime models.
        </p>
      </div>
    </div>
    <div class="mt-12 border-t border-ink pt-6">
      <h2 class="text-subheading">
        Asset content and software have separate licences.
      </h2>
      <p class="mt-4 max-w-reading">
        <span data-verbatim>{farm.licenseScope}</span> Preserve the supplied licences, material records and
        scene software notices.
      </p>
      <a
        href="https://creativecommons.org/publicdomain/zero/1.0/"
        class="text-link mt-2"
      >
        Read CC0-1.0 <span aria-hidden="true">↗</span>
      </a>
    </div>
  </div>
</BaseLayout>