Ads by Google
新しい記事を書く事で広告が消せます。
[Papervision3D] Slight Change to setting Material to DAE
DAEのマテリアルをつけるには今までは
でしたが最新のrev.444(Effect)では
となる。
DAEChildNameはOutput Panelに
DisplayObject3D: COLLADA_root
DisplayObject3D: DAEChildName
と表示されるのでわかりやすい。
var matsList :MaterialsList = new MaterialsList();
matsList.addMaterial(new ColorMaterial(), "MaterialName");
dae.load("assets.dae", matsList);
でしたが最新のrev.444(Effect)では
dae.load("assets.dae");
dae.addEventListener(Event.COMPLETE, daeComplete);
private function daeComplete(e:Event):void{
view.scene.addChild(dae);
dae.setChildMaterialByName("DAEChildName",new ColorMaterial() );
}
となる。
DAEChildNameはOutput Panelに
DisplayObject3D: COLLADA_root
DisplayObject3D: DAEChildName
と表示されるのでわかりやすい。
[Papervision3D]DepthShader
DepthShaderがAndy氏によって公開されました。

See DepthShader Demo
Here's the Source
ソースでは_bezierを何回も繰りかえしていますが、何にも効果がないみたいです:(
UPDATE!!!
_bezierは
_bezier:[{x:random, y:random, z:random},
{x:random, y:random, z:random},
{x:random, y:random, z:random}]
などとすることで複雑な曲線を描くことができるようです。
See DepthShader Demo2
Here's the Source
See DepthShader Demo
Here's the Source
ソースでは_bezierを何回も繰りかえしていますが、何にも効果がないみたいです:(
UPDATE!!!
_bezierは
_bezier:[{x:random, y:random, z:random},
{x:random, y:random, z:random},
{x:random, y:random, z:random}]
などとすることで複雑な曲線を描くことができるようです。
See DepthShader Demo2
Here's the Source
[Papervision3D]PV3D + WOW Engine
WOW Engine Releasedより、早速作ってみました。
WOW Engineは座標を返すだけなので、それらの座標ををPV3DのSphereなどに割り当てれば使えます。

See PV3D_Plus_WE_Demo
See PV3D_Plus_WE_Demo With Effects, but which sometimes not rendered properly
About FlatShadeMaterialWithAlpha Class
Someone have talked about it before on the PV3D Mailing List, but I can't find the thread right now.
FlatShadeMaterialWithAlpha in my class is almost the same as FlatShadeMaterial.
I just added
and change the constructor to
You can see the source of FlatShadeMaterialWithAlpha
WOW Engineは座標を返すだけなので、それらの座標ををPV3DのSphereなどに割り当てれば使えます。
See PV3D_Plus_WE_Demo
See PV3D_Plus_WE_Demo With Effects, but which sometimes not rendered properly
About FlatShadeMaterialWithAlpha Class
Someone have talked about it before on the PV3D Mailing List, but I can't find the thread right now.
FlatShadeMaterialWithAlpha in my class is almost the same as FlatShadeMaterial.
I just added
private var _alpha : Number;
and change the constructor to
public function FlatShadeMaterialWithAlpha(light:LightObject3D, diffuse:uint=0xffffff, ambient:uint=0x000000, alpha:Number=1)
{
super();
this.light = light;
_alpha = alpha;
_colors = LightMaps.getFlatMapArray(diffuse,ambient,1);
}
You can see the source of FlatShadeMaterialWithAlpha
[Papervision3D]Bouncing Ball
Foundation ActionScript 3.0 Animation: Making Things Move By Keith Peters(日本語版:ActionScript 3.0 アニメーション)のボールをバウンスさせるアニメーションから作ってみました。
ちなみにもうすぐAS3 3D Physics Engine : WOW-Engineがリリースされるようです。

See Bounce Demo
You can add Sphere by double-clicking background.
You can stop "yaw" function by pressing down Space key.
You can view the source here.
ちなみにもうすぐAS3 3D Physics Engine : WOW-Engineがリリースされるようです。
See Bounce Demo
You can add Sphere by double-clicking background.
You can stop "yaw" function by pressing down Space key.
You can view the source here.


