Sign in to follow this  
limpacp

Strange obj files.

Recommended Posts

Hi there. The problem: I've write my own OBJ file parser. Currently it can parse only the vertex data, normals and faces (no texture coordinates, shading groups etc...) and drawing it. For testing i've used some obj files downloaded from some sites. And they all working good. But when my friend gives me some obj files, that was exported from 3dmax8 my parser not drawing it correctly, it looks like all the vertexes has a random coordinates etc... I've spent number of nights to debug this parser and it works good. I mean, that all data sotred in obj file are readed and stored in my structures correctly. The problem is in obj file a think. So i don't understand why some obj files are working, others - no. May be i need to do some calculations before drawing? Or may be there is a different formats for obj files? Please help.

Share this post


Link to post
Share on other sites
I don't know much about OBJ files, but try making it really simple. So, draw a cube and export it and attempt to load it, this way you can check that the vertex coords you have loaded and the exact ones in the file, and also you can check the vertex coords from 3ds max and compare them to the ones that are in the exported OBJ file.

Edit:: Well, you said parser, so I assume that you're using the text version of OBJ files?

Share this post


Link to post
Share on other sites
Yes, i'm using text version.

...btw, after openning this obj by Blender and then exporting it back to obj it starts working normally. I think there is problem in 3DMax obj exporter, may be there some differences. Can't find any info about this issue.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
In my experience, the obj-fileformat is intensely broken from all other exporters than Maya. 3dsmax especially is crap.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this