Project

General

Profile

« Previous | Next » 

Revision 334c13fa

Added by Leszek Koltunski over 7 years ago

Make the effect Center be always 3D.

View differences:

src/main/java/org/distorted/examples/check/CheckRenderer.java
137 137
      // Even if adding some of the Effects fails, the App will still start - you just won't see
138 138
      // the effects that failed to add.
139 139

  
140
      Dynamic2D dSwirl = new Dynamic2D(2000,0.0f);
141
      dSwirl.add(new Static2D(        0, bmpHeight/2));
142
      dSwirl.add(new Static2D( bmpWidth, bmpHeight/2));
140
      Dynamic3D dSwirl = new Dynamic3D(2000,0.0f);
141
      dSwirl.add(new Static3D(        0, bmpHeight/2, 0));
142
      dSwirl.add(new Static3D( bmpWidth, bmpHeight/2, 0));
143 143

  
144 144
      long swirlEffectID = mSuccess.swirl( new Static1D(30), dSwirl, new Static4D( 0,0,40,40) );
145 145

  
......
152 152
      dDeform.add(new Static3D( 0,         0,0));
153 153
      dDeform.add(new Static3D( 0,-bmpHeight,0));
154 154

  
155
      long deformEffectID = mSuccess.deform(dDeform, new Static2D(bmpWidth/2,0) );
155
      long deformEffectID = mSuccess.deform(dDeform, new Static3D(bmpWidth/2,0,0) );
156 156

  
157 157
      if( deformEffectID<0 )
158 158
        {

Also available in: Unified diff