绘制表面后,它仍然保持不旋转. [英] After Plotting the surface it is remain still not rotate.

查看:69
本文介绍了绘制表面后,它仍然保持不旋转.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个实时绘图项目,该项目将根据深度绘制具有不同颜色的海床表面.

我已经在Visual Studio 2005 [C#]中使用了Microsoft Direct x9.0.
为此,我已获取了顶点缓冲区,索引缓冲区,设备,相机,位置3d的彩色数组.

该项目正在做绘图,但是过程非常缓慢,并且放大"和缩小"也非常慢.之后,绘制完整的二进制文件.表面保留在屏幕上,但不放大,缩小且不旋转(通过键盘).

谁能建议我如何改善绘图,放大,缩小和旋转的性能.绘制时以及完成绘制后.

我想通过鼠标指针"给鼠标旋转.

这是实时绘图项目.

任何建议都会有帮助.
感谢您的建议.......

I am designing an Real time plotting project, which plot surface of sea floor with different color according to depth.

I have used Microsoft direct x9.0 with Visual Studio 2005[C#].
Form this i have taken Vertex buffer,index buffer, device, camera, position Colored array of 3d.

The project doing plotting but the process is very slow and Zoom in and Zoom out is also very slow. After it plot the complete binary file. Surface remains on the screen but not zoom in, zoom out and not rotate(through Keyboard).

Can any one suggest my how i can improve its performance in plotting and zoom in and zoom out and rotation. while plotting and after complete plotted.

I want to give mouse rotation through "mouse pointer".

It Is real Time Plotting Project.

Any Suggestion will be helpful.
Thanxs for Suggestion.......

推荐答案

您可以尝试分拆我在我的一篇文章中使用的一些代码-
You might try picking apart some of the code I used for one of my articles - AViD[^]. It uses the mouse to rotate the camera and zoom in/out. It might not be exactly what you''re looking for, but it might atleast give you a direction of where you need to go.

As for performance, you can reduce the number of meshes you create, the complexity of those meshes, and reduce the field of view of the camera. Or change the rendering to use hardware, if its not already.


这篇关于绘制表面后,它仍然保持不旋转.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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