Flash 11 wmode 透明不再适用于无窗口组件
我们有一个独立的产品(不是基于浏览器的),它的一些 GUI 使用 Flash。我们让 flash 渲染到无窗口控件,然后使用该位图作为 3D 纹理,然后由 directx 显示,
我们传统上利用“将其渲染为黑色,然后将其渲染为白色,并痛苦地从图像中提取 alpha 信息”。 flash 电影”,因为我们需要电影的完整 Alpha。
从 flash 11 开始,无论我们将位图预填充为什么(并且我们使用 wmode=transparent),flash 现在都会用黑色覆盖该位图,从而阻止我们提取 Alpha 并在各处留下丑陋的黑色轮廓。
虽然如果 Flash wmode=transparent 再次开始工作那就太好了,但如果我们可以使用 wmode=window 并让 flash 直接将 Alpha 提供到我们的目标渲染位图中,那就更棒了。
对闪存更好,对我们也更好。但据我所知,Draw() 方法只渲染 RGB 而不是 RGBA
We have a standalone product (not browser based) that uses Flash for some of its gui. We let flash render to a windowless control then used that bitmap as a 3D texture where it is then displayed by directx
we have traditionally taken advantage of the 'render it on black, then render it on white, and painfully extract the alpha info from the flash movie' since we need the full alpha from the movie.
As of flash 11, no matter what we prefill the bitmap to (and we use wmode=transparent), flash now overwrites that with black, preventing us from extracting the alpha and leaving ugly black outlines everywhere.
While it would be great if Flash wmode=transparent just started working again, what would be even more fantastic would be if we could use wmode=window and have flash directly provide the alpha into our target render bitmap.
Better for flash, better for us. But as far as I can see, the Draw() method only ever renders RGB and not RGBA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎 f-in-box 也有同样的问题,但似乎他们已经解决了。这里,一位客户写了有关“黑色背景”问题的文章: http://f- in-box.com/forum/viewtopic.php?t=873。一段时间后,发布了新的更新,修复了这个问题: http://f- in-box.com/forum/viewtopic.php?t=891
希望有帮助。
It seems that the same problem had f-in-box, but it seems that they've resolved it. Here a customer writes about "black background" problem: http://f-in-box.com/forum/viewtopic.php?t=873. After some time new update is issued where it fixed: http://f-in-box.com/forum/viewtopic.php?t=891
Hope it helps.