Main Menu
Menu

Show posts

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

Messages - Log

#1
Bones / Re: About Bone for android
August 18, 2014, 03:37:22 AM
Hi Sir,
You are right. The error is caused by the spaces in the path (Documents and Settings).
I got a new version of bones and it worked in android phone. Thanks for your help!! :D

One more question, if I want to use facial.group.bones(..\samples\data\facial\), I must use jmeOgre2Bones.bat to convert facial.mesh.xml to Bones format. Is it correct or not??




#2
Bones / Re: About Bones for android
August 15, 2014, 11:05:52 AM
Hi Sir,
I was following your command, but I got an error message.
C:\Documents and Settings\myname\desktop\Bones\scripts\ardorCollada2Bones.bat -out seymour.group.bones -rotation x180 -in Seymour.dae

-->echo off
-->Error:Could not find or load main class

Could you please tell me where can I got correct native Bones except for ninja? :)

Thanks!!
#3
Bones / Re: About Bone for android
August 15, 2014, 10:05:39 AM
Hi Sir,
You mean (.\Bones\samples\data\seymour\seymour.group.bones) is not native Bones format??
Could you please teach me how to convert seymour from collada format to native Bones format?

When I loaded Group, I found an error in BonesIO.java.

masterNinja = BonesIO.loadGroup(res.openRawResource(R.raw.seymour));

private static void readHeader(java.io.ObjectInputStream in, String requiredHeader) throws IOException {
      String header = in.readUTF();
      if (!requiredHeader.equals(header))
         throw new IOException("Invalid header: " + header);
      short version = in.readShort();
                   -->  if (VERSION != version)
         throw new IOException("Version mismatch. Current version: " + VERSION + ", stream version: " + version);
   }

I am not sure if the error is caused by wrong format(collada format not native Bones format ).
Thanks!!
#4
Bones / About Bone for android
August 15, 2014, 05:56:21 AM
Hi Sir,
I downloaded the Bones and Bones-Android-Ninja projects. It worked well in android phone. Now, I want to load other model like seymour (.\Bones\samples\data\seymour\seymour.group.bones) and replace the ninja.bones file with seymour.bones.In addition, I modified code in NinjaDemoActivity.java & CollisionTestActivity.java.

masterNinja = BonesIO.loadGroup(res.openRawResource(R.raw.seymour));
Texture texture = new Texture(res.openRawResource(R.raw.seymour_texture));

But it does not work.
is there anything else I miss? ???