Results 1 to 2 of 2

Thread: What format should I use to store 3D models?

  1. #1
    Newbie Newbie
    Join Date
    Feb 2015
    Posts
    1

    What format should I use to store 3D models?

    I'm in doubt... What format should I use to store 3D models for its use in showing with OpenGL+C++? OBJ format is a pain to index vertexes, UVs and normals with a single VAO. Plus, it's a text format.
    Are there good libraries to open these files as float and int std::vectors too?

    For the moment being, it's just to show a model, but I plan in doing more things.

    Thanks in advance.

  2. #2
    Senior Member Regular Contributor uwi2k2's Avatar
    Join Date
    Mar 2011
    Posts
    138
    hi,

    well there is not really the ONE format you should use ...
    Of course there are a lot of libs, but its always a good idea to think about :"what mesh data do i need ? "
    As there are so many things in 3D Data that you may not use ..
    So i always come up with a array structure for a programm... and its mostly like
    v1, v2, v3,
    n1, n2, n3,
    t1,t2
    and than you could write youself a little converter to get obj files into that structure.

    cu
    uwi2k2
    uwi2k2 - OpenGL Trainer: www.opengl-trainer.com
    ---------------------------------------------------------
    The OpenGL and VULKAN Podcast ( OpenGL2GO ) : OpenGL & Vulkan Podcast
    ---------------------------------------------------------
    timbling.com - Indie TeamUp

Similar Threads

  1. Replies: 0
    Last Post: 06-15-2014, 09:01 AM
  2. Nice models and free models,new site!
    By 3d4ya in forum COLLADA
    Replies: 0
    Last Post: 09-24-2008, 02:04 AM
  3. What file format for building models?
    By Theater in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-17-2003, 08:46 AM
  4. IGES and STEP214 CAD format models
    By ljz in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 01-13-2003, 01:38 AM
  5. How to convert GL_RGB pixel data format (image) to GL_RGBA format
    By Coloro.cl in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 02-13-2002, 06:01 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