www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Bin on March 03, 2013, 11:03:25 pm

Title: Load Obj and mtl / Raw
Post by: Bin 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
Title: Re: Load Obj and mtl / Raw
Post by: Thomas. 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);