![]() |
ericvan76 (2009-07-13 22:08:44) |
dae和cube都是调用父类DisplayObject3D的replaceMaterialByName 检查一下dae的所有material是不是在do3d的materials中。 可以参考Cube的构造函数,看看是如何添加material的。 |
![]() |
DDM君 (2009-07-14 11:01:36) |
dae的模型是父集在类似'scene'这个小物体里面的,要打开dae文件去找找。 |
![]() |
Greg (2009-12-17 10:02:18) |
我使用了plane, _plane=new Plane(bitmap,70,28,16,16); 想通过点击plane,实现给plane换一个图片(比如bitmapclick),使用replaceMaterialByName,应该如何? |
![]() |
(2009-12-17 15:30:39) |
话说直接修改材质的内容不是更方便么 |
![]() |
Greg (2009-12-18 13:59:55) |
呵呵,原来_plane.material = new material就可以了~~ |
![]() |
Greg (2009-12-18 14:20:51) |
我在使用 cube.replaceMaterialByName(bitmapCilck,"top"); 的时候,发现6个面都发生变化,为啥? 而且多个cube使用replaceMaterialByName的时候点击就会发生材质无法替换的bug,为啥? |
|
|