tyortel
05-06-2004, 05:51 AM
How can i load an xyz file into visual c++ and have opengl read and plot this data.
ZbuffeR
05-06-2004, 07:54 AM
OpenGL will only plot the data. For loading, you have to do it yourself or use a different lib.
Then, it is only matter of :
glBegin(GL_POINTS);
for (each point) {
glVertex3d( thisPoint.x, thisPoint.y, thisPoint.z);
}
glEnd;read the GL starting dev faq :
http://opengl.org/resources/faq/getting_started.html
tyortel
05-06-2004, 11:02 AM
Thanks!!! I dont know why i couldnt figure that out.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.