Original Post
Hoping to get a detailed response!
I'm wondering how I can read in a UV texture map that looks something like this:
http://oi43.tinypic.com/osc2tu.jpg
The above was saved from a very simple sphere and saved as an object file.
I am using OpenGL and want to import it using an object loader.
Here are some snippets from that file if this offers a clue to how faces are organized.
v 0.788558 0.182857 -0.583303
v 0.763021 -0.552948 -0.325232
v 0.000000 0.441661 -0.871224
v 0.000000 0.947624 -0.233366
v 0.000000 0.172146 0.960696
vt 0.527612 0.590604
vt 0.619266 0.558969
vt 0.620496 0.648223
vt 0.507932 0.493025
vt 0.578067 0.505968
f 1/4 17/5 39/1
f 16/2 39/1 17/5
f 3/13 13/14 6/15
f 6/15 13/14 35/16
f 3/13 14/17 13/14
Wondering if glTexCoord2f() is all I need with the vt values?
Any help would be appreciated.
I'm wondering how I can read in a UV texture map that looks something like this:
http://oi43.tinypic.com/osc2tu.jpg
The above was saved from a very simple sphere and saved as an object file.
I am using OpenGL and want to import it using an object loader.
Here are some snippets from that file if this offers a clue to how faces are organized.
v 0.788558 0.182857 -0.583303
v 0.763021 -0.552948 -0.325232
v 0.000000 0.441661 -0.871224
v 0.000000 0.947624 -0.233366
v 0.000000 0.172146 0.960696
vt 0.527612 0.590604
vt 0.619266 0.558969
vt 0.620496 0.648223
vt 0.507932 0.493025
vt 0.578067 0.505968
f 1/4 17/5 39/1
f 16/2 39/1 17/5
f 3/13 13/14 6/15
f 6/15 13/14 35/16
f 3/13 14/17 13/14
Wondering if glTexCoord2f() is all I need with the vt values?
Any help would be appreciated.