Page 1 of 1

Has something changed in OBJ loading code?

Posted: Tue May 15, 2007 4:30 am
by suvakas
I have a scene, that renders out fine in version 07 final, but gives me this error message in 8t3.

Code: Select all

Fatal Error: SceneLoaderExcep: CSModelLoaderExcep: ModelFormatDecoderExcep for model 'F:\indigo_08_test3\Exported_From_Max\Obj\Plane01.obj': syntax error: no integer following '/' (line 754) (In element 'mesh', around line 3, column 5)
No BIH tree used in 8t3. The model that gives the error has only 500 polys.

Is it a bug or a feature?
Thanks!

Posted: Tue May 15, 2007 4:36 am
by OnoSendai
It's a syntax error while parsing the .obj file.
Can you paste line 754 of the Plane01.obj file?

Posted: Tue May 15, 2007 5:37 am
by suvakas
Gotcha!
Ok. I'll add the line/file tomorrow when i get back to work.

Posted: Tue May 15, 2007 10:57 pm
by CTZn
500 polys for a plane, great :mrgreen:

Posted: Wed May 16, 2007 2:00 am
by suvakas
Here is the line 754:

Code: Select all

f 1//1 2//2 7//7
Seems ok to me :roll: Integers are there after every '/'
The OBJ is in attachment. (obj extension renamed to igs to bypass the upload format check)

Tested again and it really renders out fine in version 07.

Posted: Wed May 16, 2007 2:06 am
by OnoSendai
Ok, I think i'm assuming there's a number after every '/'.
Not sure if that is a valid assumption or not.

Posted: Thu May 17, 2007 10:46 pm
by suvakas
hmm..I've started to get this error quite offten with my previous scenes.