Samsung / GearVRf

The GearVR framework(GearVRf) is an Open Source VR rendering library for application development on VR-supported Android devices.
http://www.gearvrf.org
Apache License 2.0
407 stars 217 forks source link

How to load fbx with texture / add support for FBX version 7500 #1519

Open nitosan opened 7 years ago

nitosan commented 7 years ago

Here is sample fbx with texture embeded. https://github.com/mrdoob/three.js/files/1115931/mars_character_animation_textures.fbx.zip

With the following code, it only shows mesh without texture.

  GVRModelSceneObject trexObj = gvrContext.getAssetLoader().loadModel("mars.fbx");
  trexObj.getTransform().setPosition(0,-10,-14);
  gvrContext.getMainScene().addSceneObject(trexObj);
liaxim commented 7 years ago

Looks to me like assimp doesn't support this FBX version (7500). Our version supports 7300 and the latest assimp is at 7400. Assimp doesn't "see" the embedded textures so GVRf has no chance of loading them.

NolaDonato commented 7 years ago

I checked and we are using the latest version of assimp.

liaxim commented 7 years ago

It is possible I looked at the wrong repo. I guess it should be documented where our assimp comes from. I looked at gvrf_assimp in the internal gerrit.

Even the latest assimp doesn't support FBX version 7500 though.