OBJ+STL import export

Plugins linking to this thread: (hide)

STL/OBJ Import/ExportAuthor: Reinhard Claus
v 2.0 updated Nov 2017 with material support for OBJ using a simple user extensible renderer API (via callbacks) This addon was developed with the intention to speed up the export of OBJ files which is rather slow using the Softimage factory exporter with >1mil polygon meshes. It was extended to support OBJ import, as well as STL export and import (ASCII/binary) which is becoming more popular as an exchange format due to 3D printing.

Features support for OBJ vertex colors (ZBrush polypaint) and weights (ZBrush masking), remembers last used folder. Available on github.

Also includes a PLY importer in an alpha release (not 100% stable and does not support all possible PLY property elements).

local backup:AdditionalFileFormats.xsiaddon

Discussions concerning plugins for SOFTIMAGE©
User avatar
rray
Moderator
Posts: 1574
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany

OBJ+STL import export

Post by rray » 01 Jun 2017, 22:04

I've been needing a faster OBJ export lately, so I wrote this exporter&importer for OBJ, and thought I'd share that.

It supports zbrush polypaint and painted mask (note: zbrush can not import polypaint)

Also ex&imports STL binary and ascii, and imports PLY (latter experimental, unstable)

see https://github.com/specularity/softimage/releases

requires a restart
"as a maya discussion grows longer, the probability of a suggestion involving deleting the preferences approaches one"

softimage resources section (formerly known as rray.de/xsi) updated May 30 2018

User avatar
mc_axe
Posts: 398
Joined: 12 Mar 2013, 18:44

Re: OBJ+STL import export

Post by mc_axe » 02 Jun 2017, 20:43

Thanx rray nice addition :ympeace:

User avatar
ActionArt
Posts: 853
Joined: 25 Nov 2010, 18:23
Location: Canada

Re: OBJ+STL import export

Post by ActionArt » 05 Jun 2017, 18:10

Thanks rray! I'll give that a try. You're previous .stl importer has worked perfectly and very fast.

User avatar
rray
Moderator
Posts: 1574
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany

Re: OBJ+STL import export

Post by rray » 21 Nov 2017, 02:29

Version 2
- progressbar fixes
- obj format should be much faster now (uploaded a debug version of the dll by accident last time resulting in >50% speed drop)

https://github.com/specularity/softimage/releases
"as a maya discussion grows longer, the probability of a suggestion involving deleting the preferences approaches one"

softimage resources section (formerly known as rray.de/xsi) updated May 30 2018

User avatar
FXDude
Posts: 923
Joined: 19 Jun 2012, 21:59

Re: OBJ+STL import export

Post by FXDude » 21 Nov 2017, 20:00

That's pretty useful ! Both for fast OBJ in/out, and making STLs, or importing some that are around!

Wonder if Vitaly Bulgarov is roaming around, he'd be delighted to have his import export hotkeys use that instead! ( As well as SItoOctane if not already using that )

User avatar
mc_axe
Posts: 398
Joined: 12 Mar 2013, 18:44

Re: OBJ+STL import export

Post by mc_axe » 21 Nov 2017, 22:13

Hello rray thnx for the upgrade, the obj exporter is crazy fast: 10,5 mil trs mesh about 45s :-o
Default exporter after 2m30s still on 20% , at 4 mins progress bar disappear not responding etc. If i dont touch it it might do the job in 10 mins who knows. ~x(

Now tbh so far i never used your import is the first time i try it :
OBJ default importer on same mesh did 1m41s, addon 2m08s
Also i found an obj that crashes with it :-??

Still thanking you for stl import/export gr8 job

User avatar
rray
Moderator
Posts: 1574
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany

Re: OBJ+STL import export

Post by rray » 21 Nov 2017, 23:12

Glad to share that stuff! @FXDude I was wondering the exact same thing while watching the gnomon talk!

Then again he's using it for subd modeling mostly, which maybe isn't that heavy. From the talk I got that he uses the Octane standalone, and is swapping out object files. The plugin is really powerful, and he could add hair to his models now what a nice combination :D

@mc_axe the default exporters were developed before they added the fast import/export API, I wonder why they were never updated with that.

Is it my importer crashing btw or the default one? If it's mine I wonder could you pm me the file or any other file that crashes it?
"as a maya discussion grows longer, the probability of a suggestion involving deleting the preferences approaches one"

softimage resources section (formerly known as rray.de/xsi) updated May 30 2018

User avatar
rray
Moderator
Posts: 1574
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany

Re: OBJ+STL import export

Post by rray » 22 Nov 2017, 00:21

just fixed an 1 off error when reading obj which broke polypaint import. Might have caused the crash too. All links are updated
--------
mc_axe's crash was because of a bug in my importer. when the obj files contains a whole scene with some objects that have uvs, and some that don't then i crash. working on a fix
--------
should be fixed now
Last edited by rray on 24 Nov 2017, 02:09, edited 2 times in total.
"as a maya discussion grows longer, the probability of a suggestion involving deleting the preferences approaches one"

softimage resources section (formerly known as rray.de/xsi) updated May 30 2018