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/aroundtheworld/AroundTheWorldEffectsManager.java
151 151
    // WHITENESS
152 152
    // Vertex Effects
153 153
    wLipsRegion = new Static4D(0,0,0,100);
154
    wLipsCenter = new Static3D(300,500,0);
154
    wLipsCenter = new Static3D(300,100,0);
155 155
    wLipsFactor = new Static1D(0.7f);
156 156
    wLipsDyn    = new Dynamic1D();
157 157
    wLipsDyn.add(wLipsFactor);
......
159 159
    // ASIANNESS
160 160
    // Vertex Effects
161 161
    aLipsNoseRegion    = new Static4D(0,0,0,267);
162
    aLipsNoseCenter    = new Static3D(300,560,0);
162
    aLipsNoseCenter    = new Static3D(300, 40,0);
163 163
    aLipsNoseDyn       = new Dynamic3D();
164 164
    aLipsNoseFactor    = new Static3D(0,0,0);
165 165
    aLipsNoseDyn.add(aLipsNoseFactor);
166 166

  
167 167
    aNoseBroaderRegion = new Static4D(0,0,0,130);
168
    aNoseBroaderCenter = new Static3D(300,307,0);
168
    aNoseBroaderCenter = new Static3D(300,293,0);
169 169
    aNoseBroaderDyn    = new Dynamic2D();
170 170
    aNoseBroaderFactor = new Static2D(0,90);
171 171
    aNoseBroaderDyn.add(aNoseBroaderFactor);
172 172

  
173 173
    aNostrilsRegion    = new Static4D(0,0,0,60);
174
    aNostrilsCenter    = new Static3D(300,336,0);
174
    aNostrilsCenter    = new Static3D(300,264,0);
175 175
    aNostrilsDyn       = new Dynamic3D();
176 176
    aNostrilsFactor    = new Static3D(0,0,0);
177 177
    aNostrilsDyn.add(aNostrilsFactor);
178 178

  
179 179
    aEyesRegion        = new Static4D(0,0,0,83);
180
    aLEyeCenter        = new Static3D(176,230,0);
181
    aREyeCenter        = new Static3D(420,230,0);
180
    aLEyeCenter        = new Static3D(176,370,0);
181
    aREyeCenter        = new Static3D(420,370,0);
182 182
    aLEyeDyn           = new Dynamic1D();
183 183
    aREyeDyn           = new Dynamic1D();
184 184
    aLEyeFactor        = new Static1D(0);
......
187 187
    aREyeDyn.add(aREyeFactor);
188 188

  
189 189
    aEyebrowsRegion    = new Static4D(0,0,0,142);
190
    aEyebrowsCenter    = new Static3D(300,100,0);
190
    aEyebrowsCenter    = new Static3D(300,500,0);
191 191
    aEyebrowsDyn       = new Dynamic3D();
192 192
    aEyebrowsFactor    = new Static3D(0,0,0);
193 193
    aEyebrowsDyn.add(aEyebrowsFactor);
......
195 195
    // Fragment Effects
196 196
    aSkinColorCenter   = new Static3D(300,300,0);
197 197
    aSkinColorRegion   = new Static3D(600,600,600);
198
    aLEyeColorCenter   = new Static3D(172,230,0);
198
    aLEyeColorCenter   = new Static3D(172,370,0);
199 199
    aLEyeColorRegion   = new Static3D(29,25,25);
200
    aREyeColorCenter   = new Static3D(423,230,0);
200
    aREyeColorCenter   = new Static3D(423,370,0);
201 201
    aREyeColorRegion   = new Static3D(29,25,25);
202 202

  
203 203
    aChromaSkin        = new Static3D(0.5f, 0.5f, 0.5f);
......
219 219
    bFaceDyn.add(bFaceFactor);
220 220

  
221 221
    bTipLowerRegion    = new Static4D(0,0,0,41);
222
    bTipLowerCenter    = new Static3D(300,393,0);
222
    bTipLowerCenter    = new Static3D(300,207,0);
223 223
    bTipLowerFactor    = new Static3D(0,0,0);
224 224
    bTipLowerDyn       = new Dynamic3D();
