Building a 3D image

Hi! I’m trying to build a 3d image using a matrix in which a have the values of x,y and z. How can i make this, i would aprecciate some ideias…because i’ve tried so many things without results! Thanks in advance!

Hi bubbu

Um what you need to have is x,y,z twice, let me explain.
we need the start of any lines yes it’s xyz
and we also need the end of every line we call xe ye’ e _stands for end, and you allready know the xb yb zb is for beginning
gl_Begin(GL_LINES)
glColor3f(1.0,1.0,0.0);
glVertex3f(xb,yb,zb);
glVertex3f(xe,ye,ze);
glEnd();

this will produce your line to form an entire
matrix it self Z is only a depth nothing more its like Im saying ya ya ya Im drawing the same picture but at a different depth Z it’s that simple Hope this helps o9i8 Out…

[This message has been edited by o9i8 (edited 02-18-2002).]