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

ofLightメモ

http://www.openframeworks.cc/documentation/gl/ofLight.html setup()の中 ofSetSmoothLighting(true); //スムース(なめらか)処理する //Float値でカラー設定(浮動小数点数で動作するようにしたい場合)r g b pointLight.setDiffuseColor( ofFloatColor(.85,…

ofPlanePrimitiveメモ

前回の続きで3DPrimitivesExsampleについて まず、ofPlanePrimitiveの場合 //初期に幅、高さなどをセット plane.set(float width, float height, int columns, int rows); //draw()にて //3次元位置を決めたり plane.setPosition(float px, float py, float …

of3dPrimitiveメモ

簡単に3Dオブジェクトを描画できる ofNode→of3dPrimitiveを継承したクラスが 6個ある ofSpherePrimitive //頂点が4点(四角形)で構成された球? ofIcoSpherePrimitive //頂点が3点(三角形)で構成された球? ofPlanePrimitive //平面板 ofCylinderPrimitive //円…

ofMeshメモ

ofMesh メッシュには多くの情報が含まれている 3D空間での頂点の集合 おのおのの点での法線は点の色 素材感、点の座標値 これらの異なる特性を それぞれのベクターに格納されている void ofMesh::setMode(ofPrimitiveMode mode)について ofPrimitiveModeを引…

テスト投稿

2014年からいろいろメモしてく予定 twitter https://twitter.com/y_okasuke http://twitpic.com/photos/y_okasuke wonderfl http://wonderfl.net/user/OKASUKE/codes 旧メモブログ http://blog.livedoor.jp/okasuke_y/ Vimeo https://vimeo.com/user27712419