|
@@ -133,21 +133,21 @@ public class Led3D extends MouseAdapter {
|
133
|
133
|
|
134
|
134
|
TransformGroup tg = new TransformGroup();
|
135
|
135
|
Transform3D transform = new Transform3D();
|
136
|
|
- Vector3f vector = new Vector3f(x - 4, y - 4, z - 4);
|
|
136
|
+ Vector3f vector = new Vector3f(x - 3.5f, y -3.5f, z-3.5f);
|
137
|
137
|
transform.setTranslation(vector);
|
138
|
138
|
tg.setTransform(transform);
|
139
|
139
|
tg.addChild(leds[x][y][z]);
|
140
|
140
|
transGroup.addChild(tg);
|
141
|
141
|
|
142
|
|
- drawLedFeetVertical((double) x - 4, y - 3.5, (double) z-4, 0.9f, 0.01f);
|
|
142
|
+ drawLedFeetVertical((double) x - 3.5, y - 3.5, (double) z-3.5, 0.9f, 0.01f);
|
143
|
143
|
if (x < 7)
|
144
|
|
- drawLedFeetHorizontal(x - 3.5, (double) y - 4, (double) z - 4, 0.9f, 0.01f, 0);
|
|
144
|
+ drawLedFeetHorizontal(x - 3, (double) y - 3.5, (double) z - 3.5, 0.9f, 0.01f, 0);
|
145
|
145
|
}
|
146
|
146
|
}
|
147
|
147
|
// 8 times, use x as y
|
148
|
|
- for(int i = 0; i > -8; i--){
|
149
|
|
- drawLedFeetHorizontal(i+3, (double) x-4, -0.5, 7.0f, 0.02f, 90);
|
150
|
|
- }
|
|
148
|
+ for(int i = 0; i > -8; i--){
|
|
149
|
+ drawLedFeetHorizontal(i+3.5, (double) x, 0, 7.0f, 0.02f, 90);
|
|
150
|
+ }
|
151
|
151
|
}
|
152
|
152
|
|
153
|
153
|
// Add an ambient light
|