Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Budowanie i kod

roblox-blender-modeling

/roblox-blender-modeling

Modeluje w Blenderze gotowe do Roblox rekwizyty, bronie, budynki i stwory, sprawdzając symetrię, budżety i eksport.

Repozytorium
v2-vault ↗
Licencja
CC-BY-4.0
Ostatnia zmiana repozytorium
29.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
4
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

CC-BY-4.0, otwarta.

Co sprawdzić przed instalacją
  • 4 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/lihfolk_bpy.py, scripts/lihfolk_creature.py, scripts/lihfolk_curves.py, scripts/lihfolk_house.py

Co robi i kiedy

Modeluje w Blenderze gotowe do Roblox rekwizyty, bronie, budynki i stwory, sprawdzając symetrię, budżety i eksport.

Oryginalny opis (EN)

Roblox-ready Blender models with a quality gate (symmetry, budgets, export). Use whenever a prop, weapon, building, creature or kit is modelled, fixed or exported.

Jak działa

  1. Load the helpers
  2. Houses and buildings: scripts/lihfolkhouse.py
  3. Stylized creatures: scripts/lihfolkcreature.py
  4. Pipeline (do every step)
  5. Triangle budgets (lf.BUDGETS, target / ceiling)
  6. Visual rubric (0-2 each, accept >= 14/18, no zeros)
  7. Styles
  8. Known traps (measured or documented)
  9. Reusing the LihFolk Asset Pack
  10. Open questions (verify in Studio before relying on them)
Sekcje z nagłówków SKILL.md, w oryginale · 118 linii, 1 871 słów
Podgląd SKILL.md
---
name: roblox-blender-modeling
description: 'Roblox-ready Blender models with a quality gate (symmetry, budgets, export). Use whenever a prop, weapon, building, creature or kit is modelled, fixed or exported.'
---

# LihFolk Blender Modeling for Roblox

Goal: every model ships at top-tier quality, correctly scaled, within budget, and imports cleanly into Roblox Studio. A model that fails the gate or scores below the rubric is not finished.

Sources: `references/quality-research.md` (sourced, labelled research: Roblox docs, measured Blender 5.2 behaviour, expert practice). Helpers: `scripts/lihfolk_bpy.py` (tested on Blender 5.2), `scripts/lihfolk_curves.py` (curves, sweeps, outlines) and `scripts/lihfolk_house.py` (house and building modules).

## Load the helpers

In Blender MCP `execute_blender_code` or a headless script:
```python
import sys; sys.path.append(r"<this skill dir>/scripts")
import importlib, lihfolk_bpy as lf; importlib.reload(lf)
lf.setup_scene()   # 1 Blender unit = 1 stud
```
Headless: `blender -b --factory-startup --python my_script.py`. Never modify the user's open scene destructively; build in a new collection or a temporary scene and confirm before deleting anything that existed.

## Houses and buildings: `scripts/lihfolk_house.py`

For any house, cabin, cottage, shop, tower or hut, build from the parameterised builders instead of starting from scratch (`import lihfolk_house as lh`). The method, the scale numbers and the style-swap table are in the vault note `House Construction Method - Modular Kit Workflow` (06 World Building and Art).
- Frame: footprint centred on the origin, ridge along Y, eave walls on x = +-hx, gable walls on y = +-hy. `lh.Gable(hx, eave_z, pitch)` is the one roof-underside function that walls, roof, chimney and icicles all read.
- Walls: `lh.log_walls` (interlocking round logs, gable logs cut by the roof) or `lh.coursed_walls` (stone / brick blocks, corner bond, quoins, lintels). Both cut real openings, so interiors work later.
- Openings: plan them first with `lh.opening_footprint` and `lh.check_wall_layout` (frames and shutters must fit between the corners). Then add `lh.window`, `lh.door` and `lh.steps` on a `Face`.
- Roof: `lh.gable_roof` (slab or shingle rows, ridge cap, optional snow with a lip) and `lh.icicle_row(z_at=roof["snow_under"])`. Add `lh.chimney`, `lh.foundation` and `lh.plank_deck` as needed.
- Pipeline: put one module in each `lh.MeshBuilder`. Then run `lh.recentre` (one shared bottom-centre origin), `lh.finish_modules` (adds Triangulate for n-gons after the bevel), `lh.gate_modules`, `lh.floating_shells` (a whole-house scan; it must report 0), `lh.render_preview` and `lh.export_modules`.
- Verified headless on Blender 5.2: a stone cottage (7 modules, every gate passed, 0 of 317 shells floating) and a log cabin (6 modules, every gate passed, 0 of 161 floating).

