Viewer: A Processing Library for Interactive 3D sketches

drawBounds()

drawBounds(int lineColour);

This function draws the camera's current boundaries as a grid. The camera's boundaries must first be set by setBounds().

Example:

import processing.opengl.*;
import carlucci.viewer.*;

Viewer myViewer;

void setup(){
  size(800,600,OPENGL);
  
  myViewer = new Viewer(this);
  myViewer.setBounds(-500,500,-1000,1000);
}

void draw(){
  background(0);
  myViewer.drawBounds(100); 
}

Constructor

Functions

Movement

Boundaries

Jumping