Results 1 to 4 of 4

Thread: Creating .obj file from an array of vertices.

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2008
    Posts
    17

    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.

  2. #2
    Senior Member Regular Contributor remdul's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands
    Posts
    346

    Re: Creating .obj file from an array of vertices.

    Why not share the solution with us?

  3. #3
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: Creating .obj file from an array of vertices.

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

  4. #4
    Senior Member Frequent Contributor _NK47's Avatar
    Join Date
    Mar 2008
    Posts
    574

    Re: Creating .obj file from an array of vertices.

    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.

Similar Threads

  1. how to send vertices array using buffer
    By shinx200 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-15-2015, 06:03 AM
  2. How to pass Array to Shader like Vertices?
    By RaenirSalazar in forum OpenGL: GLSL
    Replies: 3
    Last Post: 07-22-2014, 11:19 AM
  3. Discarding vertices possible using element array buffer?
    By samvdj in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-18-2013, 03:29 PM
  4. Vertices with different attributes and Array-objects
    By hlewin in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 11-14-2012, 10:06 PM
  5. Replies: 15
    Last Post: 05-16-2000, 05:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean