Cant Open OBJ file

Feel free to ask any question here
Post Reply
YAAYEET
Posts: 4
Joined: Sun Apr 07, 2019 1:08 am

Cant Open OBJ file

Post 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?
Last edited by YAAYEET on Fri Apr 12, 2019 4:40 am, edited 1 time in total.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Can Open OBJ file

Post by daniel »

Maybe because the file IS malformed? :p

Can you share it with us? (admin [at] cloudcompare.org)
Daniel, CloudCompare admin
YAAYEET
Posts: 4
Joined: Sun Apr 07, 2019 1:08 am

Re: Cant Open OBJ file

Post 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
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Cant Open OBJ file

Post 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.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Cant Open OBJ file

Post 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 :|
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Cant Open OBJ file

Post 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!
Daniel, CloudCompare admin
YAAYEET
Posts: 4
Joined: Sun Apr 07, 2019 1:08 am

Re: Cant Open OBJ file

Post by YAAYEET »

ok, thanks Daniel!
Post Reply