## Stylized creatures: `scripts/lihfolk_creature.py`

Use it for any cute, soft, painted creature: a pet, critter, ambient fish or companion. It builds one fused body, a single painted texture, a light bone rig and a looping idle, all from a small JSON spec:
```
blender -b --factory-startup --python scripts/lihfolk_creature.py -- spec.json <out_dir> [--blend f.blend] [--no-render]
```
In Python, call `lcr.build_creature(spec, out_dir)`. The method, numbers and mistakes are in the vault note `Stylized Creatures - Soft Forms, Painted Gradients and Light Rigs` (14 3D Modeling). The demo is `LihFolk Asset Pack/Models/Creatures/Puffling/Puffling_spec.json`.

- **Spec.** The spec has these keys:
  - `name`, `tris` (whole creature including the eyes), `texture` (1024) and `grid` (0.025-stud SDF step).
  - `parts`, an ordered list:
    - `loft`: `stations` of `[y, half_w, half_h, z]` plus `caps`.
    - `cone`: `a`, `b` and `r: [r1, r2]`.
    - `ellipsoid`: `c` and `r`.
    - `fin`: `root`, `tip`, `r: [root, tip]`, `t` (half-thickness), `normal` and `bend`.

    Each part also takes a blend `k`, `op: "subtract"`, `tag` (`fin`, `lip`) and `bones` (a fin chain). Author parts with x > 0 once; they are mirrored. The creature faces -Y.
  - `eyes`: `at`, `dir`, `r`, `depth` and `seat`.
  - `rig.spine`: the midline polyline, head tip to tail tip, plus `body_index` and `tail_names`.
  - Optional overrides: `palette`, `paint`, `anim` and `closeups`.
- **Pipeline.** `Field` (smooth-union SDF) runs surface nets, a voxel remesh and QuadriFlow to the tri budget. It keeps the +X half, projects and relaxes it, then mirrors it. QuadriFlow is retried on new seeds until there are no self-intersections or flipped faces. Eyes are seated lens shells. Normals are weighted. UVs are mirrored and overlapping, giving 2x texel density.
- **Budget.** 2-4k tris (class `creature` target 5,000), one material, one UV set, a 1024 colour map and a 1024 roughness map. Fin half-thickness must be at least 0.6x the quad edge (about 0.07 studs at 3-4k tris on a 4-stud body), or the fins fold.
- **Bake.** A Cycles EMIT bake of a procedural paint graph:
  - Base: a head-to-tail gradient, a banded warm top light and a counter-shaded belly by position and normal.
  - Light and shadow: a bounce rim and warm-tinted AO, faded near the eyes.
  - Detail: spots, blush, fin rays and edge, stroke noise, and eyes with glints.

  It writes `<Name>_Color.png` (sRGB) and `<Name>_Roughness.png` (non-colour), then a Principled material that uses both.
- **Rig.** The bones are `Root` (no deform), then `Body` (root motion), then the `Head` and `Tail*` chains, plus 1-2 bone chains per fin (`.L` = +X). Weights are automatic heat weights; the eyes go on the head bone. Every vertex has at most 4 influences, normalised.
- **Animation.** `swim_action` is a 2 s loop with a skewed sine tail wave and per-bone phase lag, plus body counter-yaw, bob and roll, and rowing fins. The first frame equals the last, and the loop error is reported.
- **Gate and export.** `lf.gate(ob, "creature", symmetric="X", seats=eyes)` runs before rigging. The GLB keeps the Armature and the action, and an FBX copy is written too.
- **Outputs.** `<Name>_stats.json` (tris, bones, influences, texel, gate, loop) and the review renders: hero, turntable, views, close-ups, wireframe, silhouettes, animation strips and onion skins.
- **Measured results.** In the Puffling demo the model passed the blind panel at 8.67. The swim clip did not (5.33): its tail lag is hidden inside the round body. Give the creature a visible tail stalk, or treat the clip as a draft.

