当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - XNA 4.0 Point Vertex Rendering

问题描述:

I have a buffer of about 134 million particles and a very powerful computer to render them smoothly but I am getting an error when trying to render them as primitive lines it says I cannot render more than around 1 million. I wonder how can I do this, also if is there a better way to render this other than with lines, I'm comfortable with having 1 pixel points or anything as long as the vertices are shown all the time. I'm basically just plotting the points.

thanks.

网友答案:

Split it?... :?

You can also draw in wireframe mode...

static readonly RasterizerState Wireframe = new RasterizerState() { FillMode = FillMode.Wireframe };


GraphicsDevice.RasterizerState = Wireframe;

If you need to draw in both modes you can change the DepthBias too, to change the depth of the wireframe.

分享给朋友:
您可能感兴趣的文章:
随机阅读: