イラスト、モデリング、Unity、VR関連

unityとかblenderとかvr関連の作業メモ

2021-09-01から1ヶ月間の記事一覧

int row = 256; //rowとclnをいじる。rowは1024の約数にする int cln = 8; int ma = new int[row][cln]; int mb = new int[cln][cln]; int mc = new int[cln][row]; int mp = new int[row][row]; float cell_size; int repeat = 1; int mass_cell_size; bool…

織り機

int row = 20; int cln = 4; int ma = new int[row][cln]; int mb = new int[cln][cln]; int mc = new int[cln][row]; int mp = new int[row][row]; float cell_size; int repeat = 10; int mass_cell_size; void setup(){ size(1024,1024); noStroke(); cel…

二次元セル・オートマトン

//二次元セル・オートマトン mod変更で模様変えられる int num = 128; int mod = 8; int state = new int[num][num]; int g_black = color(0); void setup(){ frameRate(10); size(1024,1024); background(g_black); colorMode(HSB,100); initializeState();…

Processing 正六角形

int g_w = 1024; //int g_h = 1024; int g_h = 1024; int g_black = color(0); int g_white = color(255); int g_red = color(255,0,0); int g_green = color(0,255,0); int g_blue = color(0,0,255); //int g_cx = rp(0,g_w-1); //int g_cy = rp(0,g_h-1); …

Processing 自作関数

void draw_inside_circle(int cx,int cy,float r,int cnt){//外側のサークルの中心と半径 cnt--; if(cnt<0) return; float r_comp = 2*sqrt(3)/3; float nr = (r_comp/(1+r_comp))*r; float kr = r-nr; float rad = 30*PI/180; int nx,ny; for(int j=0;j<3;j…