Package camera3D
Class Camera3D
java.lang.Object
camera3D.Camera3D
- All Implemented Interfaces:
processing.core.PConstants
-
Field Summary
Fields inherited from interface processing.core.PConstants
ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ASYNC_SAVEFRAME, DISABLE_BUFFER_READING, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_KEY_REPEAT, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_ASYNC_SAVEFRAME, ENABLE_BUFFER_READING, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_KEY_REPEAT, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ESC, EXCLUSION, FX2D, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOS, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPAN, SPHERE, SPOT, SQUARE, SUBTRACT, SVG, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
camera()
void
camera
(float cameraX, float cameraY, float cameraZ, float targetX, float targetY, float targetZ, float upX, float upY, float upZ) void
draw()
void
void
enableSaveFrame
(char key) void
enableSaveFrame
(char key, String saveFrameLocation) void
enableSaveFrame
(String saveFrameLocation) void
frustum
(float left, float right, float bottom, float top, float near, float far) float
int
float
void
keyEvent
(processing.event.KeyEvent e) void
void
perspective
(float fovy, float aspect, float zNear, float zFar) void
pre()
renderBitMaskFilterAnaglyph
(int leftFilter, int rightFilter) void
void
setBackgroundColor
(int backgroundColor) void
setCameraLocation
(float cameraX, float cameraY, float cameraZ) void
setCameraTarget
(float targetX, float targetY, float targetZ) void
setCameraUpDirection
(float upX, float upY, float upZ) void
setFrameLimit
(int frameLimit) void
setGenerator
(Generator generator) stereoscopicLeftRightFrameSaver
(String leftFilename, String rightFilename) stereoscopicSequentialFrameSaver
(String filename) static String
version()
-
Field Details
-
VERSION
- See Also:
-
-
Constructor Details
-
Camera3D
public Camera3D(processing.core.PApplet parent)
-
-
Method Details
-
version
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor) -
renderDefaultAnaglyph
-
renderBitMaskRedCyanAnaglyph
-
renderBitMaskMagentaGreenAnaglyph
-
renderBitMaskFilterAnaglyph
-
renderDuboisRedCyanAnaglyph
-
renderDuboisMagentaGreenAnaglyph
-
renderDuboisAmberBlueAnaglyph
-
renderTrueAnaglyph
-
renderGrayAnaglyph
-
renderHalfColorAnaglyph
-
renderBarrelDistortion
-
renderMonoscopic360
-
renderSplitFrameSideBySide
-
renderSplitFrameOverUnder
-
renderSplitFrameOverUnderHalfHeight
-
renderSplitFrameSideBySideHalfWidth
-
renderInterlaced
-
renderSplitDepthIllusion
-
stereoscopicSequentialFrameSaver
-
stereoscopicLeftRightFrameSaver
public StereoscopicGenerator stereoscopicLeftRightFrameSaver(String leftFilename, String rightFilename) -
renderChromaDepth
-
renderDepthMap
-
renderRegular
-
setGenerator
-
getGenerator
-
enableSaveFrame
-
enableSaveFrame
-
enableSaveFrame
public void enableSaveFrame(char key) -
enableSaveFrame
public void enableSaveFrame() -
getGeneratorTime
public float getGeneratorTime() -
getDrawTime
public float getDrawTime() -
reportStats
public void reportStats() -
createPeasyCamAdapter
-
camera
public void camera() -
camera
public void camera(float cameraX, float cameraY, float cameraZ, float targetX, float targetY, float targetZ, float upX, float upY, float upZ) -
setFrameLimit
public void setFrameLimit(int frameLimit) -
setCameraLocation
public void setCameraLocation(float cameraX, float cameraY, float cameraZ) -
setCameraTarget
public void setCameraTarget(float targetX, float targetY, float targetZ) -
setCameraUpDirection
public void setCameraUpDirection(float upX, float upY, float upZ) -
perspective
public void perspective() -
perspective
public void perspective(float fovy, float aspect, float zNear, float zFar) -
frustum
public void frustum(float left, float right, float bottom, float top, float near, float far) -
currentActivity
-
getFrameNum
public int getFrameNum() -
pre
public void pre() -
draw
public void draw() -
keyEvent
public void keyEvent(processing.event.KeyEvent e)
-