Changeset 14208
- Timestamp:
- 12/20/12 14:21:47 (12 years ago)
- Location:
- issm/trunk-jpl/src/android/ISSM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/android/ISSM/res/layout/activity_issm.xml
r14110 r14208 12 12 android:layout_alignParentBottom="true" 13 13 android:layout_alignParentLeft="true" 14 android:progress="90" 15 android:max="490" 14 16 android:layout_marginBottom="41dp" /> 15 17 … … 21 23 android:layout_centerHorizontal="true" 22 24 android:layout_marginBottom="15dp" 23 android:text=" alpha value = 0" />25 android:text="Friction Scaling: 100%" /> 24 26 25 27 <FrameLayout -
issm/trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java
r14200 r14208 37 37 private ColorMap colorMap; 38 38 private int alpha; 39 39 private final int MINIMUM = 0; 40 private final int OFFSET = 10; 40 41 @Override 41 42 //------------------------------------------------------------------------------------------------ … … 50 51 } 51 52 } 53 alpha = 90 + OFFSET; 52 54 setContentView(R.layout.activity_issm); 53 55 this.bar = (SeekBar) findViewById(R.id.seekBar); … … 60 62 public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) 61 63 { 62 alpha = progress; 64 65 alpha = progress + OFFSET; 66 txtValue.setText("Friction Scaling: " + alpha + "%"); 63 67 } 64 68 -
issm/trunk-jpl/src/android/ISSM/src/com/example/issm/MyGLRenderer.java
r14109 r14208 235 235 mProjectionMatrix = new float[triangleVert.length][16]; 236 236 for (int i = 0; i < triangleVert.length; i++) 237 Matrix.frustumM(mProjectionMatrix[i], 0, -ratio*0. 5f, ratio*1.0f, 0.0f, 1.0f, 1.0f, 14f);237 Matrix.frustumM(mProjectionMatrix[i], 0, -ratio*0.7f, ratio*1.0f, 0.0f, 1.0f, 1.0f, 14f); 238 238 //Matrix.frustumM(m, offset, left, right, bottom, top, near, far) 239 239 }
Note:
See TracChangeset
for help on using the changeset viewer.