[Papervision3D2.0] EnvMapShader

2008.01.28

いっぱいあるシェーダーから、EnvMapShaderを試してみた。

e_envmap.jpg

shaderTest.swf(要:FlashPlayer9)※すんげー重いです

重いー。相当制限付けて使わないと実用性なさげ。
EnvMapShaderも然る事ながら、床の写り込みはかなり無茶だった。pv3d.orgの手法をまんま使ったんだけど、これって完全なフェイクなので一発ネタ専用な感じ。

あと、Collada.asでDAE読む時に

mList.addMaterial(matEnv, "hoge");
obj_dae = new Collada("fuga.dae", mList);

とかいう感じでShader系のマテリアルを投げるとおかしな事になった。Shader系以外のColorMaterialとかBitmapMaterialなら大丈夫なのに。

DAE.as使って

mList.addMaterial(matEnv, "hoge");
obj_dae = new DAE(false);
obj_dae.load( "fuga.dae", mList );

だとShader系マテリアルでもちゃんと反映される。

関連する投稿

Trackback URL : http://blog.r3c7.net/wp-trackback.php?p=145

コメント / トラックバック6件

  1. てんごく より:

    アンチエイリアスかけてないのに結構綺麗ですね。
    環境マップは解像度がもうちょい必要かな~。
    せっかくやってるのにもったいないですね

  2. rect より:

    >てんごくさん

    どもー。256×256じゃケチりすぎでした;
    環境マップは、いかにソレっぽく見えるものを用意できるかが難しいッスね。
    初代グランツーリスモとか改めてスゲェなぁと思いました。

  3. dougi より:

    Hi,

    Thanks for all this great examples that are so much helpful.

    Have u noticed that when u apply an effectLayer to your central object (for u, the car), the BitmapViewport3D/BitmapViewportMaterial does not work.

    Have u an idea or a way to get round this problem ?

    Thanks again for your work.

  4. Cristi Vrabete より:

    Hi,

    Great examples, but I hate not being able to understand a thing from the explanations…
    How did you apply that envMap with shaders, and more, how did you make your model move so smooth with that on? ’cause mine doesn’t move smooth at all, and it drives me crazy…

    Do you think you could share your code?

    Thank you,
    Cristi

  5. rect より:

    Cristi,

    Thank you for your comment.
    I referred to the following.

    http://www.zeropointnine.com/blog/a-papervision-20-alpha-example
    http://pv3d.org/2008/01/25/example-reflection/

    I hope this piece of information will be of help to you.
    I’m sorry for poor English.
    cheers.

  6. wokada より:

    away3d 2.0 を達成するために使用することができますこの効果ですか?

コメントをどうぞ

Powered by WP Hashcash