Creating .obj file from an array of vertices.

I am rendering a NURBS patch and I have the vertex data. What do I need to follow to create a file in .obj format which later can be used to render this patch in another application? Thanks in advance for the help (I know I have had many questions).

Sorry, please ignore. I managed to find a good tutorial.

Why not share the solution with us? :slight_smile:

remdul, the .obj format is pretty simplistic :slight_smile: . It’s all a bunch of fprintf() calls with vertex positions, then indices.

important with every file format is to correctly export it like stated in the file format definition. thats pretty straight forward if you consult the file format documentation.