在XNA 4.0中绘制曲线3D [英] Draw curve 3D in XNA 4.0

查看:109
本文介绍了在XNA 4.0中绘制曲线3D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想模拟一个倾斜倾斜的物体.我想画出自己的路.因此,我必须绘制一条曲线来模拟此对象倾斜倾斜的路径.有关于3D绘制曲线的任何示例吗?

解决方案

尽管本文更注重实体",您可以从msdn中获得一些有用的信息:
http://msdn.microsoft.com/en-us/library/ms747437.aspx [ ^ ]

以防万一您认为这没有用...
什么是线?您可以将其简化为表面的边缘

因此,如果要绘制曲线,可以简化3D对象,例如鸡蛋.

Edit2:
我的意思是,您可以了解查看器/摄像机"位置,3d空间坐标等概念,而不必关注表面和纹理.


I want to simulate an object thrown oblique. And I want to draw its path. So I must draw one curve simulate path of this object throw oblique. Have any example about draw curve in 3D?

解决方案

Altough the article is more "solids" oriented, you can get some useful information from msdn:
http://msdn.microsoft.com/en-us/library/ms747437.aspx[^]
Edit1:
Just in case you do think this is not useful...
What is a line? You can simplify it as the edge of a surface

So if you want to draw a curve, you can get it simplifying a 3d object like an egg.

Edit2:
I mean, you can learn about the concepts of the "viewer/camera" position, the 3d space coordinates and so on, just don''t pay attention to the surfaces and the textures.


这篇关于在XNA 4.0中绘制曲线3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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