3D Mesh / Geometry

ポリゴンによる3次元メッシュ・モデリングは1970年代初頭からのコンピュータグラフィックスの基礎である(例: マーティン・ニューウェルのユタ・ティーポット、1975)。生成芸術における単一起源を持たない汎用的な CG プリミティブ。

コミュニティ・通称 名称 — 命名・エポニムではなく記述的なカテゴリ名。用語の単一の命名者は確認されていない。

ひとことで three.js / regl 等で 3D メッシュを構築・変形してレンダリング。インスタンス描画やジオメトリ生成を含む。

3D Mesh / Geometry · Open in new tab ↗ · Motion begins only when you press Run.

コード

上のデモの実際のスケッチ(サンドボックスで再現可能)。これで全部です。

mesh-3d/index.html
const SEED = Math.floor(Math.random()*1e9);

// p5 WEBGL: a rotating displaced sphere of cubes (instanced look) with
// per-instance hue. Demonstrates 3D mesh assembly + lighting.
let pts = [];
let hueBase;

function setup() {
  randomSeed(SEED); noiseSeed(SEED);
  const s = Math.min(windowWidth, windowHeight);
  createCanvas(s, s, WEBGL);
  colorMode(HSB, 360, 100, 100);
  hueBase = random(360);

  // Fibonacci sphere of points, radius modulated by noise.
  const N = 360;
  const R = s * 0.30;
  const ga = Math.PI * (3 - Math.sqrt(5));
  for (let i = 0; i < N; i++) {
    const y = 1 - (i / (N - 1)) * 2;
    const r = Math.sqrt(1 - y * y);
    const th = ga * i;
    const nx = Math.cos(th) * r, nz = Math.sin(th) * r;
    const disp = 1 + noise(nx * 1.2 + 9, y * 1.2, nz * 1.2) * 0.5;
    pts.push({ x: nx * R * disp, y: y * R * disp, z: nz * R * disp, n: y });
  }
}

function draw() {
  background(230, 40, 8);
  const s = width;
  ambientLight(0, 0, 35);
  directionalLight(0, 0, 100, 0.4, 0.6, -0.7);
  pointLight((hueBase + 60) % 360, 60, 100, 0, 0, s);

  rotateY(frameCount * 0.006);
  rotateX(Math.sin(frameCount * 0.004) * 0.5 + 0.4);

  noStroke();
  const bsz = s * 0.018; // NB: don't shadow p5's box()
  for (const p of pts) {
    push();
    translate(p.x, p.y, p.z);
    const h = (hueBase + (p.n + 1) * 90) % 360;
    ambientMaterial(h, 65, 92);
    box(bsz);
    pop();
  }
}

デモのソースを開く ↗

仕組み

メッシュは頂点(位置+法線/UV/色)をインデックスで面に結んだもの。生成的 3D 作品は概ね:(1) ジオメトリ生成 — プリミティブから始める、または手続き的に頂点構築(パスの押し出し・プロファイルの回転・細分化・等値面のマーチ・形態の成長)し法線を計算、(2) 変形 — ノイズ/フロー場/毎フレーム物理で頂点を変位、ターゲット間モーフ、または頂点シェーダで GPU 上アニメート、(3) レンダリング — バッファを GPU に渡し、マテリアル/ライティングで陰影、描画(多数複製はインスタンス化)、カメラが 2D へ投影。見た目は頂点の配置と動かし方で決まり、メッシュを GPU 上に保ち属性だけ更新すれば大規模ジオメトリもリアルタイム。

パラメータ

系譜

関連
Instanced Geometry、Delaunay Triangulation

よく組み合わされるアルゴリズム

このアルゴリズムを使う作品 (57)

Anticyclone
william-mapan
Assemblage
sab-k2xl
Augmented Sequence
toiminto
Autoscope
erik-swahn
Beauty of Skateboarding
jeanvascript
⧉ Cube³s
paul-prudence
Captives #B04
quayola
celestial cyclones
hideo
Colorspace
tabor-robak
Cosmodesias
santiago
Crystallization
iris-van-herpen
curio
corneel-cannaerts-luis-e-fraguada
Cybernetic Landscape I
aaron-marcus
Democracity
generative-artworks
Ego Death
electralina
Funktor
erik-swahn
Fushi No Reality - フシノゲンジツ
samsy
Galaxiss
xenoliss
Gas Wars
jack-butcher
Geometry Runners
rich-lord
Immaterial
bj-rn-staal
Invasion Percolation
barabasilab
Isodream
henrysdev-amnda
Jiometory No Compute - ジオメトリ ハ ケイサンサレマセン
samsy
Kai-Gen
takeshi-murata-christopher-rutledge-j-krispy
Lava Glow
jeanvascript
mecha suits
hideo
Metropixeland
fernando-jerez
Mind Maze
parse-error
Neophyte MMXXII
sterling-crispin
New Nature
marpi
OnChainChain
rizzle-sebi-miguelgarest
Organized Disruption
joshua-davis
Panelscape 🅰🅱
paolo-tonon
Paths
darien-brito
Paysage 17.219
joanie-lemercier
Pigments
darien-brito
PrimiDance
wuwa
PrimiEnd
wuwa
PrimiLife
wuwa
Quarantine
owen-moore
Quintrino
bathsheba-grossman
Race Condition
jonas-lund
Stations
fernando-jerez
Structura
office-ca-protocelllabs
Subdivided Columns
michael-hansmeyer
Sunstone
ed-emshwiller
The Eternal Pump
dmitri-cherniak
The Wrapture
dmitri-cherniak
Tout tracé
florian-zumbrunn
Transjovian Pipeline
david-em
undead wyverns
hideo
Vahria
darien-brito
Vortex
jen-stark
VOXΞL
jeanvascript
Yume no Sekai
kira0
Zupermat
0xphiiil

最終更新 2026-07-16