我刚完成了我的高度图,每行用三角形条纹渲染。我的解决办法是: height=data[k];
coords.push_back((float)col);
coords.push_back((float)(height/heightscale));
coords.push_back((float)row);
k+=3; //red is enough, im using greyscale
我正在努力使opengl三角形条显示为线框。我展现算法看起来是这样的: // want to display by strip here to allow for quick processing of each of the polygons that we need
// allow a quick strip of polygons to be drawn
glBegin(GL_TRIA
我想在WebGL中用三角形构造一个平面。我的构造函数的代码如下所示: function plane(points_transform)
{
shape.call(this); // Inherit class shape’s array members by calling parent constructor
if(!arguments.length) return; /