我从http://3dvrm.com/flar/下载了示例,设置了一个新的 Flash Builder 项目,进行了一些更改,最后我把我的牛放在了标记上,但只是线框,而不是纹理:-(
Actionscript 代码看起来像
private function setupDAE():void
{
//Load collada model
collada_model = new DAE();
collada_model.load("model/cow.dae");
//And setup it's initial parameters
collada_model.scale = 40;
collada_model.rotationX = 90;
}
DAE 显示
<library_images>
<image id="texture0" name="texture0">
<init_from>./Cow.png</init_from>
</image>
</library_images>
<library_materials>
<material id="material0" name="material0">
<instance_effect url="#material0-fx" />
</material>
</library_materials>
有什么帮助吗?