Papervision3Dメモ #28
2007.09.01
Line3Dを試す
Andy Zupko氏による、PV3D用クラス「Line3D」を試してみた。
3Dフラクタルの木。ありがちー。しかもアルゴリズムが良くないのでやたら重い。むー。
tree3d.swf(要:FlashPlayer9)
Line3Dは、
var varray:Array = new Array(); var v1:Vertex3D = new Vertex3D(x,y,z); var v2:Vertex3D = new Vertex3D(x,y,z); varray.push(v1); varray.push(v2); var obj_Line:Line3D = new Line3D(varray, 線の色:int, 線のアルファ:Number , 線の太さ:int); scene.addChild( obj_Line );
みたいにして使う。もしくは、
obj_Sphere = new Sphere(new ColorMaterial( 0x0099cc), edgeSize, seg, seg); var obj_Line:Line3D = new Line3D(obj_Sphere.geometry.vertices, 線の色:int, 線のアルファ:Number , 線の太さ:int);
って感じで。
早速Tweenerと連携させてる人とかもいたりして、いろいろできそう。
今のところ公式のクラスじゃないので、ダウンロードは上記のAndy Zupko氏のblogから。
関連する投稿
Trackback URL : http://blog.r3c7.net/wp-trackback.php?p=101

[...] a nice Line3D demo. And this post wouldn’t be complete with a link to a japanese page, so here’s another nice Line3D example, similar to the previous one but using a tree instead. Again, no Tweener used, [...]
[...] check the demo and the related post. [...]
[...] a nice Line3D demo. And this post wouldn’t be complete with a link to a japanese page, so here’s another nice Line3D example, similar to the previous one but using a tree instead. Again, no Tweener used, [...]
[WORDPRESS HASHCASH] The comment’s server IP (66.33.204.4) doesn’t match the comment’s URL host IP () and so is spam.
I wish you would post a link to your sourcecode so I can see what you did there.