Cal3d loader wiki and source code!

I finally managed to setup a wiki and the early access source of cal3d loader!

Everything is in a very early stage so any help and comments are welcome!

You can find it at http://gamedev.kproject.gr

Thanks a lot! :slight_smile:





we will be using surely your md5 loader…as we really like smal sizes of md5anim files, but one never knows, if a format is gonna cause problems sooner or later: much safer if there are two formats available of this kind.



Again, thanks a million.



bone and weights formats for the engine is more important than it can seem… :slight_smile:


btw, seems link is down :wink:


Have you managed to connect to the site? everything seems fine for me!

now yep, but as I was telling you, we're gonna use the md5 plugin you posted the other day :slight_smile:






whatever gets your job done!

I can't wait to test it. Hopefully I will find some time tomorrow.

Hi,



the link is still broken for me. :frowning:

Tried at home and at work.



I got it from another person and it's running so far. ^^

But i did only have the goblin example from webstart.

I tried to create the xml file for cally but i miss so far.



I'm not sure about the right format of it.

Is there a dtd? Or documentation?

The file format is documented in the wiki. Try again to see if you can access the site and if you can't pm me so that i email you the details.

For the Cally model assuming you have the cal3d data in a directory data/cal3d/cally the xml file will look like

<model>
  <skeleton>data/cal3d/cally/cally.csf</skeleton>
  <mesh>data/cal3d/cally/cally_chest.cmf</mesh>
  <skin></skin>
  <material>data/cal3d/cally/cally_chest.crf</material>
  <meshes>
      <submesh>
          <mesh>data/cal3d/cally/cally_calf_left.cmf</mesh>
          <skin></skin>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_calf_right.cmf</mesh>
          <skin></skin>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_foot_left.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_foot_right.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_hand_left.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_hand_right.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_head.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_lowerarm_left.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_lowerarm_right.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_neck.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_pelvis.cmf</mesh>
          <material>data/cal3d/cally/cally_pelvis.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_ponytail.cmf</mesh>
          <material>data/cal3d/cally/cally_ponytail.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_thigh_left.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_thigh_right.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_upperarm_left.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
      <submesh>
          <mesh>data/cal3d/cally/cally_upperarm_right.cmf</mesh>
          <material>data/cal3d/cally/cally_skin.crf</material>
          <skin></skin>
          <visible>true</visible>
      </submesh>
  </meshes>
  <animations>
    <anim>
      <name>walk</name>
      <anim>data/cal3d/cally/cally_walk.caf</anim>
    </anim>
    <anim>
      <name>strut</name>
      <anim>data/cal3d/cally/cally_strut.caf</anim>
    </anim>
    <anim>
      <name>kick</name>
      <anim>data/cal3d/cally/cally_tornado_kick.caf</anim>
    </anim>
    <anim>
      <name>jog</name>
      <anim>data/cal3d/cally/cally_jog.caf</anim>
    </anim>
    <anim>
      <name>idle</name>
      <anim>data/cal3d/cally/cally_idle.caf</anim>
    </anim>
  </animations>
</model>



Material states dont work in the current version of the loader so the model will be uncolored and untextured.

The link http://gamedev.kproject.gr/ still doesn't work here either.

can you access http://kproject.gr? what is the problem timeout? what is the output of nslookup? I registered the domain last friday and had some connection problems from home with timeouts but now everything is ok for me.

@kman Link is working now. ^^



Thanks for the cally xml.



For the cally materials i have .xrf files. I assume these are binary files and .crf are xml!?

yes, a time out connecting to the server (it doesn't accept any connection on port 80). Dns resolves to 64.34.182.1. Ping also does not work.



The trace route stops at OC48-POS6-0.wdc-sbsp2-dis-1.serverbeach.com

apparenrtly there must be a problem with my hosting company firewall. I even now get some timeouts and when i restart my dsl router everything works fine.

madlion xrf files are xml and crf binary. The loader supports only binary files so you must use the cal3d converter utility to make them binary, or since they are not used correctly you can remove the material lines. Also note that the cally model is'nt low poly. if you want to test some cal3d models and animations you can use the models from Planeshift or eternal-lands that work great



llama my traceroute when the site is ok stops at the same ip.

Would you consider making your loader usable as a converter to simplify use of the formats inside of programs without editing the programs code?

I was able to finally download the sources for my friend, thanks ! :slight_smile: [ Anyway as we were speaking, the md5 loader you made for now gets the job done very well! :slight_smile: ]

Thanks snaga. The md5 loader is not my code. It was developed by chaosdeathfish and i just made it compatible with the current cvs version of jme,

but i am i the process of finishing a new polished version of both cal3d and md5.

woulr you be adding support for animation subseting like the other loader  I use that alot in my code to fuse pieces of common animations in my sequencing.

i can't understand what you mean? do you mean supporting the current cal3d loader animation features in md5? if this is what you mean, yes i;m trying to.

actually the other way arround what subsetting allows me to do is define pieces of different animations to make new sequences all with a few lines of code I.m doing fight animation and attempt to make new combos by defining and fusing subdets.



I also rig my weapons and export to md5 to allow for easy placement



eventually I will be using your stuff and kind of hope the transition will be smooth do plan on docs and tuts, or will be willing to answer tonnes ofannoying questions "if" that time comes.