Package starlight.taliis.core.binary.m2.attachment

Examples of starlight.taliis.core.binary.m2.attachment.attachmentblock1


   
    vertex=new Vertex[1];
    vertex[0]=new Vertex();

    transparency=new AnimationBlock[1];
    transparency[0]=new AnimationBlock();
   
    texdefs=new TexDef[1];
    texdefs[0]=new TexDef();
    texdefs[0].setType(0x0);
   
View Full Code Here


    transparency=new AnimationBlock[header.getnTransparency()];
    buff.position(0);
    int ofsTrans =header.getofsTransparency();
    buff.position(ofsTrans);
    for(int i=0;i<header.getnTransparency();i++){
      transparency[i]=new AnimationBlock(buff);
    }
    for(int i=0;i<header.getnTransparency();i++){
      getTransparency(i);
    }
   
View Full Code Here

      ro=tmp.position();
      if(transparency!=null){
        header.setnTransparency(transparency.length);
        header.setofsTransparency(ro);
        for(int i=0;i<transparency.length;i++){
          transparency[i]=new AnimationBlock();
          transparency[i].setnTimeSubstructures(1);
          transparency[i].setofsTimeSubstructures(ro+(i*AnimSubStructure.end)+AnimationBlock.end*transparency.length+(16-(AnimationBlock.end*transparency.length)%16));
          transparency[i].setnKeySubstructures(1);
          transparency[i].setofsKeySubstructures(ro+(i*AnimSubStructure.end)+(transparency.length*AnimSubStructure.end)+(16-(transparency.length*AnimSubStructure.end)%16)+AnimationBlock.end*transparency.length+(16-(AnimationBlock.end*transparency.length)%16));
          transparency[i].render();
 
View Full Code Here

  public particleemitters(ByteBuffer databuffer){
    super(databuffer);
    buff.limit( end );
   
    buff.position(ParticleColor);
    particlecolor=new FakeAnimationBlock(buff);
    buff.position(ParticleOpacity);
    particleopacity=new FakeAnimationBlock(buff);
    buff.position(ParticleSizes);
    particlesizes=new FakeAnimationBlock(buff);
    buff.position(0);
    databuffer.position( databuffer.position() + buff.limit());
  }
View Full Code Here

 
 
  public m2(){
    created=true;
   
    header=new Header();
    modelname=new ZeroTerminatedString("Test");
    anims=new AnimSequ[1];
    anims[0]=new AnimSequ();
    bone=new Bones[1];
    bone[0]=new Bones();
View Full Code Here

    int ofsTextures;
    int nVertices, ofsVertices,nBones,ofsBones;
    int texlength[];
    int texoffs[];
   
    header = new Header(buff);
   
   
    // check magic
    if(header.getMagic().compareTo("MD20") != 0) {
      throw new InvalidClassException("Invalid m2 Data.");
View Full Code Here

    //if(created){
      //running offset
      int ro=0;
      //Headersize+0x10Bytes for Name+AnimSequ+Bone+0x10 for bonelookup
      ByteBuffer tmp=doRebirth(calcSize());
      header=new Header();
      tmp.put(header.buff);
      fillLine(tmp);
      ro=tmp.position();
      header.setofsName(ro);
      header.setlName(modelname.toString().length()+1);//zeroterminated
View Full Code Here

   
    //attachment
    attachments=new attachmentblock1[header.getnAttachment()];
    buff.position(header.getofsAttachment());
    for(int i=0;i<header.getnAttachment();i++){
      attachments[i]=new attachmentblock1(buff);
    }
    System.out.println("Loaded Attachmentblock 1 \t");

  }
View Full Code Here

 
 
  public void setnAttachments(int val){
    attachments=new attachmentblock1[val];
    for(int i=0;i<val;i++){
      attachments[i]=new attachmentblock1();
    }
  }
View Full Code Here

    translationtar=new float[header.getnCameras()][];
    buff.position(0);
    buff.position(header.getofsCameras());
    for(int i=0;i<header.getnCameras();i++)
    {
      camerablock[i]=new Camerablock(buff);
      /*translationtar[i]=new float[camerablock[i].TransTar.getnKeySubstructures()];
      translationpos[i]=new float[camerablock[i].TransPos.getnKeySubstructures()];
      buff.position(0);
      buff.position(camerablock[i].TransPos.getofsKeySubstructures()+4);
      buff.position(buff.getInt());
View Full Code Here

TOP

Related Classes of starlight.taliis.core.binary.m2.attachment.attachmentblock1

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.