hi, all
I use 2.76-beta-r1945. I create my scene with Dynamica(2.76-ForMaya2009_32bit), and the animation is fine. Then I backto frame 1 and export all to test0.bullet. I load test0.bullet in AppSerializeDemo, but I can't see any bodies in the render window.
So, could you give me some suggestions?
Thanks.
P.S.The test files are attached.
[2.76]Export t.bullet file,and loaded.But can't see anything
-
yaoyansi
- Posts: 17
- Joined: Thu Jan 01, 2009 2:14 pm
[2.76]Export t.bullet file,and loaded.But can't see anything
You do not have the required permissions to view the files attached to this post.
-
Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: [2.76]Export t.bullet file,and loaded.But can't see anything
Congrats, this is the first .bullet I received and it loads well. The SerializeDemo is very simple and it only loads a file called 'testFile.bullet' in the same directory as the executable. I tried it on Mac OSX and it looks like this:
We will provide a better .bullet viewer.
Thanks,
Erwin
We will provide a better .bullet viewer.
Thanks,
Erwin
You do not have the required permissions to view the files attached to this post.
-
yaoyansi
- Posts: 17
- Joined: Thu Jan 01, 2009 2:14 pm
Re: [2.76]Export t.bullet file,and loaded.But can't see anything
Oh, what a silly mistake I made! I should use absolute directory.
Thanks for your patience and time, Erwin.
P.S. Could you add an error message when the .bullet file is not read correctly?

I mean you could add a message in bFile, like this:
bFile::bFile(const char *filename, const char headerString[7])
...
{
....
FILE *fp = fopen(filename, "rb");
if (fp)
{
fseek(fp, 0L, SEEK_END);
mFileLen = ftell(fp);
fseek(fp, 0L, SEEK_SET);
mFileBuffer = (char*)malloc(mFileLen+1);
fread(mFileBuffer, mFileLen, 1, fp);
fclose(fp);
//
parseHeader();
}else{
printf("read file error:%s\n", filename);//<--------add a message here.
}
}
Thanks for your patience and time, Erwin.
P.S. Could you add an error message when the .bullet file is not read correctly?
I mean you could add a message in bFile, like this:
bFile::bFile(const char *filename, const char headerString[7])
...
{
....
FILE *fp = fopen(filename, "rb");
if (fp)
{
fseek(fp, 0L, SEEK_END);
mFileLen = ftell(fp);
fseek(fp, 0L, SEEK_SET);
mFileBuffer = (char*)malloc(mFileLen+1);
fread(mFileBuffer, mFileLen, 1, fp);
fclose(fp);
//
parseHeader();
}else{
printf("read file error:%s\n", filename);//<--------add a message here.
}
}