雑草わんだほー

That's so wonderful♪

Structure Synth 1.5 チートシート

文脈自由3DCGソフトStructure SynthJavaレンダラSunflowで遊びはじめました。
リファレンス整理して自分用のチートシート作ったので、貼っておきます。

◇Actions◇

set maxdepth   [int] : 再帰回数の上限
set maxobjects [int] : オブジェクト数の上限
set minsize  [float] : オブジェクトの最小長 
set maxsize  [float] : オブジェクトの最大長

set seed initial : ランダムシード初期化
set seed [int]   : ランダムシード指定

set colorpool  [scheme] : randomhue _ randomrgb _ greyscale _ image:[file] _ list:[color],*n
set background [color]  : 背景色指定


◇Rule modifiers◇

md / maxdepth [int]          : 再帰回数の上限
md / maxdepth [int] > [rule] : 再帰回数の上限を迎えると投げる

w / weight [float] : 確率重み付け(指定しなければ1)


◇Transformations◇

x  [float] _ y  [float] _ z  [float] : 移動
s  [float] _ s  [float]*3            : リサイズ
fx         _ fy         _ fz         : 反転
rx [float] _ ry [float] _ rz [float] : 回転
m  [float]*9                         : 3×3回転行列

h / hue        [float] : 色相 (0~360)
    sat        [float] : 彩度 (0~1)
b / brightness [float] : 明度 (0~1)
a / alpha      [float] : アルファ (0~1)

color random          : 色乱択
color [color]         : 色指定
blend [color] [float] : 色合成 (0~1)


◇Primitives◇

box _ grid _ sphere _ line _ point _ mesh

triangle : 例 > triangle[0,0,0;1,0,0;0.5,0.5,0.5]


◇Preprocessor commands◇

#define [name] [value]                          : 変数定義
#define [name] [value] ([type]:[value]-[value]) : 変数定義(スライダー付き)