Project

General

Profile

« Previous | Next » 

Revision 287a5475

Added by Leszek Koltunski about 8 years ago

Around The World pretty much finished!

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldEffectsManager.java
128 128
  private Static3D bChromaPupil;
129 129
  private Static1D bChromaPupilFactor;
130 130
  private Dynamic1D bChromaPupilDyn;
131
  // d) all those chroma effects have reduced contrast - bring it back
132
  private Static1D bContrastFactor;
133
  private Dynamic1D bContrastDyn;
131 134

  
132 135
///////////////////////////////////////////////////////////////////////////////////////////////////
133 136

  
......
235 238
    bLPupilColorRegion   = new Static4D(166,230,28,23);
236 239
    bRPupilColorRegion   = new Static4D(431,230,28,23);
237 240

  
238
    bChromaSkin        = new Static3D(0.66f, 0.4f, 0.5f);
241
    bChromaSkin        = new Static3D(0.4f, 0.25f, 0.25f);
239 242
    bChromaEyes        = new Static3D(1.0f, 1.0f, 1.0f);
240
    bChromaPupil       = new Static3D(0.5f, 0.14f, 0.14f);
243
    bChromaPupil       = new Static3D(0.4f, 0.14f, 0.14f);
241 244
    bChromaSkinFactor  = new Static1D(0.0f);
242 245
    bChromaPupilFactor = new Static1D(0.0f);
243 246
    bChromaEyesFactor  = new Static1D(0.0f);
247
    bContrastFactor    = new Static1D(0.0f);
244 248

  
245 249
    bChromaSkinDyn = new Dynamic1D();
246 250
    bChromaSkinDyn.add(bChromaSkinFactor);
......
248 252
    bChromaEyesDyn.add(bChromaEyesFactor);
249 253
    bChromaPupilDyn = new Dynamic1D();
250 254
    bChromaPupilDyn.add(bChromaPupilFactor);
255
    bContrastDyn = new Dynamic1D();
256
    bContrastDyn.add(bContrastFactor);
251 257
    }
252 258

  
253 259
///////////////////////////////////////////////////////////////////////////////////////////////////
......
283 289
    obj.chroma(bChromaEyesDyn, bChromaEyes, bREyeColorRegion, true);
284 290
    obj.chroma(bChromaPupilDyn, bChromaPupil, bLPupilColorRegion, true);
285 291
    obj.chroma(bChromaPupilDyn, bChromaPupil, bRPupilColorRegion, true);
292

  
293
    obj.contrast(bContrastDyn);
286 294
    }
287 295

  
288 296
///////////////////////////////////////////////////////////////////////////////////////////////////
......
300 308

  
301 309
    // ASIANNESS
302 310
    aLipsNoseFactor.set2(-23.0f*mAsianness);
303
    aNoseBroaderFactor.set1(1.0f+0.92f*mAsianness);
311
    aNoseBroaderFactor.set1(1.0f+0.85f*mAsianness);
304 312
    aNostrilsFactor.set2(-12.0f*mAsianness);
305
    aLEyeFactor.set(+20.0f*mAsianness);
306
    aREyeFactor.set(-20.0f*mAsianness);
313
    aLEyeFactor.set(+10.0f*mAsianness);
314
    aREyeFactor.set(-10.0f*mAsianness);
307 315
    aEyebrowsFactor.set2(-40.0f*mAsianness);
308 316

  
309 317
    aChromaSkinFactor.set(0.2f*mAsianness);
......
316 324
    bNoseBroaderFactor.set1(1.0f+0.38f*mBlackness);
317 325
    bLipsFactor.set1(1.0f+1.0f*mBlackness);
318 326

  
319
    bChromaSkinFactor.set(0.55f*mBlackness);
320
    bChromaEyesFactor.set(0.35f*mBlackness);
321
    bChromaPupilFactor.set(0.7f*mBlackness);
327
    bChromaSkinFactor.set(0.75f*mBlackness);
328
    bChromaEyesFactor.set(0.2f*mBlackness);
329
    bChromaPupilFactor.set(0.6f*mBlackness);
330

  
331
    bContrastFactor.set(1.0f+1.5f*mBlackness);
322 332
    }
323 333
  }
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
54 54
      mEffects = new AroundTheWorldEffectsManager();
55 55

  
56 56
      Distorted.setMaxVertex(12);
57
      Distorted.setMaxFragment(8);
57
      Distorted.setMaxFragment(9);
58 58
      }
59 59

  
60 60
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff