Funktor

Erik Swahn · 2023

Sample output of Funktor

Each *Funktor* is defined by a sequence of mathematical functions called signed distance functions. This type of function describes the relationship between the interior and exterior of shapes, yielding negative or positive values depending on whether a point in space belongs to the inside or the outside of the shapes they describe, and values close to zero for points on the boundary between them. In that sense, they are like architectural drawings, only instead of lines, they use the the value zero to mark the boundaries between outside and inside - in other words, walls. A room, in this context, is therefore a region of space that return negative values when its defining function is sampled. In *Funktor*, a simple sequence of such functions is defined, then twice extruded and interpolated, as if going from floor to floor, with the previous level transforming into the next through simple linear interpolation. There are no surfaces, only a field of points at regular intervals, sampled in space. For values close to zero, there's a coloured dot. In that way, only the boundaries between inside and outside are visible, sometimes floating in space, sometimes standing firmly on a ground plane. You can press '1' to '5' to export PNG image files of increasing resolution. You can press 'e' to export an STL file that can be used for 3D printing, or 'o' to export an OBJ file. You can also press 'g' to export a GIF animation and 'p' to repaint the Funktor. Note that the STL and OBJ files can be very large. *Funktor* is part of the exhibition *Generative Architecture* and was written in Javascript using p5.js in 2023.

仕組み

main.js defines signed-distance functions (fScene, fRect, fCircle, fGradient, credited to IQ) sampled over a 3D field and oblique-projected as plotted dots, with voxel-to-triangle STL/OBJ export.

核は「符号付き距離関数(SDF)で定義した立体場を点描としてプロットする」ことです。main.js が fScene・fRect・fCircle・fGradient といった距離関数(Inigo Quilez に着想)を定義し、3次元の xyz グリッド上で値をサンプリングします。レイを飛ばす代わりに、しきい値を満たす点を斜投影してプロッタ的な不揃いのドットとして打つのが特徴です。 さらにボクセル化した形状を三角形に変換し、STL/OBJ として3Dメッシュ書き出しもできる、立体造形を前提とした設計になっています。SDFによる滑らかな形の合成と、手描き風の点プロットという二つの質感が同居します。距離関数の組み合わせや投影・密度がトークンごとに変わり、幾何学的に整ったものから粒の散ったラフなものまで作風が分かれます。

パレット

ジェネレーターのスクリプトから · 248
#f0f8ff#faebd7#00ffff#7fffd4#f0ffff#f5f5dc#ffe4c4#000000#ffebcd#0000ff#8a2be2#a52a2a#deb887#5f9ea0#7fff00#d2691e#ff7f50#6495ed#fff8dc#dc143c#00008b#008b8b#b8860b#a9a9a9#006400#bdb76b#8b008b#556b2f#ff8c00#9932cc#8b0000#e9967a +216 more
出力から抽出 · 8
#e6e7dc#e0c0b2#538774#be9782#afcdc7#81ada4#3e523d#9d4b5f

アルゴリズム

詳細

ランタイム
Browser (WebGL / GLSL)
ムーブメント
Long-form Generative Art
メディア
Real-time software
関連
released-on → verse
オンチェーン
ethereum · 0x30173aefdd74d8b7db0ee6b69e33feb6feb31106

出典

関連作品 (共有するアルゴリズムによる)

Autoscope
erik-swahn · 2024
Cytographia
golan-levin · 2024
Immaterial
bj-rn-staal · 2023
Fushi No Reality - フシノゲンジツ
samsy · 2023
Yume no Sekai
kira0 · 2023
Cosmodesias
santiago · 2022
celestial cyclones
hideo · 2021
Kai-Gen
takeshi-murata-christopher-rutledge-j-krispy · 2021

最終更新 2026-07-16