SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

OBJ Export not working as expected (by Roland Frank)
Hello.

I am having problems with the OBJ Export.

- modeled small assembly in Solvespace ("Dochtbrenner")
- exported to OBJ
- imported in Kerkythea 2008 Echo for rendering
(unchecked in settings "group by material")
(http://www.kerkythea.net/cms/)
- received ONE COMPLETE MODEL in Kerkythea (see JPG)

- modeled same assembly in ViaCAD Pro V8.
(http://www.punchcad.com/p-20-punch-viacad-pro-v8.aspx)
- Export Options for OBJ see JPG in attached File
(sorry for German - but i think you can understand)
- imported in Kerkythea 2008 Echo for rendering
(unchecked in settings "group by material")
- received Model with different faces (see JPG)
- with this result i am able to
> group as i want to
> attach material to each seperate Face

Hopefully i attached all Files needed for examination.
I am no expert but it seems to me that ViaCAD exports
face by face to obj and Solvespace seems to export
one whole Object.

Thanks for looking into this matter.

Roland
Tue Oct 8 2013, 17:47:09, download attachment Dochtbrenner.zip
(no subject) (by Jonathan Westhues)
I believe that it's as you say. SolveSpace doesn't use the g command in its exported OBJ files, so the triangle faces are all just in one big group.

It would certainly be nicer if those were structured by surface and by imported part, as you say. That information is present in the model; it would just be necessary to modify SolveSpace::ExportMeshTo(), around line 576 of export.cpp, to use it.
Wed Oct 9 2013, 02:06:42
Found a possible way ... (by Roland Frank)
After some Tests i finally found an acceptable Workflow (for now).
> Top Level Assembly contains only positioned (constrained)
Parts
> Make first Part active in Browser and export to OBJ
> suppress first part
> make second part active
> export to OBJ
> after exporting all Parts to OBJ open Kerkythea
> use "File > Open" command to import first Part
> use "File > Merge" command to import next Part
> import via "File > Merge" all other parts
> set up rendering environement and here we go ...

Roland
Mon Oct 21 2013, 07:00:01
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2018 SolveSpace contributors. Most recent update Nov 22 2018.