hai..I have a question about how to display the data at each coordinate or dot. The codes below are for drawing the points or coordinates using dot.I tried to display each dot with data that is written close to it. My compiler is Visual C++ 6.0 and OS win 2000. OpenGL is used for graphic.
tq
Code:
double data[34][3]; //[COLOR=red]data.dat(3d data)[/color]
void draw(void)
{
gclearbuffer();
int i,j;
double x,y,z;
gclearbuffer();
for(i=0;i<34;i++){
j=0;
x=data[i][j];
y=data[i][j+1];
z=data[i][j+2];
//only dots. I tried to dispaly data exm (52,43,21)
gpoint3d(x,y,z);
}
glflush();
}
tq