Project

General

Profile

« Previous | Next » 

Revision 32f4e2a7

Added by Leszek Koltunski over 3 years ago

Master Kilominx: mesh.

View differences:

src/main/java/org/distorted/objects/FactoryCubit.java
686 686
    float[] vertices0 = { -X1, Y2, 0, -Y1, X1, Y2, 0, Y1 };
687 687
    float[] bands0 = computeBands(0.04f,17,0.3f,0.2f,5);
688 688
    float[] vertices1 = { -X2, Y4, 0, -Y3, X2, Y4, 0, Y3 };
689
    float[] bands1 = computeBands(0.00f, 0,0.25f,0.5f,5);
689
    float[] bands1 = computeBands(0.00f, 0,0.25f,0.5f,2);
690 690

  
691 691
    meshes[0] = new MeshPolygon(vertices0, bands0, 1, 1);
692 692
    meshes[0].setEffectAssociation(0, 1,0);
......
694 694
    meshes[1].setEffectAssociation(0, 2,0);
695 695
    meshes[2] = meshes[0].copy(true);
696 696
    meshes[2].setEffectAssociation(0, 4,0);
697
    meshes[3] = new MeshPolygon(vertices1, bands1, 1, 1);
697
    meshes[3] = new MeshPolygon(vertices1, bands1, 0, 0);
698 698
    meshes[3].setEffectAssociation(0, 8,0);
699 699
    meshes[4] = meshes[3].copy(true);
700 700
    meshes[4].setEffectAssociation(0,16,0);
......
774 774
    meshes[2].setEffectAssociation(0, 4,0);
775 775
    meshes[3] = meshes[2].copy(true);
776 776
    meshes[3].setEffectAssociation(0, 8,0);
777
    meshes[4] = new MeshPolygon(vertices2, bands1, 1, 2);
777
    meshes[4] = new MeshPolygon(vertices2, bands1, 0, 0);
778 778
    meshes[4].setEffectAssociation(0,16,0);
779
    meshes[5] = new MeshPolygon(vertices3, bands1, 1, 2);
779
    meshes[5] = new MeshPolygon(vertices3, bands1, 0, 0);
780 780
    meshes[5].setEffectAssociation(0,32,0);
781 781

  
782 782
    return new MeshJoined(meshes);
src/main/java/org/distorted/objects/ObjectList.java
143 143
  KILO (
144 144
         new int[][] {
145 145
                       {3 , 18, R.raw.kilo3, R.drawable.ui_small_kilo3, R.drawable.ui_medium_kilo3, R.drawable.ui_big_kilo3, R.drawable.ui_huge_kilo3} ,
146
                       {5 , 33, R.raw.kilo3, R.drawable.ui_small_kilo5, R.drawable.ui_medium_kilo5, R.drawable.ui_big_kilo5, R.drawable.ui_huge_kilo5} ,
146
                       {5 , 33, R.raw.kilo5, R.drawable.ui_small_kilo5, R.drawable.ui_medium_kilo5, R.drawable.ui_big_kilo5, R.drawable.ui_huge_kilo5} ,
147 147
                     },
148 148
         TwistyKilominx.class,
149 149
         new MovementMinx(),
src/main/java/org/distorted/objects/TwistyObject.java
80 80
  private static final float MAX_SIZE_CHANGE = 1.35f;
81 81
  private static final float MIN_SIZE_CHANGE = 0.75f;
82 82

  
83
  private static final boolean mCreateFromDMesh = false;
83
  private static final boolean mCreateFromDMesh = true;
84 84

  
85 85
  private static final Static3D CENTER = new Static3D(0,0,0);
86 86
  private static final int POST_ROTATION_MILLISEC = 500;

Also available in: Unified diff