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.

assets/examples/pulse-behavior.mjs

View on GitHub
// Shared by a procedural mesh and a Blender GLB with the same named morph target.
// This illustrates deformation mechanics, not validated heart or muscle physiology.
export function createBehavior({ root }) {
  let tissue;
  root.traverse((object) => {
    if (object.isMesh && object.morphTargetDictionary?.contract !== undefined)
      tissue ||= object;
  });
  if (!tissue)
    throw new Error("Model needs an authored morph target named contract");
  const index = tissue.morphTargetDictionary.contract;
  const baseColor = tissue.material.color.clone();
  let rate = 60,
    amplitude = 0.65,
    pressed = false;
  return {
    parameters: [
      { id: "rate", label: "Nhịp/phút", min: 30, max: 150, step: 1, value: 60 },
      {
        id: "amplitude",
        label: "Độ co",
        min: 0,
        max: 1,
        step: 0.05,
        value: 0.65,
      },
    ],
    setParameter(id, value) {
      if (id === "rate") rate = value;
      else if (id === "amplitude") amplitude = value;
    },
    update(_delta, elapsed) {
      const phase = 0.5 - 0.5 * Math.cos((elapsed * Math.PI * 2 * rate) / 60);
      tissue.morphTargetInfluences[index] = pressed
        ? amplitude
        : amplitude * phase;
    },
    onPick(hit) {
      if (hit.object !== tissue) return;
      pressed = !pressed;
      tissue.material.color.copy(baseColor);
      if (pressed) tissue.material.color.offsetHSL(0.025, 0.1, 0.08);
      tissue.morphTargetInfluences[index] = pressed ? amplitude : 0;
    },
    reset() {
      pressed = false;
      tissue.material.color.copy(baseColor);
      tissue.morphTargetInfluences[index] = 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: 471kUpdated 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