简体   繁体   English

我可以在 ZE84E30B9390CDB64DBZ6DB2C9AB8784D 中使用 OpenGL 绘制 3d 表面 plot

[英]can I draw 3d surface plot using OpenGL in Android?

I receive real-time data from HC-05 Bluetooth and I want to show this data in a 3D surface chart, there were few libraries but I want to do it myself.我从 HC-05 蓝牙接收实时数据,我想在 3D 曲面图中显示这些数据,库很少,但我想自己做。 I can make Pyramids and Cubes but I am confused with the Surface chart.我可以制作金字塔和立方体,但我对 Surface 图表感到困惑。 how can I draw shapes like the surface charts in OpenGL?如何在 OpenGL 中绘制类似于曲面图的形状?

This is a picture of 3D surface chart: https://www.nevron.com/NIMG.axd?i=Chart/ChartTypes/TriangulatedSurface/triangulated_surface_chart.png这是一张3D曲面图: https://www.nevron.com/NIMG.axd?i=Chart/ChartTypes/TriangulatedSurface/triangulated_surface_chart.png

Oh, I've done one of those for the Treasury yield curve.哦,我已经为美国国债收益率曲线做了其中之一。 Since you say you can do cubes, than all you have to do is make a grid of them, right next to each other, with the top four points of each aligned with the X and Z axis, and rotate them all 45 degrees.既然你说你可以做立方体,那么你所要做的就是把它们做成一个网格,彼此相邻,每个顶部的四个点与 X 和 Z 轴对齐,然后将它们全部旋转 45 度。 Don't worry about the bottom parts of the cubes that are not visable, they will get z-sorted out of view.不要担心立方体的底部不可见,它们会被 z 排序到看不见的地方。 The hardest part will be the labels, so I suggest you prerender 20 textures, that is, 0 to 90, and 100 to 900, then slap them on the sides of white cubes.最难的部分是标签,所以我建议你预渲染 20 个纹理,即 0 到 90 和 100 到 900,然后将它们贴在白色立方体的侧面。 For the tray, just make a bunch of long grey cube 2 pixels thick...对于托盘,只需制作一堆 2 像素厚的长灰色立方体......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM