Installed Three.js. Now let me build the procedural geometry engine core.
Now the SOP node library — generators, deformers, and a VEX-like wrangle.
Now the 3D viewport with Three.js.
Now the node network editor with pan/zoom, wiring, and a Houdini-style TAB menu.
Now the main application shell with timeline, presets, spreadsheet and OBJ export.
Let me improve wire-drop usability by allowing drops anywhere on a node.
I built NebulaFX — a Houdini-inspired procedural node lab that runs entirely in the browser.
What's in it
Procedural geometry engine (src/engine/geo.ts, sops.ts)
A real SOP-style geometry core: point/polygon/polyline structs with P, Cd, N attributes, Newell normals, value-noise + fBm, area-weighted sampling, and matrix transforms. 17 operators:
- Generate — Box (divisible), Sphere, Grid, Tube/Cone, Torus, Line, Circle
- Modify — Transform, Subdivide (real Catmull–Clark with boundary handling), PolyExtrude (per-face inset + normal extrusion), Mirror, Blast (plane / random prim delete)
- Deform — Mountain (fractal displacement along normals, animatable), Bend/Twist/Taper/Squash, Jitter
- Combine — Merge (4 inputs), Scatter (area-weighted points w/ normals), Copy To Points (orient-to-normal, scale/rotation variance)
- Attribute — Colour (constant/ramp/random/noise) and Point Wrangle, a mini VEX interpreter that transpiles
@P, @Cd, @N, @ptnum, @Time snippets to JS with noise(), fbm(), fit(), set(), rand() etc. — per-point code execution, live.
Node network editor — pan/zoom dotted canvas, bezier wires, drag-to-connect ports (drop anywhere on a node), detach-and-rewire, TAB search menu (or right-click) to add operators, display flags (blue dot / double-click), per-node point counts, inline cook-error badges, Del to remove, auto-fit on preset load.
Viewport — Three.js with ACES tone mapping, 4-light rig, fog, grid + axis lines, orbit/dolly, and shaded / flat / wireframe / points modes plus wire & point overlays, "frame geometry" button.
Everything else — parameter panel with sliders, vec3 fields, colour pickers and a code editor; a geometry spreadsheet (ptnum/P/N/Cd table); a 240-frame timeline with playback that re-cooks time-dependent nodes; cook-time/point/prim HUD; .obj export; and 5 preset networks (Displaced Terrain, Scattered Forest, VEX Wave Field, Crystal Cluster, Twisted Extrusion).
Build passes cleanly. Hit TAB in the network view to start building — or hit ▶ on the "VEX Wave Field" preset to see the wrangle animate.
Files built: src/engine/geo.ts, src/engine/sops.ts, src/engine/graph.ts, src/components/Viewport.tsx, src/components/NetworkEditor.tsx, src/components/ParamPanel.tsx, src/index.css, src/components/Spreadsheet.tsx, src/App.tsx, index.html