0

これは、threejs の collada ローダーの例を使用してレンダリングされたモデルです。フラットシェーディングを使用していると思います。(したがって、ブロック状の鼻)

これがメッシュラボの Smooth Shader を使用したモデルです

MeshFaceMaterial を使用して obj/js ファイルにスムーズ シェーディングを適用する方法は既に知っています。私の質問は、collada ローダーを使用してレンダリングされた dae ファイルにスムーズ シェーディングを適用するにはどうすればよいですか? これは threejs でサポートされていますか?

ありがとう

4

1 に答える 1

0

やってみました:

var loader = new THREE.ColladaLoader();
callBack = function colladaReady( collada ) {
    var dae = collada.scene;
    var skin = collada.skins[ 0 ];

    dae.scale.x = dae.scale.y = dae.scale.z = 0.002;
    dae.updateMatrix();
    dae.material = new THREE.MeshLambertMaterial({ shading: THREE.SmoothShading});
    // or something of this sort....
    scene.add(dae);
};
loader.load(modelPath, callBack);

それが役立つかどうかはわかりませんが、ソースからの別の例を次に示します: http://mrdoob.github.com/three.js/examples/webgl_loader_collada.html

于 2012-08-14T07:46:25.257 に答える