com.vwp.j3d.utils.geometry
Class SkyBox

java.lang.Object
  extended by Shape3D
      extended by com.vwp.j3d.utils.geometry.SkyBox

public class SkyBox
extends Shape3D

This class can be used to create a SkyBox to hold the background image. It creates this SkyBox together with the required texture coordinates. A texture is expected which contains six tiles right beside another. These tiles have to contain the following images for the faces of the SkyBox: left, front, right, back, top and bottom (from left to right). Different to other 3D objects here the texture coordinates are created in every case.


Field Summary
static int ENABLE_APPEARANCE_MODIFY
           
static int GENERATE_NORMALS
           
static int GENERATE_NORMALS_INWARD
           
 
Constructor Summary
SkyBox()
          The default constructor.
SkyBox(float dim, Appearance ap)
          SkyBox constructor
SkyBox(float dim, int flags, Appearance ap)
          SkyBox constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATE_NORMALS

public static final int GENERATE_NORMALS

GENERATE_NORMALS_INWARD

public static final int GENERATE_NORMALS_INWARD

ENABLE_APPEARANCE_MODIFY

public static final int ENABLE_APPEARANCE_MODIFY
Constructor Detail

SkyBox

public SkyBox()
The default constructor. It creates a 1x1x1 m white SkyBox.


SkyBox

public SkyBox(float dim,
              Appearance ap)
SkyBox constructor

Parameters:
dim - width of the SkyBox
ap - Appearance of the SkyBox which has to be generated

SkyBox

public SkyBox(float dim,
              int flags,
              Appearance ap)
SkyBox constructor

Parameters:
dim - width of the SkyBox
flags - specifies some properties of the SkyBox object, for more information please refer the flag values taken from @Box
ap - Appearance of the SkyBox which has to be generated