Start IRCSS French Houses corpus
This commit is contained in:
parent
3c4ad988c3
commit
043e19a85e
8 changed files with 358 additions and 6 deletions
|
|
@ -130,6 +130,16 @@ Use these only after the smaller idioms are reliable.
|
|||
- Translation value: recursive-looking branch systems, curve distortion,
|
||||
instance orientation, scale variation, and material variation.
|
||||
|
||||
- `IRCSS/Blender-Geometry-Node-French-Houses`
|
||||
- Source: https://github.com/IRCSS/Blender-Geometry-Node-French-Houses
|
||||
- Completed foothold:
|
||||
`docs/research/translations/ircss-french-houses.md`
|
||||
- Why it matters: city-scale architectural kit with houses, gates, towers,
|
||||
walls, bridges, church parts, stalls, terrain, roads, vegetation, banners,
|
||||
windows, doors, and roofs.
|
||||
- Translation value: hierarchical procedural city systems, façade organs,
|
||||
topology generators, repeat/foreach/gizmo blockers, and reusable spines.
|
||||
|
||||
## First Translation Target
|
||||
|
||||
Start with `Shriinivas/geometrynodes` because it is public, GitHub-hosted, MIT
|
||||
|
|
@ -245,6 +255,16 @@ Completed Blender raycast minigame foothold:
|
|||
- Translation value: direction vectors, curve breadcrumbs, raycast hit updates,
|
||||
reflected vectors, and object-target controls.
|
||||
|
||||
Completed IRCSS French Houses foothold:
|
||||
|
||||
- `docs/research/translations/ircss-french-houses.md`
|
||||
- Source group: `MakeSpiral`
|
||||
- Verification: output curve converted to points matches source with ordered
|
||||
max vertex delta `0.0`.
|
||||
- Translation value: procedural-city corpus triage, spiral architectural
|
||||
spines, and explicit blockers for repeat-zone feedback, repeat `Top` outputs,
|
||||
foreach zones, gizmo nodes, and converter duplicate-key failures.
|
||||
|
||||
Inspected but deferred official demo files:
|
||||
|
||||
- `hexgrid_blender_geometry_nodes_demo.blend`: mostly legacy undefined nodes
|
||||
|
|
|
|||
|
|
@ -120,6 +120,44 @@ Verification cue: compare the sampled path or the realized mesh. If downstream
|
|||
topology order matters, direct vertex order matters; otherwise sorted vertex
|
||||
comparison may be enough to prove the same visible path.
|
||||
|
||||
## Spines Carry Architecture
|
||||
|
||||
Reach for spine curves when a larger architectural feature needs a route before
|
||||
it needs walls, treads, beams, rails, or trim: spiral stairs, winding roads,
|
||||
bridges, ribs, towers, vines, banners, cables, and roof seams.
|
||||
|
||||
Mental move: author the centerline as a parameterized scaffold first. Attach
|
||||
parts later. In the IRCSS French Houses file, `MakeSpiral` gives the staircase
|
||||
system a screw-thread path before stair geometry is hung from it.
|
||||
|
||||
```python
|
||||
rail = curve_line(mode=CurveLine.Mode.POINTS, start=(0.0, 0.0, 0.0), end=(0.0, 0.0, 1.0))
|
||||
samples = resample_curve(keep_last_segment=True, curve=rail, mode="Count", count=200)
|
||||
point_count = domain_size(component="CURVE", geometry=samples).point_count
|
||||
t = math(operation=Math.Operation.DIVIDE, value=(index(), point_count))
|
||||
theta = math(operation=Math.Operation.MULTIPLY, value=(t, frequency))
|
||||
expanding_radius = math(
|
||||
operation=Math.Operation.ADD,
|
||||
value=(radius, math(operation=Math.Operation.MULTIPLY, value=(t, height_radius_gain))),
|
||||
)
|
||||
positioned = set_position(
|
||||
geometry=samples,
|
||||
position=combine_xyz(
|
||||
x=math(operation=Math.Operation.MULTIPLY, value=(math(operation=Math.Operation.SINE, value=theta), expanding_radius)),
|
||||
y=math(operation=Math.Operation.MULTIPLY, value=(math(operation=Math.Operation.COSINE, value=theta), expanding_radius)),
|
||||
z=math(operation=Math.Operation.MULTIPLY, value=(t, height)),
|
||||
),
|
||||
)
|
||||
```
|
||||
|
||||
Metaphor in use: the spine is the chalk line on the floor before the carpentry
|
||||
starts. If the chalk line is wrong, every beautiful tread and railing becomes
|
||||
obedient nonsense.
|
||||
|
||||
Verification cue: compare ordered curve points. A spine is order-sensitive;
|
||||
sorted vertices can hide a route that doubles back through the right positions
|
||||
in the wrong sequence.
|
||||
|
||||
## Fields Are Weather
|
||||
|
||||
Reach for fields when the shape should respond to position, index, normal,
|
||||
|
|
|
|||
98
docs/research/translations/ircss-french-houses.md
Normal file
98
docs/research/translations/ircss-french-houses.md
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
# Translation: IRCSS French Houses Foothold
|
||||
|
||||
## Source
|
||||
|
||||
- Repository: https://github.com/IRCSS/Blender-Geometry-Node-French-Houses
|
||||
- Source file:
|
||||
`GeometryNodesFrenchHous.blend`
|
||||
- Source group translated in this pass:
|
||||
- `MakeSpiral`
|
||||
- Geometry Script recreation:
|
||||
`examples/geometry_script/ircss_french_houses.py`
|
||||
|
||||
## Why This File
|
||||
|
||||
This is the first genuinely city-scale corpus target. The inspected `.blend`
|
||||
contains 108 geometry node groups, including thousand-node architectural
|
||||
systems:
|
||||
|
||||
- `CreateGate`: 1081 nodes / 1234 links
|
||||
- `GenerateHouse`: 1023 nodes / 1075 links
|
||||
- `GenerateChurchBuildingB`: 893 nodes / 1124 links
|
||||
- `Generate Square Tower`: 805 nodes / 877 links
|
||||
- `ChurchFrontTowers`: 792 nodes / 990 links
|
||||
- `Generate Tower`: 707 nodes / 754 links
|
||||
|
||||
The file is a town-building kit: houses, gates, towers, walls, bridges, church
|
||||
parts, stalls, cliffs, roads, rivers, vegetation, banners, windows, doors, and
|
||||
roof systems. This is the right quarry for procedural-city doctrine, but the
|
||||
first accepted bite has to be small enough to verify.
|
||||
|
||||
## First Accepted Graph
|
||||
|
||||
Source group: `MakeSpiral`
|
||||
|
||||
Geometry Script group: `VG Make Spiral`
|
||||
|
||||
Mechanism:
|
||||
|
||||
- Create a vertical curve line from `(0, 0, 0)` to `(0, 0, 1)`.
|
||||
- Resample it to 200 points.
|
||||
- Use `Index / Point Count` as a normalized parameter `t`.
|
||||
- Compute angle as `t * Frequency`.
|
||||
- Compute radius as `Radius + t * HeightRadiusGain`.
|
||||
- Place each point at:
|
||||
- `x = sin(angle) * radius`
|
||||
- `y = cos(angle) * radius`
|
||||
- `z = t * Height`
|
||||
|
||||
Metaphor: the spiral is a screw-thread spine. Stairs, rails, walls, and
|
||||
decorative ribs can hang from it later, but the first job is to prove the spine
|
||||
lands in the same places as the source.
|
||||
|
||||
## Verification
|
||||
|
||||
Run:
|
||||
|
||||
```powershell
|
||||
& 'C:\Program Files (x86)\Steam\steamapps\common\Blender\blender.exe' --background '.\experiments\source-blends\ircss-french-houses.blend' --python '.\tools\verify_ircss_french_houses_translations.py'
|
||||
```
|
||||
|
||||
Results from Blender 5.1.1:
|
||||
|
||||
| Case | Source vertices | Translated vertices | Delta | Status |
|
||||
| --- | ---: | ---: | ---: | --- |
|
||||
| MakeSpiral curve points | 200 | 200 | 0.0 | accepted |
|
||||
|
||||
The verifier converts the output curve to evaluated points and compares ordered
|
||||
vertex positions.
|
||||
|
||||
## Blockers Exposed
|
||||
|
||||
- `GenerateMedialAxisRectangleTopology` is a strong next target, but it uses a
|
||||
repeat-zone feedback loop and exposes the repeat `Top` boolean as a group
|
||||
output. The current Geometry Script path does not provide a clean linkable
|
||||
socket for that output.
|
||||
- `GenerateBricks` also uses repeat-zone geometry accumulation. Blender's
|
||||
source graph can leave the repeat geometry seed implicit; the current DSL
|
||||
path exposed the previous-geometry state as `None`.
|
||||
- `GenerateWindowsFromEdges` uses `For Each Geometry Element` zones.
|
||||
- `Pole` uses repeat zones and geometry-node gizmos.
|
||||
- `GenerateArc` and `MakeStairs` exposed a `nodes_to_script` converter bug:
|
||||
duplicated keyword arguments for `primary_axis`.
|
||||
- `WindowBeams` depends on specific upstream edge/curve inputs. A synthetic
|
||||
harness could verify its secondary base-point output, but the main beam mesh
|
||||
stayed empty for both source and translation. That was rejected as an
|
||||
acceptance target.
|
||||
|
||||
## Lessons
|
||||
|
||||
- City-scale graphs are hierarchies of organs. Start with reusable spines,
|
||||
tiles, rails, façade parts, and topology generators before translating a
|
||||
thousand-node composer.
|
||||
- Converter drafts are still useful for triage: they quickly separate clean
|
||||
helpers, repeat-zone blockers, foreach-zone blockers, gizmo-specific groups,
|
||||
and false symbol names.
|
||||
- Verification harnesses must reject empty success. If both source and
|
||||
translation output zero visible vertices for the main contract, the harness
|
||||
is not proving the graph.
|
||||
Loading…
Reference in a new issue