尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A node-based 3D visuals editor in the browser, in the Sverchok style, made to move with music (and later with Wax).
Live: https://zeffii.github.io/flux/
Wires carry either lists of numbers (orange) or geometry (blue: vertices, edges and faces). Short lists repeat to match long ones, so one value or one per vertex both work. Every input is also a parameter: leave it unlinked and drag its slider.
Nodes: sources (number, time, range, noise), generators (grid, circle, arc, line), solids (box, cylinder, pyramid, torus, uv sphere, icosphere, platonic), surfaces (surface, metaballs, skin), modifiers (transform, array, join, lift, edit), math (math, vector) and view. Each view node chooses its colour and whether faces show flat, smooth or as a glow.
Plain JS; the comment header declares the sockets and the body writes into the outputs, which already exist when it runs.
// petal ring
// in n_petals 8 int 1..64
// in vp_petal 10 int 2..64
// in profile_radius 2.3 0..10
// in amp 1 -4..4
// in origin geo
// out verts geo
const N = n_petals * vp_petal, [ox, oy, oz] = origin.first ?? [0, 0, 0]
verts.loop(range(N).map(i => {
const a = i / N * TAU, r = profile_radius + amp * cos(n_petals * a)
return [ox + cos(a) * r, oy + sin(a) * r, oz]
}))
in name default [int] [lo..hi]: a number slider; a range is hard (values are clamped even when linked). in name list: the whole list. in name geo, or >in name geo to wait until it's linked.out name geo: write with .point(p), .edge(a, b), .line(pts), .loop(pts), .face(...pts) (points or indices), .add(geo), or assign mesh(verts, edges, faces). out name list: an array to push to..points, .edges, .faces, .count, .first, and iterate as points.PI, TAU, range, zip, lerp, clamp, fract, rand(i, seed), noise(x, seed), mesh, time, print, and state (kept between runs until the code changes).Put an edit node on a geo wire and select it: its vertices become pickable in the 3D view. Moved vertices are kept as offsets, so they follow when the shape upstream changes; P pins vertices at an absolute place, cut loose from upstream. amount blends between the upstream and edited shapes.
| 3D view, edit node selected | |
|---|---|
| click / Shift+click | pick vertices |
| B, then drag | box select (Ctrl on release removes) |
| A / Alt+A | all or none / none |
| G R S | move, rotate, scale; then X Y Z to constrain, digits for an exact value, click or Enter to keep, Esc to cancel |
| P | pin / unpin |
| Alt+G | forget the edits on the selection |
| Editor | |
|---|---|
| Tab / right-click | add a node |
| drag a slider | change it (Shift: fine), double-click to type |
| X / Delete | delete selected |
| Ctrl+D | duplicate |
| Ctrl+Z / Ctrl+Shift+Z | undo / redo |
| F | fit the graph |
| Space | play / pause |
| Ctrl+S | save a .flux file |
In the 3D view: drag to orbit, Shift or right-drag to pan, wheel to zoom, double-click to recentre.
npm test # smoke tests for the graph and every node
npm start # http://localhost:8080
No build step: index.html loads src/main.js as an ES module. Each push to master runs the tests and publishes to GitHub Pages.
The earlier Flux (numpy nodes for Blender) is in the git history before this rewrite.