directX 中的三角形渲染问题

发布于 2024-09-01 07:12:32 字数 275 浏览 2 评论 0原文

我正在使用 directX 9。我在使用drawprimitive渲染三角形时遇到问题。
问题是 - 当我渲染由多个三角形组成的整个对象时,所有点都在一条线上的三角形显示整个封闭对象中的间隙。我正在展示下面的图片。白色虚线就是问题所在。

替代文本

I am working with directX 9. I have a problem while rendering triangles using drawprimitive.
The problem is - When I am rendering the whole object made of several triangles, the triangle having all points on a single line shows gap in a whole closed object. I am showing the image below. The white dashed line is the problem.

alt text

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

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

发布评论

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

评论(1

━╋う一瞬間旳綻放 2024-09-08 07:12:32

你已经尝试对对象中的所有点进行排序,然后去绘制,这样绘制时你可以很容易地找到问题。我认为问题在于精度变化。尝试检查一下..

问候

Ratty

you have try to order the all points in the object and then go to draw ,You can easily find the problem when draw like this.I think problem in precision varying.Try to check that..

Regards

Ratty

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