Author Topic: Load Obj and mtl / Raw  (Read 2092 times)

Offline Bin

  • byte
  • *
  • Posts: 8
    • View Profile
Load Obj and mtl / Raw
« on: March 03, 2013, 11:03:25 pm »
Hy,

i have put my Obj and mtl Files in the Raw Folder.
How can i load that files?

Thanks
Sample would be great

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Load Obj and mtl / Raw
« Reply #1 on: March 03, 2013, 11:48:22 pm »
Here you are...
Code: [Select]
Resources res = getResources();
Object3D[] objs = Loader.loadOBJ(res.openRawResource(R.raw.object), res.openRawResource(R.raw.material), 1);