WPF 中的环境光遮挡着色器效果?

发布于 2024-07-07 23:18:28 字数 279 浏览 9 评论 0原文

我想这是一个由多个部分组成的问题。

我可以将 3D 模型导入到我的 WPF 应用程序中,但如何对其应用环境光遮挡着色器效果? 我知道使用 .NET 3.5 SP1,您可以执行自定义效果,但这仅限于像素着色器,不包括顶点着色器。

我想我可以使用 XNA 应用程序来做到这一点,但我不熟悉 XNA,所以第二个问题是: WPF 和 XNA 有多少不同? 我似乎对 XNA 中的 XAML 没有任何概念。 从 WPF 迁移到 XNA 需要多少提升?

谢谢, 克里斯

I guess this is a multi-part question.

I can import a 3D model into my WPF application but how do I apply an ambient occlusion shader effect to it?
I know with .NET 3.5 SP1 you can do custom effects but that's limited to pixel shaders and doesn't include vertex shaders.

I think i can do this with an XNA application but Im not familiar with XNA so the second question is:
How much different is WPF and XNA? I don't seem to have any notion of XAML in XNA. How much ramp up would moving from WPF to XNA take?

Thanks,
Chris

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

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

发布评论

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

评论(2

云胡 2024-07-14 23:18:28

回答你的第二个问题:

WPF 和 XNA 完全不同。 他们确实共享以下内容:

  • 基于 .net
  • 使用 DirectX
  • 可以访问显卡的硬件加速

XNA 没有内置任何 GUI 支持,并且真正针对游戏(适用于 PC 和 XBOX-360),而 WPF 可用于商业风格应用程序。 正如您所发现的,XNA 没有任何 XAML 支持,实际上它主要是 DirectX 的抽象 .net 包装器。

To answer your second question:

WPF and XNA are completely different. They do share the following:

  • Built upon .net
  • Use DirectX
  • Can access hardware acceleration of the video card

XNA does not have any GUI support built in and is really aimed at games (for PC and XBOX-360) whilst WPF is usable in business style applications. As you've discovered XNA does not have any XAML support, indeed it is mainly an abstract .net wrapper for DirectX.

她如夕阳 2024-07-14 23:18:28

如果您了解“环境遮挡”等术语,那么您可能应该使用 XNA。
XNA 作为 API 并不难学,但正如前面提到的,它是用于游戏开发的。 有很多很棒的 XNA 教程

您可以同时使用 WPF 和 XNA,了解更多相关信息这里

您能告诉我们更多关于您正在尝试做的事情吗?

If you have an understanding of terms like "ambient occlusion" then you should probably be working with XNA.
XNA as an API is not difficult to learn, but as was mentioned, it is intended for game development. There are lots of great XNA tutorials out there.

You can use both WPF and XNA in concert, read more about that here.

Can you tell us more about what you are trying to do?

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