Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
67 | 67 |
{ |
68 | 68 |
mView = v; |
69 | 69 |
|
70 |
Static3D pLeft = new Static3D(132, 264, 0);
|
|
71 |
Static3D pRight= new Static3D(247, 264, 0);
|
|
70 |
Static3D pLeft = new Static3D(132, 336, 0);
|
|
71 |
Static3D pRight= new Static3D(247, 336, 0);
|
|
72 | 72 |
|
73 | 73 |
// Size |
74 | 74 |
Static4D sinkRegion = new Static4D(0,0,0,60); |
... | ... | |
100 | 100 |
diR.add(v1); |
101 | 101 |
|
102 | 102 |
// Lower Movement |
103 |
Static3D pHips = new Static3D(216,505,0);
|
|
103 |
Static3D pHips = new Static3D(216,95,0);
|
|
104 | 104 |
Static4D HipsRegion = new Static4D(0,0,0,120); |
105 |
Dynamic1D diHips = new Dynamic1D(1500,0.0f); |
|
105 |
Dynamic1D diHips = new Dynamic1D(1500,0.0f);
|
|
106 | 106 |
|
107 | 107 |
dBegin = new Static1D(0); |
108 | 108 |
dMiddle= new Static1D(0); |
... | ... | |
117 | 117 |
|
118 | 118 |
mEffects = new DistortedEffects(); |
119 | 119 |
|
120 |
mEffects.apply( new VertexEffectSink(diSink, pLeft, sinkRegion) );
|
|
121 |
mEffects.apply( new VertexEffectSink(diSink, pRight,sinkRegion) );
|
|
122 |
mEffects.apply( new VertexEffectDistort(diL, pLeft , Region) );
|
|
123 |
mEffects.apply( new VertexEffectDistort(diR, pRight, Region) );
|
|
124 |
mEffects.apply( new VertexEffectSwirl(diHips, pHips, HipsRegion) );
|
|
120 |
mEffects.apply( new VertexEffectSink ( diSink, pLeft , sinkRegion) );
|
|
121 |
mEffects.apply( new VertexEffectSink ( diSink, pRight, sinkRegion) );
|
|
122 |
mEffects.apply( new VertexEffectDistort( diL , pLeft , Region ) );
|
|
123 |
mEffects.apply( new VertexEffectDistort( diR , pRight, Region ) );
|
|
124 |
mEffects.apply( new VertexEffectSwirl ( diHips, pHips , HipsRegion) );
|
|
125 | 125 |
|
126 | 126 |
mMove = new Static3D(0,0,0); |
127 | 127 |
mScale= new Static3D(1,1,1); |
... | ... | |
150 | 150 |
|
151 | 151 |
void setSwing(int swing) |
152 | 152 |
{ |
153 |
v0.set( 0,-swing, 0);
|
|
153 |
v0.set( 0, swing, 0);
|
|
154 | 154 |
v1.set( swing, 0, 0); |
155 |
v2.set( 0, swing, 0);
|
|
155 |
v2.set( 0,-swing, 0);
|
|
156 | 156 |
v3.set(-swing, 0, 0); |
157 | 157 |
} |
158 | 158 |
|
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).