Skip to main content
5-Regular Member
June 21, 2018
Question

Importing 3D models from Blender

  • June 21, 2018
  • 4 replies
  • 11709 views

Hello. I'm working on some 3D rendering, using Blender, and I am totally a newbie for 3D rendering.

 

Unfortunately, when I export an .obj file into Vufoira Studio, the textures and shaders are excluded.

 

I also imported the .mtl file, but nothing changes.

 

Anyone have suggestions about resolving this kind of issue?

 

Blender is kinda cool, so I want to find a way to use both Blender and Vuforia.

 

Thanks.

 

 

4 replies

5-Regular Member
June 21, 2018

@BryanPark I believe .mtl is not supported CAD format with Studio however .obj should work. Could you please confirm if while importing are you using CAD optimization option or not.

 

-Durgesh

15-Moonstone
June 21, 2018

 

@BryanPark,

 Export from blend into .FBX  or collada format and import file into Vuforia Studio.

 this is my results.

 

 Bye 

Giuseppe

 

18-Opal
June 21, 2018

I've been able to import Blender models with textures successfully. When you load the model, make sure you load the OBJ, MTL, and any texture images all at the same time. When you load an OBJ file, it gets converted to PVZ. If you wait and load the MTL file as a separate operation, it's too late, it won't get incorporated into the PVZ.

 

--Clay

10-Marble
June 21, 2018

Hi,

please see the following Help Topic regarding supported formats:

https://support.ptc.com/help/vuforia/studio/en/#page/Studio_Help_Center%2FSupportedCADFileFormats.html

 

You'll see at the end of the list that in order for "groups" of files to be imported properly, they need to be zipped up. In your case, that means zipping the .obj, .mtl and any associated files and then adding this as the model source in Studio. (The zip file name should match the obj file name, ex. myfile.obj --> myfile.zip)

Thanks

18-Opal
June 21, 2018

No, actually it works just fine to do them as separate files, as long as you do them all at the same time. I just did a test with an OBJ file, and MTL file, and two texture bitmaps, loading all four files at once through the Resources + control (no ZIP file), and Studio handled it all correctly and gave me a nicely textured object.

10-Marble
June 21, 2018

In most cases, that would just be down to luck. If the conversion were to kick in before any of the files had completed uploading (say, a large texture), then it would fail.

ZIP will ensure consistent success.

BryanPark5-Regular MemberAuthor
5-Regular Member
June 22, 2018

As a result, all things mentioned above doesn't work.

Is the Cycles Render engine in Blender relevant to this matter?

(Should I switch to the Blender Render engine, which is now discontinued?)

10-Marble
June 22, 2018

Studio and View both used their own renderer to draw the 3D graphics, therefore the rendering engine that created the original content does not affect its result in Studio or View.

There are additionally some limitations around the conversion and import (namely use of shaders, and possible loss of texture during optimization) that could explain what you are seeing.

15-Moonstone
June 22, 2018

can i ask you the model 3d and textures, i want try to create a pvz for you  for vuforia studio.

 

Thnx

Giuseppe

 

I used many model with textures into vuforia without problem.