mirror of
https://github.com/brendanhaines/javaProcessing.git
synced 2024-12-25 18:37:32 -07:00
adds yellow balls to underside of rendered quad arms and adds overhead lighting
This commit is contained in:
parent
8d4930c224
commit
eeefced2b1
|
@ -23,28 +23,47 @@ class DisplayNewQuad extends Display3D {
|
||||||
*/
|
*/
|
||||||
public void drawObject() {
|
public void drawObject() {
|
||||||
int s = 1;
|
int s = 1;
|
||||||
fill( 255 );
|
noStroke();
|
||||||
|
lights();
|
||||||
|
|
||||||
|
fill( 255 );
|
||||||
rotateZ( (float)( Math.PI/4 ) );
|
rotateZ( (float)( Math.PI/4 ) );
|
||||||
translate( 80, 0, 0 );
|
translate( 80, 0, 0 );
|
||||||
box( 100, 10, 10 );
|
box( 100, 10, 10 );
|
||||||
|
translate( 40, 0, -20 );
|
||||||
|
fill( 255, 255, 0 );
|
||||||
|
sphere( 15 );
|
||||||
|
translate( -40, 0, 20 );
|
||||||
translate( -80, 0, 0 );
|
translate( -80, 0, 0 );
|
||||||
|
|
||||||
|
fill( 255 );
|
||||||
rotateZ( (float)( Math.PI/2 ) );
|
rotateZ( (float)( Math.PI/2 ) );
|
||||||
translate( 80, 0, 0 );
|
translate( 80, 0, 0 );
|
||||||
box( 100, 10, 10 );
|
box( 100, 10, 10 );
|
||||||
|
translate( 40, 0, -20 );
|
||||||
|
fill( 255, 255, 0 );
|
||||||
|
sphere( 15 );
|
||||||
|
translate( -40, 0, 20 );
|
||||||
translate( -80, 0, 0 );
|
translate( -80, 0, 0 );
|
||||||
|
|
||||||
fill( 255, 0, 0 );
|
fill( 255, 0, 0 );
|
||||||
|
|
||||||
rotateZ( (float)( Math.PI/2 ) );
|
rotateZ( (float)( Math.PI/2 ) );
|
||||||
translate( 80, 0, 0 );
|
translate( 80, 0, 0 );
|
||||||
box( 100, 10, 10 );
|
box( 100, 10, 10 );
|
||||||
|
translate( 40, 0, -20 );
|
||||||
|
fill( 255, 255, 0 );
|
||||||
|
sphere( 15 );
|
||||||
|
translate( -40, 0, 20 );
|
||||||
translate( -80, 0, 0 );
|
translate( -80, 0, 0 );
|
||||||
|
|
||||||
|
fill( 255, 0, 0 );
|
||||||
rotateZ( (float)( Math.PI/2 ) );
|
rotateZ( (float)( Math.PI/2 ) );
|
||||||
translate( 80, 0, 0 );
|
translate( 80, 0, 0 );
|
||||||
box( 100, 10, 10 );
|
box( 100, 10, 10 );
|
||||||
|
translate( 40, 0, -20 );
|
||||||
|
fill( 255, 255, 0 );
|
||||||
|
sphere( 15 );
|
||||||
|
translate( -40, 0, 20 );
|
||||||
translate( -80, 0, 0 );
|
translate( -80, 0, 0 );
|
||||||
|
|
||||||
rotateZ( (float)( Math.PI/4 ) );
|
rotateZ( (float)( Math.PI/4 ) );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user