Project

General

Profile

« Previous | Next » 

Revision f86c9fb5

Added by Leszek Koltunski over 5 years ago

Make the Effects3D app a bit more user-friendly.

View differences:

src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java
47 47

  
48 48
class Effects3DRenderer implements GLSurfaceView.Renderer
49 49
{
50
    private static final float FOV = 70.0f;
50
    private static final float FOV = 30.0f;
51 51
    private static final float NEAR = 0.1f;
52 52

  
53 53
    private GLSurfaceView mView;
......
237 237

  
238 238
      if( width*mObjHeight > height*mObjWidth ) // screen is more 'horizontal' than the Object
239 239
        {
240
        mFactorObj = (0.80f*height)/mObjHeight;
240
        mFactorObj = (0.70f*height)/mObjHeight;
241 241
        factorCen  = (0.08f*height)/centerSize;
242 242
        }
243 243
      else
244 244
        {
245
        mFactorObj = (0.80f*width)/mObjWidth;
245
        mFactorObj = (0.70f*width)/mObjWidth;
246 246
        factorCen  = (0.08f*width)/centerSize;
247 247
        }
248 248

  

Also available in: Unified diff