## Pipeline (do every step)

1. **Brief**: object class (budget key below), style, palette (2-3 colours + 1 accent), real size in studs (R15 avatar ~5 studs tall; door ~7-8 studs), where its origin goes.
2. **Blockout big -> medium -> small**. Check the silhouette before any detail: `lf.render_review(ob, dir)` and look at `_silhouette.png`. If it doesn't read at thumbnail size, fix shapes, not details.
2b. **Symmetry and alignment first.** If the object is symmetric by design (shields, badges, swords, bottles, doors, most props and creatures), model one half and mirror it. Centre every feature (emblems, gems, handles, guards) on the parent's axis with bounding-box maths, never by eye, and seat it on its surface (no floating, no burying). The gate checks this (`symmetric=`); a lopsided shield is an automatic fail, however clean its mesh.
3. **Proportion pass**: exaggerate. Chunky, tapered, confident shapes beat accurate stiff primitives.
4. **Edge treatment**: `lf.finish(ob, style="soft")` (1-segment bevel + harden normals + weighted normals, the stylized default), `"faceted"` (deliberate flat low-poly) or `"smooth"` (organics). More than 2 bevel segments on small props is a mistake (1 seg = 3.7x tris, 2 = 9x on a box, measured).
5. **Colour**: vertex colours or one shared palette atlas for stylized kits; SurfaceAppearance PBR (OpenGL normal, separate grayscale roughness/metalness) for realistic. One material per exported object.
6. **UVs** (if textured): smart_project -> pack_islands, single UV map, all in 0-1.
7. **Origin**: `lf.set_origin(ob, "bottom")` floor props, `"back"` wall props, `"corner"` modular pieces.
8. **Gate**: `passed, fails, report = lf.gate(ob, cls, symmetric="X", align=..., seats=...)`. Any fail = fix and re-run. Never ship a fail. Besides A1-A10 it checks A15 symmetry (`lf.symmetry_error`; author symmetric shapes as half + `lc.mirror_outline`), A16 centring/seating (`lf.alignment_report`, `lf.seated`, computed on the parts before joining), A17 self-intersecting shells and A18 overlapping cap triangles / flipped faces.
9. **Visual rubric**: render with `lf.render_review(ob, dir, features=[(name, centre, radius), ...])` (adds studio + flat close-ups of each child feature, where small cap artifacts show), LOOK at every image, then have a blind reviewer score V1-V9 (rubric review order: correctness, then artifacts, then style). Accept only >= 14/18 with no zero. Otherwise iterate. Colour stylised kits with `lc.paint` + `lc.vertex_color_material` (one white material, vertex colours).
10. **Export**: `lf.export_glb(ob, path)` (preferred; modifiers applied, vertex colours kept, 1 unit = 1 stud). FBX only via `lf.export_fbx` (prevents the 100x scale bug).
11. **Studio setup** (tell the user or do it via Studio MCP): MeshPart.Color = white when using vertex colours; CollisionFidelity Box/Hull (Precise only when needed); CanCollide/CanTouch/CanQuery off for decoration; CastShadow off on tiny props; DoubleSided only for foliage cards; Anchored for static.

## Triangle budgets (`lf.BUDGETS`, target / ceiling)

tiny 150/300 · small 600/1,500 · medium 2,000/4,000 · rock 400/1,000 · tree 2,000/5,000 · weapon 2,500/4,000 · module 800/2,000 · building 6,000/10,000 (split into modules above) · creature 5,000/10,742 · hero 10,000/20,000. Hard Roblox limit: 20,000 per mesh. Over target needs a stated reason. These budgets are proposed defaults inside sourced ranges; tune per game.

## Visual rubric (0-2 each, accept >= 14/18, no zeros)

V1 silhouette reads as solid black at 64 px from every angle · V2 clear big/medium/small hierarchy · V3 confident stylized proportions · V4 consistent bevels catching light · V5 clean shading, no gradients/artifacts on flat faces · V6 2-3 dominant colours with value contrast · V7 geometry only where silhouette/shading needs it (if the wireframe looks solid, too dense) · V8 matches the kit (texel density, bevel size, palette) · V9 Studio-ready (scale, pivot, collision, flags).

