WPF中的DirectX原语是否等效? [英] DirectX Primitives equivalent in WPF ?

查看:115
本文介绍了WPF中的DirectX原语是否等效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DirectX中有一些基本类型枚举,它们包含Point,Line,LineList,LineStrip,Triangle,TriangleFan,TriangleStrip ...

我只能在WPF 3D中找到Triangle.

然后如何使用WPF绘制点,线或有线对象.

如果我不提供材料,那么我什么也看不到

谢谢

There are Primitives types enum in DirectX that contains Point, Line, LineList, LineStrip, Triangle, TriangleFan, TriangleStrip...

I can find only Triangle in WPF 3D.

Then how to draw point, line , or wired object using WPF.

If I do not supply material then I cannot see anything

Thanks

推荐答案

答案很简单:你不能.

至少不是简单的方法. Viewport3D控件可以以简单的方式显示3D内容,但是有很多限制.例如,不可能画线(尽管有解决方法,所以不可能渲染线框对象),并且基本上所有您可以使用的都是三角形...

您可以使用 D3DImage类在WPF应用程序中托管Direct3D内容.并完全控制渲染过程.
The answer is simple: you can''t.

At least not the easy way. The Viewport3D control makes it possible to display 3D content in simple way, but there are many restrictions. For example it''s not possible to draw lines (thus it''s not possible to render a wireframe object, although there are workarounds) and basically all you can use are triangles...

You can use the D3DImage class to host Direct3D content in a WPF application and have full control over the rendering process.


这篇关于WPF中的DirectX原语是否等效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