Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import multiple objects in OBJ file

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
1329 Views, 2 Replies

Import multiple objects in OBJ file

Hi Experts,

 

I am trying to load an obj file containing multiple objects, looking like

 

o pillar_231
usemtl Wood
f 5789/7001 5790/7002 5791/7003 5792/7004
f 5793/7005 5794/7006 5795/7007 5796/7008
f 5797/7009 5798/7010 5799/7011 5800/7012
f 5801/7013 5802/7014 5803/7015 5804/7016
o pillar_232
usemtl Wood
f 5805/7017 5806/7018 5807/7019 5808/7020
f 5809/7021 5810/7022 5811/7023 5812/7024
f 5813/7025 5814/7026 5815/7027 5816/7028
f 5817/7029 5818/7030 5819/7031 5820/7032

 

However, after I load the scene and get the mesh, I can only find all the polygons but no grouping information. I tried GetPolygonGroup() and it only returns -1. So I am wondering if FBX preserves that information at all. If not, what is the alternative way to do this?  

 

Thanks in advance! 

 

Tags (1)
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Can you add group info to the obj files?

 

g group_0

 

for example.

 

 

Message 3 of 3
Anonymous
in reply to: Anonymous

Thank you Numerator! I have tried using "g" and instead of one entrie mesh now I can get a mesh for each of the group. GetGeometryCount() returns the number. 

 

Thank you again!

 

Yi

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report