Skip to content

LumosLab-Innovation/3D-lab-skills / plugins/threejs-lab/skills/threejs-studio

threejs-studio

Verified

Create image options, get human approval on localhost, author geometry in Three.js or Blender MCP, then code Three.js motion, contraction and interaction for either model. Use for prompt-to-3D, image-to-model, animated interactive assets or resuming visual approval across coding agents. No paid image-to-3D service.

web/motion.js

View on GitHub
// The same simulation clock and controls drive procedural and Blender-authored models.
export function createPlayback(controller = {}, mixer) {
  for (const name of ["update", "reset", "setParameter", "onPick", "dispose"]) {
    if (
      controller[name] !== undefined &&
      typeof controller[name] !== "function"
    )
      throw new Error(`${name} must be a function`);
  }
  const parameters = controller.parameters || [];
  if (!Array.isArray(parameters) || parameters.length > 8)
    throw new Error("Use at most eight model parameters");
  const ids = new Set();
  for (const p of parameters) {
    if (
      !p ||
      typeof p.id !== "string" ||
      !p.id ||
      ids.has(p.id) ||
      typeof p.label !== "string" ||
      !p.label ||
      p.label.length > 80 ||
      ![p.min, p.max, p.step, p.value].every(Number.isFinite) ||
      p.min >= p.max ||
      p.step <= 0 ||
      p.value < p.min ||
      p.value > p.max ||
      !controller.setParameter
    ) {
      throw new Error("Invalid model parameter contract");
    }
    ids.add(p.id);
  }
  const defaults = parameters.map((p) => ({ ...p }));
  let elapsed = 0,
    playing = true;
  return {
    parameters: defaults,
    get elapsed() {
      return elapsed;
    },
    get playing() {
      return playing;
    },
    get active() {
      return Boolean(mixer || controller.update);
    },
    toggle() {
      playing = !playing;
      return playing;
    },
    step(delta) {
      if (!playing) return;
      const dt = Number.isFinite(delta)
        ? Math.min(Math.max(delta, 0), 0.05)
        : 0;
      elapsed += dt;
      mixer?.update(dt);
      controller.update?.(dt, elapsed);
    },
    setParameter(id, value) {
      const p = defaults.find((p) => p.id === id);
      if (!p || !Number.isFinite(value) || value < p.min || value > p.max)
        throw new Error("Model parameter out of range");
      controller.setParameter(id, value);
      controller.update?.(0, elapsed);
    },
    reset() {
      elapsed = 0;
      mixer?.setTime(0);
      controller.reset?.();
      for (const p of defaults) controller.setParameter(p.id, p.value);
      controller.update?.(0, 0);
    },
  };
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall