com.vwp.j3d.utils.geometry
Class SkyBox
java.lang.Object
Shape3D
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.
|
Constructor Summary |
SkyBox()
The default constructor. |
SkyBox(float dim,
Appearance ap)
SkyBox constructor |
SkyBox(float dim,
int flags,
Appearance ap)
SkyBox constructor |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 SkyBoxap - 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 SkyBoxflags - specifies some properties of the SkyBox object, for more
information please refer the flag values taken from @Boxap - Appearance of the SkyBox which has to be generated