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.

4.4 KB
Raw Blame
---
import HolodeckShowcase from "../../components/HolodeckShowcase.astro";
import PageHeader from "../../components/PageHeader.astro";
import BaseLayout from "../../layouts/BaseLayout.astro";
import { sceneRuntimes } from "virtual:kiln-scenes";
import { cabinWoodsScene, farmScene, foundryFloorScene, goldenGateScene } from "../../data/scenes";
import { PACKS_ENABLED } from "../../lib/config";
import troy from "../../data/troy.json";
import ScenePoster from "../../components/ScenePoster.astro";

// Each card states the scene's true status in this build: a staged runtime makes it a preview (none of the three
// is qualified), and without one the page shows the scene's status panel.
const cards = [
  {
    scene: farmScene,
    alt: "Barn, farmhouse and fields in the Farm scene",
    staged:
      "Walk the farm in third person, drive the tractor and play with touch. The runnable scene is also available to download.",
    unstaged:
      "The browser scene is not included in this build. The current runnable scene is available in the Farm download.",
  },
  {
    scene: goldenGateScene,
    alt: goldenGateScene.posterAlt,
    staged:
      "Drive across the bridge or view the span by day, at golden hour or in fog. It loads only when you choose Explore.",
    unstaged:
      "The browser scene is not part of this build. The bridge asset has its own page and downloads.",
  },
  {
    scene: foundryFloorScene,
    alt: foundryFloorScene.posterAlt,
    staged:
      "Explore the campus and the fab floor. It loads only when you choose Explore.",
    unstaged:
      "The browser scene is not part of this build.",
  },
  {
    scene: cabinWoodsScene,
    alt: cabinWoodsScene.posterAlt,
    staged: "Walk the cabin and mixed woodland on desktop with WebGPU. Mobile play is not qualified.",
    unstaged: "The scene is not staged in this build; download it from the pack page.",
  },
] as const;
---

<BaseLayout
  title="Scenes · Kiln"
  description="Explore Meridian Sanctuary, Crescent Cove and Winter Mountainside Cabin on Holodeck, plus earlier Kiln scenes including Troy, Farm and Golden Gate."
  breadcrumbs={[{ label: "Scenes", href: "/scenes/" }]}
  card="scenes"
>
  <div class="container py-8">
    <PageHeader class="max-w-prose font-semibold">Scenes</PageHeader>
    <p class="mt-6 max-w-prose text-lg">
      Scenes put individual assets into a place you can explore. They load only
      when you choose to open them.
    </p>
    {PACKS_ENABLED && <>
      <HolodeckShowcase id="featured-worlds" heading="Featured worlds" />
      <HolodeckShowcase id="more-worlds" heading="More Holodeck worlds" remaining />
    </>}
    <h2 class="mt-16 border-t border-ink pt-8 text-subheading">Earlier scenes</h2>
    <p class="mt-4 max-w-reading text-dim">Earlier demonstrations remain available to explore, with their source and asset packs.</p>
    {PACKS_ENABLED && <a href="/scenes/troy/" aria-label="Troy" class="no-underline text-ink mt-12 grid gap-8 border-t border-ink pt-8 lg:grid-cols-2"><ScenePoster images={troy.posters} sizes="(max-width: 1023px) 100vw, 50vw" decorative class="border border-rule" /><div><h2 class="font-semibold">Troy</h2><p class="mt-4 max-w-prose">{troy.description}</p><p class="mt-4 max-w-prose">Explore the city, watch the fleet land, or fight as either hero.</p><span class="text-link mt-6">Open the scene preview<span class="sr-only">: Troy</span></span></div></a>}
    {cards.map(({ scene, staged, unstaged }) => {
      const runtime = sceneRuntimes[scene.id];
      return (
        <a href={scene.href} aria-label={scene.name} class="no-underline text-ink mt-12 grid gap-8 border-t border-ink pt-8 lg:grid-cols-2">
          {PACKS_ENABLED && scene.posterImage && (
            <div>
              <ScenePoster
                images={scene.posterImages}
                sizes="(max-width: 1023px) 100vw, 50vw"
                decorative
                class="border border-rule"
              />
            </div>
          )}
          <div>
            <h2 class="font-semibold">{scene.name}</h2>
            <p class="mt-4 max-w-prose">{scene.description}</p>
            <p class="mt-4 max-w-prose">{runtime ? staged : unstaged}</p>
            <span class="text-link mt-6">
              {runtime ? "Open the scene preview" : "View the scene status"}
              <span class="sr-only">: {scene.name}</span>
            </span>

          </div>
        </a>
      );
    })}
  </div>
</BaseLayout>