Project

General

Profile

« Previous | Next » 

Revision 9e7b6dbd

Added by Leszek Koltunski over 5 years ago

Redefine the Vertex Region from (x,y,r,unused) to (x,y,z,r). This takes into account the 'Z', which makes it possible to warp only one side of a 3D Mesh like Sphere.

Also corresponding changes in applications.

View differences:

src/main/java/org/distorted/examples/girl/GirlRenderer.java
71 71
      Static3D pRight= new Static3D(247, 264, 0);
72 72
      
73 73
      // Size
74
      Static4D sinkRegion = new Static4D(0,0,60,60);
74
      Static4D sinkRegion = new Static4D(0,0,0,60);
75 75
      
76 76
      s0 = new Static1D(1.0f);
77 77
      
......
79 79
      diSink.add(s0);
80 80
      
81 81
      // Upper Movement
82
      Static4D Region = new Static4D(0,0,45,45);
82
      Static4D Region = new Static4D(0,0,0,45);
83 83
      
84 84
      Dynamic3D diL = new Dynamic3D(1000,0.0f);
85 85
      Dynamic3D diR = new Dynamic3D(1000,0.0f);
......
101 101
      
102 102
      // Lower Movement
103 103
      Static3D pHips = new Static3D(216,505,0);
104
      Static4D HipsRegion = new Static4D(0,0,120,120);
104
      Static4D HipsRegion = new Static4D(0,0,0,120);
105 105
      Dynamic1D diHips = new Dynamic1D(1500,0.0f);
106 106
      
107 107
      dBegin = new Static1D(0);
......
228 228
       }
229 229
     catch(Exception ex)
230 230
       {
231
       android.util.Log.e("Renderer", ex.getMessage() );
231
       android.util.Log.e("Girl", ex.getMessage() );
232 232
       }
233 233
     }
234 234
}

Also available in: Unified diff