Flash 10 3D 制作文本模糊
我得到了一个精灵,我正在用rotationX & 旋转它。旋转Y。这会将剪辑转换为 3D 对象。这使得其中的文字变得模糊。
当我将此剪辑旋转回rotationX=0 和rotationY=0 时,我设置: this.transformation.matrix3D = null; 这使得文本变得清晰。
但是,当我向该精灵添加另一个剪辑时,它的 z=400(或任何 z)。文本不会变得清晰,即使我设置了,我旋转的精灵中的其他剪辑似乎仍然是 3D: this.transformation.matrix3D = null;
我什至尝试在旋转为 0 时在 z=400 的剪辑上删除Child。并且还尝试在该剪辑上设置matrix3D = null。但这没有帮助。有人知道如何“摆脱”z=400 的剪辑的 3d 部分吗?或者我是否必须将带有 z 的剪辑从我正在旋转的剪辑中移开(其他事情会弄乱=)?
I got a Sprite that I'm rotating with rotationX & rotationY. This converts the clip to 3d object. Which makes texts in it blurred.
When I'm rotating this clip back to rotationX=0 and rotationY=0, I'm setting:
this.transformation.matrix3D = null;
Which makes the texts crisp.
BUT, when I'm adding another clip to this sprite, that has z=400 (or any z). The texts just won't get crisp, the other clips in my sprite that I have been rotated seems to still be 3d even if i set:
this.transformation.matrix3D = null;
I've even tried to removeChild on the clip with z=400 when rotation is 0. And also tried setting matrix3D = null on that clip. But that doesn't help. Any one having any ideas how to "get rid" of the 3d of the clip with z=400? Or do I have to move that clip with z away from the clip I'm rotating (other things will mess up =)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我了解,Keith Peters 的这篇文章中讨论了您的问题,您可能想看一下,因为他解释得非常好:
http://www.bit-101.com/blog/?p=2391
“基本上,如果您有一系列三个或更多嵌套对象,并应用对其中两个进行 3D 转换,嵌套在这两个之间的任何剪辑都将成为 3D 对象(即具有矩阵 3D 属性)。”
As far as I understood your question is talked in this post of Keith Peters, you might want to take a look as he explains it really well:
http://www.bit-101.com/blog/?p=2391
"Basically, if you have a series of three or more nested objects, and apply 3D transformations to TWO of them, any clips nested between those two will become 3D objects (i.e. have a matrix3D property)."
将变换矩阵设置为空...
Set the transformation matrix to null...