Isotropix Forums

OBJ import with groups?

Clarisse Scripting related topics

OBJ import with groups?

Unread postby pschloter » Tue Oct 06, 2020 2:37 am

Is there a way to import OBJs with groups ie not flattened?
It would be great to not loose the model hierarchy upon import.
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: OBJ import with groups?

Unread postby dboude » Tue Oct 06, 2020 8:29 am

Hi,

No that's only possible in alembic, usd and lwo format.

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: OBJ import with groups?

Unread postby pschloter » Tue Oct 06, 2020 6:06 pm

Are you thinking of adding that functionality for OBJ? It would be very handy...
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: OBJ import with groups?

Unread postby sam » Tue Oct 06, 2020 7:25 pm

No, we favor support for Alembic and more specifically USD. OBJ is an ancient format from the last century.
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1649
Joined: Fri Jan 25, 2013 11:33 pm

Re: OBJ import with groups?

Unread postby pschloter » Tue Oct 06, 2020 11:19 pm

Ok ok... just very widely supported. Not sure why it's a big deal. Surprising that it doesn't work. All the other software loads the groups.
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: OBJ import with groups?

Unread postby sam » Wed Oct 07, 2020 6:20 am

I probably explained this somewhere in the forums a long time ago. In a nutshell:
Unlike other packages, Clarisse references the original OBJ file. Creating multiple nodes based on the ascii OBJ file is very inefficient since to load each group independently, each node would have to load the entire file, and seek where the group starts. Since we don't want to load the file multiple times...

Yet again, Clarisse supports LWO files with layers. That one is not inefficient because it's very easy to seek and skip to the right layer without loading the entire file since the file format is in binary.
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1649
Joined: Fri Jan 25, 2013 11:33 pm

Re: OBJ import with groups?

Unread postby pschloter » Wed Oct 07, 2020 6:54 pm

Thanks for the background. The issue is that there is several software inputs that do not generate the other formats (only OBJ) so need to somehow convert each file with another package and break apart the components into separate OBJ files or another format somehow. that gets quite time consuming with a lot of files or components.

Just food for thought: what if there was a way to break apart the OBJ into separate files upon import automatically? (import flat or import break-apart)? it would be fully ok if there is extra files locally.
pschloter
 
Posts: 20
Joined: Sat Sep 26, 2020 3:53 pm

Re: OBJ import with groups?

Unread postby sam » Wed Oct 07, 2020 7:05 pm

If you want to do something here is a starting base:
viewtopic.php?f=21&t=5307&p=19071

Obviously the best would be to create a standalone C++ converter that would convert an OBJ to USD/Alembic. Not really that complicated to do if you know these libraries. Have you googled it? It probably exists.

You could use Blender I guess to import as OBJ and export as Alembic/USD.
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1649
Joined: Fri Jan 25, 2013 11:33 pm


Return to Scripting