PDA

View Full Version : reading faces from OpenGL buiffer



03-12-2004, 10:24 AM
hi ppl , my glreadPixel prob is solved .thank u all. now i want to know is there is a way to read the faces (or vertces) that a generated by a new quadric shape or a primitive provided by glut. my purpose is to write a cad program and allow user to convert that primitive into mesh object for editing just like in 3DS max . so i need the faces and vertices generated by openGl.any possibilities and impossibilities? plz its urgent ! iam at the end of my project.
-indra

03-13-2004, 11:57 AM
plz some one help me its urgent!

Overmind
03-15-2004, 12:08 AM
It is not possible to directly read the faces or vertices from an OpenGL buffer because they are not stored.

If you want the geometry of primitives generated by glu* or glut* functions, look at the source code of glu/glut (available somewhere at the sgi homepage) how they are generated and generate them yourself.

03-16-2004, 09:02 AM
thanku iam looking at the source of glut now!
-indra