Obj import not visible

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
dbuursma
Posts: 8
Joined: Sat Aug 27, 2016 8:10 am

Obj import not visible

Post by dbuursma »

Hello,

My imported Obj file is not visible in FreeCad. There are mtl files in the same folder, but somehow no details..

Can someone help?

Thanks,\

Douwe

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6704 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Obj import not visible

Post by NormandC »

Hello Douwe,
dbuursma wrote:Can someone help?
Can you provide a link to download the OBJ file, or join it to this topic? Under the "Save draft" "Preview "Submit" buttons, there is an "Attachments" tab that allows you to upload images and files.
dbuursma
Posts: 8
Joined: Sat Aug 27, 2016 8:10 am

Re: Obj import not visible

Post by dbuursma »

Sorry, file is too large, 9Mb. I have made it available at: http://www.verstralershop.nl/media/free ... j_2011.zip
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Obj import not visible

Post by NormandC »

I confirm that the file can be opened in FreeCAD, but that nothing shows in the 3D view. There's no message in the Python console nor the report view. The Data tab reports no point, edge or face. :?

It opens without trouble in Blender...

I hope a FreeCAD developer can tell us what's wrong.

BTW it's an impressive model!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Obj import not visible

Post by NormandC »

Here's a workaround:
  1. Install and launch Blender
  2. Blender creates a new document with a cube already selected. Delete it with the Delete key on your keyboard, CLick on "Delete" in the contextual menu
  3. Go to File --> Import --> Wavefront (.obj)
  4. Browse to your OBJ file, select it, click on "Import OBJ"
  5. Go to File --> Export --> Wavefront (.obj)
  6. In the left panel, under "Export OBJ", at the very bottom, choose the following orientation for the model:
    Forward: -Y forward
    Up: Z up
  7. Click on the "Export OBJ" button.
This will create a new OBJ file that will open correctly in FreeCAD. Beware, it will take a long time to load, and create multiple mesh objects.
dbuursma
Posts: 8
Joined: Sat Aug 27, 2016 8:10 am

Re: Obj import not visible

Post by dbuursma »

Thanks, worked!
wmayer
Founder
Posts: 20074
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Obj import not visible

Post by wmayer »

It fails to load because the point indices of the faces are all negative but FreeCAD doesn't support this way at the moment.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Obj import not visible

Post by NormandC »

Thanks Werner.
wmayer
Founder
Posts: 20074
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Obj import not visible

Post by wmayer »

keithsloan52
Veteran
Posts: 2710
Joined: Mon Feb 27, 2012 5:31 pm

Re: Obj import not visible

Post by keithsloan52 »

Have the same issue with a couple of Obj files.

Code: Select all

OS: Ubuntu 18.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
humanoid_tri.obj
(3.24 KiB) Downloaded 37 times
humanoid_quad.obj
(2.89 KiB) Downloaded 36 times
Files load into Blender & MeshLab okay
Post Reply