«
Previous
|
Next
»
Revision 30f337e5
Added by Leszek Koltunski about 2 months ago
- ID 30f337e50a7d5d83c0419732cc2f896aeef67cee
- Parent c31aa527
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldEffectsManager.java | ||
---|---|---|
41 | 41 |
// WHITENESS |
42 | 42 |
// Vertex effects: |
43 | 43 |
// a) make the lips smaller (SINK) |
44 |
private Static4D wLipsRegion; |
|
45 |
private Static3D wLipsCenter; |
|
46 |
private Static1D wLipsFactor; |
|
47 |
private Dynamic1D wLipsDyn; |
|
44 |
private final Static4D wLipsRegion;
|
|
45 |
private final Static3D wLipsCenter;
|
|
46 |
private final Static1D wLipsFactor;
|
|
47 |
private final Dynamic1D wLipsDyn;
|
|
48 | 48 |
|
49 | 49 |
// ASIANNESS |
50 | 50 |
// Vertex Effects: |
51 | 51 |
// a) move lips & nose higher (DISTORT) |
52 |
private Static4D aLipsNoseRegion; |
|
53 |
private Static3D aLipsNoseCenter; |
|
54 |
private Static3D aLipsNoseFactor; |
|
55 |
private Dynamic3D aLipsNoseDyn; |
|
52 |
private final Static4D aLipsNoseRegion;
|
|
53 |
private final Static3D aLipsNoseCenter;
|
|
54 |
private final Static3D aLipsNoseFactor;
|
|
55 |
private final Dynamic3D aLipsNoseDyn;
|
|
56 | 56 |
// b) make the nose broader (PINCH) |
57 |
private Static4D aNoseBroaderRegion; |
|
58 |
private Static3D aNoseBroaderCenter; |
|
59 |
private Static3D aNoseBroaderFactor; |
|
60 |
private Dynamic3D aNoseBroaderDyn; |
|
57 |
private final Static4D aNoseBroaderRegion;
|
|
58 |
private final Static3D aNoseBroaderCenter;
|
|
59 |
private final Static3D aNoseBroaderFactor;
|
|
60 |
private final Dynamic3D aNoseBroaderDyn;
|
|
61 | 61 |
// c) make the nostrils more visible (DISTORT) |
62 |
private Static4D aNostrilsRegion; |
|
63 |
private Static3D aNostrilsCenter; |
|
64 |
private Static3D aNostrilsFactor; |
|
65 |
private Dynamic3D aNostrilsDyn; |
|
62 |
private final Static4D aNostrilsRegion;
|
|
63 |
private final Static3D aNostrilsCenter;
|
|
64 |
private final Static3D aNostrilsFactor;
|
|
65 |
private final Dynamic3D aNostrilsDyn;
|
|
66 | 66 |
// d) rotate eyes (2 x SWIRL) |
67 |
private Static4D aEyesRegion; |
|
68 |
private Static3D aLEyeCenter, aREyeCenter; |
|
69 |
private Static1D aLEyeFactor, aREyeFactor; |
|
70 |
private Dynamic1D aLEyeDyn, aREyeDyn; |
|
67 |
private final Static4D aEyesRegion;
|
|
68 |
private final Static3D aLEyeCenter, aREyeCenter;
|
|
69 |
private final Static1D aLEyeFactor, aREyeFactor;
|
|
70 |
private final Dynamic1D aLEyeDyn, aREyeDyn;
|
|
71 | 71 |
// e) move eyebrow higher (DISTORT) |
72 |
private Static4D aEyebrowsRegion; |
|
73 |
private Static3D aEyebrowsCenter; |
|
74 |
private Static3D aEyebrowsFactor; |
|
75 |
private Dynamic3D aEyebrowsDyn; |
|
72 |
private final Static4D aEyebrowsRegion;
|
|
73 |
private final Static3D aEyebrowsCenter;
|
|
74 |
private final Static3D aEyebrowsFactor;
|
|
75 |
private final Dynamic3D aEyebrowsDyn;
|
|
76 | 76 |
|
77 | 77 |
// Fragment effects: |
78 | 78 |
// a) change color of the skin to more brown and less red (CHROMA) |
79 |
private Static3D aSkinColorCenter; |
|
80 |
private Static3D aSkinColorRegion; |
|
81 |
private Static3D aChromaSkin; |
|
82 |
private Static1D aChromaSkinFactor; |
|
83 |
private Dynamic1D aChromaSkinDyn; |
|
79 |
private final Static3D aSkinColorCenter;
|
|
80 |
private final Static3D aSkinColorRegion;
|
|
81 |
private final Static3D aChromaSkin;
|
|
82 |
private final Static1D aChromaSkinFactor;
|
|
83 |
private final Dynamic1D aChromaSkinDyn;
|
|
84 | 84 |
// b) darken both eyes (2 x SMOOTH_CHROMA) |
85 |
private Static3D aLEyeColorCenter, aREyeColorCenter; |
|
86 |
private Static3D aLEyeColorRegion, aREyeColorRegion; |
|
87 |
private Static3D aChromaEyes; |
|
88 |
private Static1D aChromaEyesFactor; |
|
89 |
private Dynamic1D aChromaEyesDyn; |
|
85 |
private final Static3D aLEyeColorCenter, aREyeColorCenter;
|
|
86 |
private final Static3D aLEyeColorRegion, aREyeColorRegion;
|
|
87 |
private final Static3D aChromaEyes;
|
|
88 |
private final Static1D aChromaEyesFactor;
|
|
89 |
private final Dynamic1D aChromaEyesDyn;
|
|
90 | 90 |
|
91 | 91 |
// BLACKNESS |
92 | 92 |
// Vertex Effects |
93 | 93 |
// a) make the whole face broader (PINCH) |
94 |
private Static4D bFaceRegion; |
|
95 |
private Static3D bFaceCenter; |
|
96 |
private Static3D bFaceFactor; |
|
97 |
private Dynamic3D bFaceDyn; |
|
94 |
private final Static4D bFaceRegion;
|
|
95 |
private final Static3D bFaceCenter;
|
|
96 |
private final Static3D bFaceFactor;
|
|
97 |
private final Dynamic3D bFaceDyn;
|
|
98 | 98 |
// b) tip of the nose lower (DISTORT) |
99 |
private Static4D bTipLowerRegion; |
|
100 |
private Static3D bTipLowerCenter; |
|
101 |
private Static3D bTipLowerFactor; |
|
102 |
private Dynamic3D bTipLowerDyn; |
|
99 |
private final Static4D bTipLowerRegion;
|
|
100 |
private final Static3D bTipLowerCenter;
|
|
101 |
private final Static3D bTipLowerFactor;
|
|
102 |
private final Dynamic3D bTipLowerDyn;
|
|
103 | 103 |
// c) broaden the whole nose: (PINCH) |
104 |
private Static4D bWholeNoseRegion; |
|
105 |
private Static3D bWholeNoseCenter; |
|
106 |
private Static3D bWholeNoseFactor; |
|
107 |
private Dynamic3D bWholeNoseDyn; |
|
104 |
private final Static4D bWholeNoseRegion;
|
|
105 |
private final Static3D bWholeNoseCenter;
|
|
106 |
private final Static3D bWholeNoseFactor;
|
|
107 |
private final Dynamic3D bWholeNoseDyn;
|
|
108 | 108 |
// d) broaden the tip of the nose some more: (PINCH) |
109 |
private Static4D bNoseBroaderRegion; |
|
110 |
private Static3D bNoseBroaderCenter; |
|
111 |
private Static3D bNoseBroaderFactor; |
|
112 |
private Dynamic3D bNoseBroaderDyn; |
|
109 |
private final Static4D bNoseBroaderRegion;
|
|
110 |
private final Static3D bNoseBroaderCenter;
|
|
111 |
private final Static3D bNoseBroaderFactor;
|
|
112 |
private final Dynamic3D bNoseBroaderDyn;
|
|
113 | 113 |
// 3) make lips higher: (PINCH) |
114 |
private Static4D bLipsRegion; |
|
115 |
private Static3D bLipsCenter; |
|
116 |
private Static3D bLipsFactor; |
|
117 |
private Dynamic3D bLipsDyn; |
|
114 |
private final Static4D bLipsRegion;
|
|
115 |
private final Static3D bLipsCenter;
|
|
116 |
private final Static3D bLipsFactor;
|
|
117 |
private final Dynamic3D bLipsDyn;
|
|
118 | 118 |
// Fragment effects |
119 | 119 |
// a) make the whole face darker (CHROMA) |
120 |
private Static3D bSkinColorCenter; |
|
121 |
private Static3D bSkinColorRegion; |
|
122 |
private Static3D bChromaSkin; |
|
123 |
private Static1D bChromaSkinFactor; |
|
124 |
private Dynamic1D bChromaSkinDyn; |
|
120 |
private final Static3D bSkinColorCenter;
|
|
121 |
private final Static3D bSkinColorRegion;
|
|
122 |
private final Static3D bChromaSkin;
|
|
123 |
private final Static1D bChromaSkinFactor;
|
|
124 |
private final Dynamic1D bChromaSkinDyn;
|
|
125 | 125 |
// b) move both eyes back to whiteness (2 x SMOOTH CHROMA) |
126 |
private Static3D bLEyeColorCenter, bREyeColorCenter; |
|
127 |
private Static3D bLEyeColorRegion, bREyeColorRegion; |
|
128 |
private Static3D bChromaEyes; |
|
129 |
private Static1D bChromaEyesFactor; |
|
130 |
private Dynamic1D bChromaEyesDyn; |
|
126 |
private final Static3D bLEyeColorCenter, bREyeColorCenter;
|
|
127 |
private final Static3D bLEyeColorRegion, bREyeColorRegion;
|
|
128 |
private final Static3D bChromaEyes;
|
|
129 |
private final Static1D bChromaEyesFactor;
|
|
130 |
private final Dynamic1D bChromaEyesDyn;
|
|
131 | 131 |
// c) darken both pupils (2 x SMOOTH_CHROMA) |
132 |
private Static3D bLPupilColorCenter, bRPupilColorCenter; |
|
133 |
private Static3D bLPupilColorRegion, bRPupilColorRegion; |
|
134 |
private Static3D bChromaPupil; |
|
135 |
private Static1D bChromaPupilFactor; |
|
136 |
private Dynamic1D bChromaPupilDyn; |
|
132 |
private final Static3D bLPupilColorCenter, bRPupilColorCenter;
|
|
133 |
private final Static3D bLPupilColorRegion, bRPupilColorRegion;
|
|
134 |
private final Static3D bChromaPupil;
|
|
135 |
private final Static1D bChromaPupilFactor;
|
|
136 |
private final Dynamic1D bChromaPupilDyn;
|
|
137 | 137 |
// d) all those chroma effects have reduced contrast - bring it back |
138 |
private Static1D bContrastFactor; |
|
139 |
private Dynamic1D bContrastDyn; |
|
138 |
private final Static1D bContrastFactor;
|
|
139 |
private final Dynamic1D bContrastDyn;
|
|
140 | 140 |
|
141 | 141 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
142 | 142 |
|
Also available in: Unified diff
Lint