3d-object
БесплатноБез исполняемых скриптовНе проверенA product or object in 3D — built from shapes, extruded from a logo, or loaded from your own .glb — lit like a studio shot, turning on a turntable, ready to…
от feimacode★ 1 227 звёзд на GitHubОб этом скилле
3D Object
Intent. One object, shown well: a product, a logo or a simple form, lit like a studio photo, on a quiet stage, turning slowly. The page is a single self-contained three.js scene. People use it as a hero visual, export a still or a transparent cut-out for slides and pages, or a turntable clip for social.
This is not a 3D editor, a game scene or text-to-3D generation. If the user wants a model of something that doesn't exist yet and can't be built from simple shapes, say so and offer a procedural stand-in.
1. Pick the object path
- Procedural: build the object from three.js geometry:
LatheGeometryfor anything turned (bottles, speakers, cups, lamps),ExtrudeGeometryfor flat shapes with depth, boxes and cylinders with bevels (RoundedBoxGeometryfrom the addons) for devices. Combine a few parts in aGroup. Aim for the silhouette and proportions first; small details (a groove, a light ring, a seam) make it read as a product. - Extruded logo: parse the brand's SVG with
SVGLoader, turn each filled path into shapes (SVGLoader.createShapes), and extrude with a bevel. Flip y (SVG's y points down), center the geometry, and scale it to a fixed size. Strokes aren't extruded; ask for a filled version of the mark if that's all there is. - The user's model (
.glb/.gltf): load it withGLTFLoader. Copy the file underassets/next to the design (with a shell copy: it's binary) and loadassets/<name>.glb; if you can't copy it, use its path relative to the design. Set upDRACOLoaderwith the pinned decoder path (below) so Draco-compressed models work. Never assume the model's units, origin or orientation: measure its bounding box, rest it on the ground, center it, and frame the camera from its size (the GLB example'sstage()does exactly this). If the file is over 50 MB, tell the user it will load slowly and suggestnpx @gltf-transform/cli optimize in.glb out.glb --compress dracofirst.
2. Build the scene
Use exactly these pinned URLs, through an import map:
<script type="importmap">
{ "imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/"
} }
</script>
Draco decoder path: https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/libs/draco/gltf/.
Don't write three.js script tags from memory: build/three.min.js no longer exists (removed in r160), nor does examples/js/… (removed in r148), so <script src=".../three.min.js"> 404s, THREE is undefined and the page shows nothing. Use the import map above and import * as THREE from 'three' in a <script type="module">, with addons from three/addons/….
- Canvas: one full-bleed
<canvas id="stage" data-od-webgl>passed toWebGLRenderer({ canvas, antialias: true, preserveDrawingBuffer: true }). Size it from the canvas's CSS box on load and onresize. On tall, narrow canvases (aspect below 1), frame the object again so it fills the portrait frame as it fills the desktop one: widen thefovand move the camera back only as far as the object needs (thefitViewsnippet in the3d-sceneskill does this from the object's bounding sphere). The check measures how much of each frame the object fills. - Color:
outputColorSpace = SRGBColorSpace,toneMapping = ACESFilmicToneMapping. - Materials: physically based (
MeshStandardMaterial/MeshPhysicalMaterial), with colors read from the design system's tokens (getComputedStyle(document.documentElement).getPropertyValue('--accent')) so the object matches the page: the body from--surfaceor--fg, one detail from--accent. Choose roughness and metalness for the real material (matte plastic 0.6–0.9 rough, brushed metal metalness 1 at 0.25–0.4 rough, glossy paint withclearcoat). Keep a user model's own materials unless asked to recolor it. - Light: the
studiosetup by default: studio light from a generated room (scene.environment = new PMREMGenerator(renderer).fromScene(new RoomEnvironment(), 0.04).texture,envMapIntensityabout 0.6), a shadow-casting keyDirectionalLight#fff4e6at intensity 3 from 45° to the side and 40° up (soft shadows:PCFSoftShadowMap,shadow.radiusabout 6), a fill#e6eeffat 0.9 from the other side and a rim at 2 from behind, exposure 1.0. When the brief sets a scene (daylight, a lamp, a fire, dusk), use that setup from the3d-sceneskill's light table instead; a light you can see is the key and points at the object. The object is the brightest thing in the frame that isn't a light. When real reflections matter (glass, chrome, glossy paint) or the brief names a setting's light (a sunset, a studio, a forest), find an HDRI withfind_feima_design_3d_assets(type: "hdri", free CC0 files from Poly Haven) and light from it:new RGBELoader().loadAsync(url)fromthree/addons/loaders/RGBELoader.js, then `scene.environment = pmrem.fromEquirectangular(tex).texture
Установить 3d-object в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 3d-object?
A product or object in 3D — built from shapes, extruded from a logo, or loaded from your own .glb — lit like a studio shot, turning on a turntable, ready to export as a still, a transparent cut-out or a turntable video.
Как установить скилл 3d-object?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 3d-object запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic