Java Code Examples for processing.opengl.PGraphics3D#applyMatrix()

The following examples show how to use processing.opengl.PGraphics3D#applyMatrix() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Skylight_BulletPhysics_Cubes.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}
 
Example 2
Source File: Skylight_BulletPhysics_CellFracture.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}
 
Example 3
Source File: Skylight_BulletPhysics_MengerSponge.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(180);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}
 
Example 4
Source File: Skylight_BulletPhysics_Breakable.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}
 
Example 5
Source File: Skylight_BulletPhysics_Breakable_VideoExport.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}
 
Example 6
Source File: Skylight_BulletPhysics_Breakable3.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.shape(group_collisions);
  pg.popMatrix();
}
 
Example 7
Source File: Skylight_BulletPhysics_TowerDemolition.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}
 
Example 8
Source File: Skylight_BulletPhysics_Basic.java    From PixelFlow with MIT License 6 votes vote down vote up
public void displayScene(PGraphics3D pg){
  if(pg == skylight.renderer.pg_render){
    pg.background(16);
  }
  
  if(pg == geombuffer.pg_geom){
    pg.background(255, 255);
    pg.pgl.clearColor(1, 1, 1, 6000);
    pg.pgl.clear(PGL.COLOR_BUFFER_BIT);
  }
  
  pg.pushMatrix();
  pg.applyMatrix(mat_scene_view);
  pg.shape(group_bulletbodies);
  pg.popMatrix();
}