Imported .obj Files are not shown

Community support forum for the ARToolKit v5.x for Android SDK.
grunkleStan
Posts: 9
Joined: Sun Aug 13, 2017 11:32 pm

Imported .obj Files are not shown

Postby grunkleStan » Wed Sep 06, 2017 5:47 am

I've created some Models with Autoesk Inventor and exported them into .obj Files. I tried to implement them into the ARSimpleNaticeCars Example Project.
The project builds finde, but the models aren't shown on the markers.

I try to give them some textures/colors (I tried use Blender and even the win10 3Dview Softare), the app simply crashes.
If I do the same using Inventor the app Loads but does't show any models on the markers.

Does someone have a converter to convert .ipt/.stl or whatever to a working format I can use to implement them into the example App?

Thanks in Advance

grunkleStan
Posts: 9
Joined: Sun Aug 13, 2017 11:32 pm

Re: Imported .obj Files are not shown

Postby grunkleStan » Wed Sep 13, 2017 11:30 pm

It seems that Inventor/Seketchup etc. are using different formats for their color/texture code. glmRead needs a very specific format to detect textures and colors in the model. There are two solutions for this, first one is to edit the newmtl/usemtl lines in the .obj/.mtl file by hand(script). Or change the way glmReadObj2 detects the textures directly.


Return to “ARToolKit for Android”

Who is online

Users browsing this forum: No registered users and 2 guests