225 225
    bTipLowerDyn.add(bTipLowerFactor);
226 226

  
227 227
    bWholeNoseRegion   = new Static4D(0,0,0,130);
228
    bWholeNoseCenter   = new Static3D(300,357,0);
228
    bWholeNoseCenter   = new Static3D(300,243,0);
229 229
    bWholeNoseFactor   = new Static2D(1.0f,90.0f);
230 230
    bWholeNoseDyn      = new Dynamic2D();
231 231
    bWholeNoseDyn.add(bWholeNoseFactor);
232 232

  
233 233
    bNoseBroaderRegion = new Static4D(0,0,0,95);
234
    bNoseBroaderCenter = new Static3D(300,408,0);
234
    bNoseBroaderCenter = new Static3D(300,192,0);
235 235
    bNoseBroaderFactor = new Static2D(1.0f,90.0f);
236 236
    bNoseBroaderDyn    = new Dynamic2D();
237 237
    bNoseBroaderDyn.add(bNoseBroaderFactor);
238 238

  
239
    bLipsRegion        = new Static4D(0,96,0,118);
240
    bLipsCenter        = new Static3D(300,458,0);
239
    bLipsRegion        = new Static4D(0,-96,0,118);
240
    bLipsCenter        = new Static3D(300,142,0);
241 241
    bLipsFactor        = new Static2D(1.0f,0.0f);
242 242
    bLipsDyn           = new Dynamic2D();
243 243
    bLipsDyn.add(bLipsFactor);
......
245 245
    // Fragment Effects
246 246
    bSkinColorCenter     = new Static3D(300,300,0);
247 247
    bSkinColorRegion     = new Static3D(600,600,600);
248
    bLEyeColorCenter     = new Static3D(158,241,0);
248
    bLEyeColorCenter     = new Static3D(158,359,0);
249 249
    bLEyeColorRegion     = new Static3D(55,24,50);
250
    bREyeColorCenter     = new Static3D(436,241,0);
250
    bREyeColorCenter     = new Static3D(436,359,0);
251 251
    bREyeColorRegion     = new Static3D(55,24,50);
252
    bLPupilColorCenter   = new Static3D(166,230,0);
252
    bLPupilColorCenter   = new Static3D(166,370,0);
253 253
    bLPupilColorRegion   = new Static3D(28,23,25);
254
    bRPupilColorCenter   = new Static3D(431,230,0);
254
    bRPupilColorCenter   = new Static3D(431,370,0);
255 255
    bRPupilColorRegion   = new Static3D(28,23,25);
256 256

  
257 257
    bChromaSkin        = new Static3D(0.4f, 0.25f, 0.25f);
......
323 323
    wLipsFactor.set(1.0f-0.3f*mWhiteness);
324 324

  
325 325
    // ASIANNESS
326
    aLipsNoseFactor.set2(-23.0f*mAsianness);
326
    aLipsNoseFactor.set2(23.0f*mAsianness);
327 327
    aNoseBroaderFactor.set1(1.0f+0.85f*mAsianness);
328
    aNostrilsFactor.set2(-12.0f*mAsianness);
328
    aNostrilsFactor.set2(12.0f*mAsianness);
329 329
    aLEyeFactor.set(+10.0f*mAsianness);
330 330
    aREyeFactor.set(-10.0f*mAsianness);
331
    aEyebrowsFactor.set2(-40.0f*mAsianness);
331
    aEyebrowsFactor.set2(40.0f*mAsianness);
332 332

  
333 333
    aChromaSkinFactor.set(0.2f*mAsianness);
334 334
    aChromaEyesFactor.set(0.7f*mAsianness);
335 335

  
336 336
    // BLACKNESS
337 337
    bFaceFactor.set1(1.0f + 0.1f*mBlackness);
338
    bTipLowerFactor.set2(23.0f*mBlackness);
338
    bTipLowerFactor.set2(-23.0f*mBlackness);
339 339
    bWholeNoseFactor.set1(1.0f+0.5f*mBlackness);
340 340
    bNoseBroaderFactor.set1(1.0f+0.38f*mBlackness);
341 341
    bLipsFactor.set1(1.0f+1.0f*mBlackness);

Also available in: Unified diff