• Welcome to Dark Bit Factory & Gravity.
 

[c++]Opengl - obj file to vertex3f converter?

Started by Sabour, December 15, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Sabour

i have an *.obj file,how i can convert it into array?i don't want to use obj loader as for challenge wise :D.I have tried using Stripe ( http://www.cs.sunysb.edu/~stripe/ ) to convert polygon into triangle strips,but the line are just to long to convert it by hand adding glvertex3f,quads,vertices, i tried to make macro on ultraedit to automated this but no luck so far lol,attached below the model of a foot lol,
foot.obj is original
foot.objf is striped (v = vertex?,vt=vertices?,q=quads?)
Stripe.exe
viewobj.exe

zawran

Not sure if its useful, but I did an .obj loader in blitzmax, which might provide some ideas for you to make your own converter.

http://www.dbfinteractive.com/forum/index.php/topic,3990.0.html

Rbz

That is one scary foot  :)

I've converted it to C using anim8or, now you can simply build your loader around it.
Challenge Trophies Won: