Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 689
JockerGG Avatar asked Jan 24 '26 15:01

JockerGG


1 Answers

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.

like image 102
Sung Avatar answered Jan 27 '26 04:01

Sung



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!