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/effects3d/Effects3DRenderer.java
253 253
      mRegionPoint.set(mFactorObj*act.getRegionX(),-mFactorObj*act.getRegionY(),0);
254 254
      mFactorReg = 2*mFactorObj*act.getRegionR()/regionSize;
255 255
      mRegionScalePoint.set(mFactorReg,mFactorReg,mFactorReg);
256
      mMoveObject.set( (width-mFactorObj*mObjWidth)/2 , (height-mFactorObj*mObjHeight)/2 , 0 );
256
      mMoveObject.set( (width-mFactorObj*mObjWidth)/2 , (height-mFactorObj*mObjHeight)/2 , -mFactorObj*mObjDepth );
257 257
      mRotateCen.set(width/2,height/2, 0);
258 258
      mScaleObject.set(mFactorObj,mFactorObj,mFactorObj);
259 259
      mMoveCenter.set( (width -factorCen*centerSize-mFactorObj*mObjWidth )/2 ,

Also available in: Unified diff