j3d.org Code

org.j3d.loaders.discreet
Class CameraBlock

java.lang.Object
  extended by org.j3d.loaders.discreet.CameraBlock

public class CameraBlock
extends java.lang.Object

Representation of a single camera and its paramaters needed for rendering.

Cameras are described using the 0x4700 series of parameters.

The block is defined as:

 N_CAMERA 0x4700
    point         (camera position)
    point         (camera target)
    float         (camera bank angle)
    float         (camera focal length in mm)
    CAM_SEE_CONE  0x4710
    CAM_RANGES    0x4720
 

Version:
$Revision: 1.4 $
Author:
Justin Couch

Field Summary
 float bankAngle
          The rotation angle in degrees for the camera.
 float focus
          The focus distance for the camera (in millimetres)
 float[] location
          The location of the the camera,
 float[] ranges
          Atmospheric effect ranges for the camera.
 boolean seeOutline
          Flag indicating whether the camera view cone should be shown
 float[] target
          The location the camera is pointing at
 
Constructor Summary
CameraBlock()
          Create a new camera block and set it up with basic details.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

public float[] location
The location of the the camera,


target

public float[] target
The location the camera is pointing at


bankAngle

public float bankAngle
The rotation angle in degrees for the camera. It is an angle relative to the local up vector (0,1,0).


focus

public float focus
The focus distance for the camera (in millimetres)


seeOutline

public boolean seeOutline
Flag indicating whether the camera view cone should be shown


ranges

public float[] ranges
Atmospheric effect ranges for the camera. Null if not set. Length 2 if set. [0] is near raidus of effect. [0] is far radius of effect. Both must be greater than or equal to zero.

Constructor Detail

CameraBlock

public CameraBlock()
Create a new camera block and set it up with basic details.


j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org