ID3DXSprite Draw 方法的奇怪问题

发布于 2024-09-28 21:17:30 字数 426 浏览 2 评论 0原文

我使用 ID3DXSprite 接口在我的应用程序中绘制 gui 控件。我有一个包含所有控件的 512x512 纹理,并使用 sprite->Draw() 告诉控件的确切 RECT。一切工作正常,除了只有一台(!)机器上出现奇怪的错误。

通常,控件看起来: alt text

在那台奇怪的机器上: alt text

此外,一些控件看起来不错,但其中许多控件看起来像这个 - 边缘损坏......好吧,你可以看到差异:(

第二台机器有英特尔(R) G41 Express 芯片组视频适配器。 请,如果有人有任何想法为什么会发生这种情况 - 帮忙!

问候,安东尼。

I use ID3DXSprite interface to draw gui controls in my app. I have a 512x512 texture with all controls and use sprite->Draw() telling the exact RECT of control. Everything works fine except a strange bug on only one(!) machine.

Normally, the control looks: alt text

And on that strange machine: alt text

Moreover, some controls look fine but also many of them look like this one - with corrupted edges and ... well you can see the difference :(

The second machine has Intel(R) G41 Express Chipset video adapter.
Please, if someone has ANY ideas why can it happen - help!

Regards, Anthony.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里寻她 2024-10-05 21:17:30

在我看来,精灵的纹理中有 mipmap,而该卡选择了错误的 mipmap 级别。将 mip 贴图级别明确设置为 1,看看是否有帮助。

It looks to me like you have mipmaps in the sprite's texture and the card is choosing the wrong mipmap level. Set the mip map level, explicitly to 1, and see if that helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文