Score honestly from the renders. For hero assets, or when your score is borderline (14-15), run a **Quick** `council-method` review (Art Director lens) with the four renders as evidence. Kits: review one representative piece, not every piece.

## Styles

| Style | How |
|---|---|
| Stylized low-poly | Primitives -> exaggerate -> `finish("soft")` or `"faceted"`; organics: Decimate Collapse ~0.1-0.15 for rocks/trees; icosphere foliage clusters; vertex colours |
| Untextured stylized | Split by colour region or vertex colour; MeshPart.Color + Material in Studio |
| Palette atlas | One small palette PNG shared by the whole kit; UVs snapped to cells, closest filtering |
| Hand-painted | Clean UVs, bake AO, paint flat colours plus subtle light/shadow; ColorMap only |
| Realistic PBR | High->low bake, OpenGL normal, separate R/M maps, trim sheets for architecture; Future lighting |
| Voxel | MagicaVoxel -> greedy meshing -> vertex colours; never thousands of Parts |

Kits: build modular pieces on a stud grid (multiples of 1, 2 or 4 studs), shared bevel width, shared palette, origin at the grid corner, so they snap in Studio.

## Known traps (measured or documented)

- glTF `export_apply=False` (the default) silently drops bevels and weighted normals. `lf.export_glb` handles this.
- glTF drops vertex colours unless exported as ACTIVE. Handled.
- FBX default scale imports 100x too big. `lf.export_fbx` uses FBX_SCALE_UNITS.
- `mesh.use_auto_smooth` no longer exists (Blender 4.1+); use `shade_auto_smooth` / `finish("smooth")`.
- AO bakes come out black when other objects occlude the target; hide others from render first.
- Roblox wants separate grayscale roughness/metalness maps, not packed ORM.
- Don't hand-author LODs: Roblox auto-generates them, and RenderFidelity is being removed.
- AI/scan meshes ("triangle soup"): retopo or decimate, then rebake; never ship raw.

## Reusing the LihFolk Asset Pack

If the pack is installed (`LIHFOLK_ASSETS` env var or `~/LihFolk-Assets`), check its original LihFolk models and materials before modelling from scratch; pack assets already passed this gate. See `<base directory>/../../assets/README.md` (resolve to an absolute path).

## Open questions (verify in Studio before relying on them)

Whether custom normals survive import, glTF double-sided flag handling, FBX forward axis. See `references/quality-research.md` section 7.
Pliki w paczce (6)
  • SKILL.md 13 KB
  • references/quality-research.md 45 KB
  • scripts/lihfolk_bpy.py 27 KB
  • scripts/lihfolk_creature.py 66 KB
  • scripts/lihfolk_curves.py 44 KB
  • scripts/lihfolk_house.py 44 KB

Wersje

W bazie nie ma innych skilli o nazwie roblox-blender-modeling.

Migawka bazy z 13.11.2026 · wersja paczki e8f8bdc1bf67 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 6 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100nighty-blender-modeling
    Modeluje w Blenderze model 3D, rekwizyt, broń lub stwór przez Nighty Blender 2, z własnego pliku lub pobranego zasobu.
  • 100roblox-3d-building
    Modeluje w Roblox Studio budynki, rekwizyty i mapy z poprawną skalą awatara, spójnym stylem i pętlą przeglądu zrzutów ekranu.
  • 100nighty-blender-rigging
    Rigguje i skinuje modele w Blenderze pod Roblox: awatary R15, głowy z pozami mimiki, rigi stworzeń i eksport FBX.
  • 98blender-modeling-workflow
    Buduje powtarzalne modele w Blenderze przez Python i CLI: rekwizyty, obiekty hard-surface i assety GLB gotowe do gry.
  • 100roblox-blender-export
    Przygotowuje siatki z Blendera do Roblox: skalę, pivot, oś, eksport FBX, kolor jako teksturę, budżet trójkątów i kolizję oraz diagnozuje błędy importu.
  • 96blender-modeling
    Modeluje w Blenderze postacie, obiekty i złożenia na podstawie referencji, z etapami bryły, poprawkami topologii i kontrolą wizualną.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.