Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Vertex data-Texture data in .obj file

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2017
    Location
    SE Pennsylvania on 6 acre wooded hillside
    Posts
    10

    Vertex data-Texture data in .obj file

    Just looking at a .obj file produced by Lightwave in a text editor, and was really weirded out by the way the indexed texture data was presented. Instead of a single list of the texture data, each quad's indexes was immediately preceeded by four sets of texture data for it's four vertices, and referencing was to these.

    Is there some advantage I don't see to this? It is obvious that it increases file size since all texture coordinates are listed at least four times, (I checked and yes they are) and I can't imagine that any saving in comp time is realized. Just seems strange to me.

  2. #2
    Intern Contributor
    Join Date
    Dec 2016
    Location
    Ocean Shores, WA USA
    Posts
    66
    I don't always use a text editor to look at raw binary data....

    ... but when I do, I always use Word Pad.

    Jeff

    P.S. Sorry, I had to....

    Also, have you tried loading the file with a Binary Editor, or perhaps even with C++ fopen or similar loading command?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •