JockerGG
JockerGG

Reputation: 99

Android Load a FBX or Collada(.dae) into Android Studio Activity

I need load a 3d model with animation in a project, but I don't find how load those models, only .obj, but they obj models not have animation. The app isn't a game, is a normal app but in one section have the animated avatar, and I need change textures like the hair color, color of skin, etc.

Upvotes: 3

Views: 2038

Answers (1)

Sung
Sung

Reputation: 1066

Android SDK including NDK doesn't even load OBJ files.

  1. You have to make your own loader for the file format you want to use using Java or CPP

or

  1. You can use a third party library like Open Asset Import Library (http://assimp.sourceforge.net/)

You can change dynamic variables like color of skin or hair by passing vertices as color vertices corresponding to the position vertices, and then you can process the data in the shader code.

Upvotes: 1

Related Questions