Thank you for clarification. Object has around 12000 polygons, so I understand it is going to consume a lot of memory, but honestly I did not expect that much
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
File Spectre = new File("/Users/daemontus/Downloads/pilsner.DAE");
URI uri = Spectre.toURI();
final SimpleResourceLocator resLocater = new SimpleResourceLocator(uri.resolve("./"));
ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_MODEL, resLocater);
ColladaImporter Col = new ColladaImporter().loadTextures(true);
ColladaStorage Stor = Col.load(uri.toString());
AnimatedGroup A3D = BonesImporter.importCollada(Stor, 4, new Quaternion());
BonesIO.saveGroup(A3D, new FileOutputStream("test.bones"));
Resources res = mActivity.getResources();
model = BonesIO.loadGroup(res.openRawResource(R.raw.test));
for (Animated3D o : model) {
o.build();
}
masterNinja.addToWorld(world);
Page created in 0.023 seconds with 13 queries.