我在 Away3D 3.6 中遇到了 MovieMaterial.as 的特殊问题。
我有一个 3D 地球仪,上面有可点击的白色热点(见下图)。当我在下面的代码中将 interactive 设置为“true”时,当我将鼠标移到地球表面时,会突然出现 MovieMaterial 的 2D 副本(见底部图片)。当我移动鼠标时,这个 2D 图像也会移动。
_hotspotGlobeMaterial = new MovieMaterial( _hotspotSprite, { interactive: true, smooth: true, transparent: true } );
_hotspotGlobe.material = _hotspotGlobeMaterial;
http://grandinteractive.com/misc/GlobeWithHotspots.png
这里的二维问题:
您还会注意到白色/透明区域是相反的。