Page 1 of 1
Cant Open OBJ file
Posted: Sun Apr 07, 2019 1:13 am
by YAAYEET
Hello,
I'm a new user and every time I try to open an obj file I get an error message that says "malformed file" and that the file cant be opened. Any thoughts as to why this is happening?
Re: Can Open OBJ file
Posted: Sun Apr 07, 2019 8:09 am
by daniel
Maybe because the file IS malformed? :p
Can you share it with us? (admin [at] cloudcompare.org)
Re: Cant Open OBJ file
Posted: Fri Apr 12, 2019 4:46 am
by YAAYEET
Sure, but I dont think its malformed, I can open it just fine in other programs like cinema4d and rhino 6.
https://www.dropbox.com/s/6d10x2i1pfxsn ... b.obj?dl=0
Re: Cant Open OBJ file
Posted: Fri Apr 12, 2019 8:47 am
by daniel
Oh, CC is actually pretty clear about the error ;)
Code: Select all
[10:38:16] [OBJ::Load::MTL parser] Unknown command 'Tf' at line 6
The 'Tf' characteristic in the material file is unknown to CC.
This actually corresponds to 'Transmission filter'. I'll change CC so that it 'ignores' this... but we won't be able to handle it.
Re: Cant Open OBJ file
Posted: Fri Apr 12, 2019 8:59 am
by daniel
Oh no wait, this file has other 'particularities'! Like instead of using one line per face, you have escape characters at the end?! That's insane... Developers doing that really don't want others to load their files :|
Re: Cant Open OBJ file
Posted: Fri Apr 12, 2019 8:02 pm
by daniel
Okay I fixed that as well. You can download the latest 2.11 version.
However, for your file, you'll have to disable the material (shortcut 'm' when the mesh is selected) and maybe re-compute the normals as the ones in the file are also weird!
Re: Cant Open OBJ file
Posted: Fri Apr 12, 2019 8:33 pm
by YAAYEET
ok, thanks Daniel!