Project

General

Profile

« Previous | Next » 

Revision a4d59c0b

Added by Leszek Koltunski over 5 years ago

Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).

View differences:

src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.java
40 40
import org.distorted.library.type.Dynamic3D;
41 41
import org.distorted.library.type.Static1D;
42 42
import org.distorted.library.type.Static3D;
43
import org.distorted.library.type.Static4D;
44 43

  
45 44
import android.graphics.Bitmap;
46 45
import android.graphics.BitmapFactory;
......
75 74
      moveDyn.add(mMove);
76 75
      moveDyn.add(new Static3D(0,0,0));
77 76

  
78
      Static3D chromaCenter= new Static3D( 530, 200, 0   );
77
      Static3D chromaCenter= new Static3D( 530, 300, 0   );
79 78
      Static3D chromaRegion= new Static3D( 100, 100, 100 );
80
      Static3D alphaCenter = new Static3D( 230, 200, 0   );
79
      Static3D alphaCenter = new Static3D( 230, 300, 0   );
81 80
      Static3D alphaRegion = new Static3D( 100, 100, 100 );
82 81

  
83 82
      Dynamic1D chromaDyn = new Dynamic1D(3000,0.0f);
......
156 155
        }
157 156
      catch(Exception ex)
158 157
        {
159
        android.util.Log.e("Renderer", ex.getMessage() );
158
        android.util.Log.e("CatAndDog", ex.getMessage() );
160 159
        }
161 160
      }
162 161
}

Also available in: Unified diff