fixing BlenderToCal3D script to work with 2.4
Moderators: jesterKing, stiv
OK, I tortured my application for a while and got the following results:
Because of some reasons skeleton and animations are rotated 90 degrees and translated [0, -0.1, -2.4] <- this much from the mesh. Manually correcting this, i.e. creating rotational matrix and multiplying it by the quaternion of skeleton's rootbone and the rootbone of each keyframe, plus translating these rootbones by the aforementioned vector solves this problem.
However, it's not a very nice way to solve it and I can't get 100% accurate translation.
Can anybody guess, please, what's the cause of this problem? And how to solve it in a better way?
Thank you.
Because of some reasons skeleton and animations are rotated 90 degrees and translated [0, -0.1, -2.4] <- this much from the mesh. Manually correcting this, i.e. creating rotational matrix and multiplying it by the quaternion of skeleton's rootbone and the rootbone of each keyframe, plus translating these rootbones by the aforementioned vector solves this problem.
However, it's not a very nice way to solve it and I can't get 100% accurate translation.
Can anybody guess, please, what's the cause of this problem? And how to solve it in a better way?
Thank you.
I am using just your exporter, that you hosted at www.eternal-lands.com. That's why it's all so weird to me. In Blender everything looks just fine, but when I export it to Cal3D viewer, skeleton and animations turn out to be "shifted" away from the mesh as I said. Well, hopefully sometimes the secret will be revealed 

Try this one then:
http://purple.worldforge.org/cvs/forge/ ... cal3d_2.py
I had to modify it to get it to work for me(as you can see from reading previous posts). But it worked for those guys..might work for you.
http://purple.worldforge.org/cvs/forge/ ... cal3d_2.py
I had to modify it to get it to work for me(as you can see from reading previous posts). But it worked for those guys..might work for you.
-
- Posts: 0
- Joined: Thu Jan 01, 1970 1:00 am
- Location: Trieste
I made a modified version of the blender2cal3d exporter I found on the Purple World Forge project site blender2cal3d_2.py.
I made this new one because all the version of blender2cal3d (there are many beyond the original shipped with Blender: Soya 3D, Eternal Lands, World Forge) I tested with Blender 2.42a were broken.
This fix, made "Export for Soya" button to work correctly and flipping coordinate system orientation with Y looking upward, to export characters for engines like Soya 3D or jME.
To download the exporter please visit http://endercg.altervista.org/.
I made this new one because all the version of blender2cal3d (there are many beyond the original shipped with Blender: Soya 3D, Eternal Lands, World Forge) I tested with Blender 2.42a were broken.
This fix, made "Export for Soya" button to work correctly and flipping coordinate system orientation with Y looking upward, to export characters for engines like Soya 3D or jME.
To download the exporter please visit http://endercg.altervista.org/.
[url=http://endercomics.blogspot.com/:3uckwchk]SketchBook[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
-
- Posts: 0
- Joined: Thu Jan 01, 1970 1:00 am
- Location: Trieste
LetterRip, I will try.
Unfortunatelly I already tryed to get some contact but the first attempt to find them some of them on the WorldForge forum or to get some information in the IRC channel available from purple.worldforge.org failed.
Now I will try by email if any available in the source code.
Unfortunatelly I already tryed to get some contact but the first attempt to find them some of them on the WorldForge forum or to get some information in the IRC channel available from purple.worldforge.org failed.
Now I will try by email if any available in the source code.
[url=http://endercomics.blogspot.com/:3uckwchk]SketchBook[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
-
- Posts: 0
- Joined: Thu Jan 01, 1970 1:00 am
- Location: Trieste
I just sent an email to all the authors I found in the comments of blender2cal3d.py version, included with Blender, and the World Forge version, the one I used.
The first response, from Matthias Braun, one of the authors of the version included with Blender, was negative. He is busy with other things, as he said, and then he is not interested in working on it anymore.
Now I hope to recive any response from other authors.
Thanks
Marco Frisan, Italy
The first response, from Matthias Braun, one of the authors of the version included with Blender, was negative. He is busy with other things, as he said, and then he is not interested in working on it anymore.
Now I hope to recive any response from other authors.
Thanks
Marco Frisan, Italy
[url=http://endercomics.blogspot.com/:3uckwchk]SketchBook[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
-
- Posts: 0
- Joined: Thu Jan 01, 1970 1:00 am
- Location: Trieste
Jiba answered me, that the blender to Cal3D exporter "has been completely rewritten by Palle, and it is now included in the Cal3D SVN."
[url=http://endercomics.blogspot.com/:3uckwchk]SketchBook[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
-
- Posts: 0
- Joined: Thu Jan 01, 1970 1:00 am
- Location: Trieste
As explained me here, it seems that Palle's export script does not export binary Cal3D format.
This means I will go on with my work on the fixed blender2cal3d.py script.
Any help is wellcome.
This means I will go on with my work on the fixed blender2cal3d.py script.
Any help is wellcome.
[url=http://endercomics.blogspot.com/:3uckwchk]SketchBook[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
Still happy with your blender2cal3d.py script?
I've download it, and - well - I see the menu option in Blender! Good start huh?
I'd like to use Blender to create models for Cal3D, but if there's too many problems with it, maybe I should consider Milkshape instead. ??? Please advise.
Sorry I can't be much help on the export script
I just don't know enough.
I've download it, and - well - I see the menu option in Blender! Good start huh?

Sorry I can't be much help on the export script

-
- Posts: 0
- Joined: Thu Jan 01, 1970 1:00 am
- Location: Trieste
@DonJasper: please use the script that is here http://endercg.altervista.org/. It should work. I tested it succesfully with Blender 2.41, 2.42 and 2.42a, to export a file for the original Cal3D viewer and to jME kman's Cal3D importer.
As an advise, I can say that the format you use depends mainly on the 3D Engine you use for your games. If you engine supports MD5, der_toon's exporter is up to date, and more stable than blender2cal3d.py.
This fix anyway was to just making it working with the new BPY API and to correct the behavior of the "Export for Soya" button. Nothing more.
To have better support you should explain more preciselly which are your troubles using it. If any.
Thanks
As an advise, I can say that the format you use depends mainly on the 3D Engine you use for your games. If you engine supports MD5, der_toon's exporter is up to date, and more stable than blender2cal3d.py.
This fix anyway was to just making it working with the new BPY API and to correct the behavior of the "Export for Soya" button. Nothing more.
To have better support you should explain more preciselly which are your troubles using it. If any.
Thanks
[url=http://endercomics.blogspot.com/:3uckwchk]SketchBook[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]
[url=http://web.tiscali.it/marcocomx/:3uckwchk]Old Gallery[/url:3uckwchk]
[url=http://endercg.altervista.org/:3uckwchk]EnderCG[/url:3uckwchk]
[url=http://ilearncocoa.blogspot.com/:3uckwchk]iLearn Cocoa[/url:3uckwchk]