|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.RenderPass
org.xith3d.render.BackgroundRenderPass
org.xith3d.scenegraph.primitives.SkyBox
public class SkyBox
A SkyBox is a special type of Background Node. It is a six sided cube which is actually very small (20 x 20 x 20). It is drawn with the depth buffer disabled, so all objects which are drawn after it will be drawn in front. As it is a background node, it will always be drawn as if the camera was in its center regardless of the actual position of the camera. For realism, the six textures need to be carefully constructed with a 90 degree field of view. Typically this can be done in most 3d terrain generation programs (for example Terragen).
| Constructor Summary | |
|---|---|
SkyBox(CubeTextureSet textureSet)
|
|
SkyBox(java.lang.String[] textures)
Creates a new SkyBox using the six given Textures. |
|
SkyBox(java.lang.String[] textures,
boolean flipVertically)
Creates a new SkyBox using the six given Textures. |
|
SkyBox(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom)
Creates a new SkyBox using the six given Textures. |
|
SkyBox(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom,
boolean flipVertically)
Creates a new SkyBox using the six given Textures. |
|
SkyBox(Texture[] textures)
Creates a new SkyBox using the six given Textures. |
|
SkyBox(Texture front,
Texture right,
Texture back,
Texture left,
Texture top,
Texture bottom)
Creates a new SkyBox using the six given Textures. |
|
| Method Summary | ||
|---|---|---|
static BranchGroup |
createSkyBoxGroup(CubeTextureSet textureSet)
|
|
static BranchGroup |
createSkyBoxGroup(float size,
Texture[] textures)
|
|
static
|
createSkyBoxGroup(float size,
Texture[] textures,
G group)
|
|
static BranchGroup |
createSkyBoxGroup(java.lang.String[] textures)
Creates a new SkyBox using the six given Textures. |
|
static BranchGroup |
createSkyBoxGroup(java.lang.String[] textures,
boolean flipTextures)
Creates a new SkyBox using the six given Textures. |
|
static BranchGroup |
createSkyBoxGroup(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom)
Creates a new SkyBox using the six given Textures. |
|
static BranchGroup |
createSkyBoxGroup(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom,
boolean flipVertically)
Creates a new SkyBox using the six given Textures. |
|
static
|
createSkyBoxGroup(Texture[] textures,
G group)
|
|
static BranchGroup |
createSkyBoxGroup(Texture front,
Texture right,
Texture back,
Texture left,
Texture top,
Texture bottom)
Creates a new SkyBox using the six given Textures. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkyBox(Texture[] textures)
textures - a six elemental array of Textures of the following form:
[0] The front image (0 degrees rotation, 0 degrees pitch) [1] The right image (90 degrees rotation, 0 degrees pitch) [2] The back image (180 degrees rotation, 0 degrees pitch) [3] The left image (270 degrees rotation, 0 degrees pitch) [4] The top image (0 degrees rotation, -90 degrees pitch) [5] The bottom image (0 degrees rotation, 90 degrees pitch)
public SkyBox(Texture front,
Texture right,
Texture back,
Texture left,
Texture top,
Texture bottom)
front - The front image (0 degrees rotation, 0 degrees pitch)right - The right image (90 degrees rotation, 0 degrees pitch)back - The back image (180 degrees rotation, 0 degrees pitch)left - The left image (270 degrees rotation, 0 degrees pitch)top - The top image (0 degrees rotation, -90 degrees pitch)bottom - The bottom image (0 degrees rotation, 90 degrees pitch)
public SkyBox(java.lang.String[] textures,
boolean flipVertically)
textures - a six elemental array of Textures of the following form:
[0] The front image (0 degrees rotation, 0 degrees pitch) [1] The right image (90 degrees rotation, 0 degrees pitch) [2] The back image (180 degrees rotation, 0 degrees pitch) [3] The left image (270 degrees rotation, 0 degrees pitch) [4] The top image (0 degrees rotation, -90 degrees pitch) [5] The bottom image (0 degrees rotation, 90 degrees pitch)
public SkyBox(java.lang.String[] textures)
textures - a six elemental array of Textures of the following form:
[0] The front image (0 degrees rotation, 0 degrees pitch) [1] The right image (90 degrees rotation, 0 degrees pitch) [2] The back image (180 degrees rotation, 0 degrees pitch) [3] The left image (270 degrees rotation, 0 degrees pitch) [4] The top image (0 degrees rotation, -90 degrees pitch) [5] The bottom image (0 degrees rotation, 90 degrees pitch)
public SkyBox(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom,
boolean flipVertically)
front - The front image (0 degrees rotation, 0 degrees pitch)right - The right image (90 degrees rotation, 0 degrees pitch)back - The back image (180 degrees rotation, 0 degrees pitch)left - The left image (270 degrees rotation, 0 degrees pitch)top - The top image (0 degrees rotation, -90 degrees pitch)bottom - The bottom image (0 degrees rotation, 90 degrees pitch)flipVertically -
public SkyBox(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom)
front - The front image (0 degrees rotation, 0 degrees pitch)right - The right image (90 degrees rotation, 0 degrees pitch)back - The back image (180 degrees rotation, 0 degrees pitch)left - The left image (270 degrees rotation, 0 degrees pitch)top - The top image (0 degrees rotation, -90 degrees pitch)bottom - The bottom image (0 degrees rotation, 90 degrees pitch)public SkyBox(CubeTextureSet textureSet)
| Method Detail |
|---|
public static <G extends GroupNode> G createSkyBoxGroup(float size,
Texture[] textures,
G group)
public static <G extends GroupNode> G createSkyBoxGroup(Texture[] textures,
G group)
public static BranchGroup createSkyBoxGroup(float size,
Texture[] textures)
public static final BranchGroup createSkyBoxGroup(Texture front,
Texture right,
Texture back,
Texture left,
Texture top,
Texture bottom)
front - The front image (0 degrees rotation, 0 degrees pitch)right - The right image (90 degrees rotation, 0 degrees pitch)back - The back image (180 degrees rotation, 0 degrees pitch)left - The left image (270 degrees rotation, 0 degrees pitch)top - The top image (0 degrees rotation, -90 degrees pitch)bottom - The bottom image (0 degrees rotation, 90 degrees pitch)
public static final BranchGroup createSkyBoxGroup(java.lang.String[] textures,
boolean flipTextures)
textures - a six elemental array of Textures of the following form:
[0] The front image (0 degrees rotation, 0 degrees pitch) [1] The right image (90 degrees rotation, 0 degrees pitch) [2] The back image (180 degrees rotation, 0 degrees pitch) [3] The left image (270 degrees rotation, 0 degrees pitch) [4] The top image (0 degrees rotation, -90 degrees pitch) [5] The bottom image (0 degrees rotation, 90 degrees pitch)
flipTextures - flip textures vertically?public static final BranchGroup createSkyBoxGroup(java.lang.String[] textures)
textures - a six elemental array of Textures of the following form:
[0] The front image (0 degrees rotation, 0 degrees pitch) [1] The right image (90 degrees rotation, 0 degrees pitch) [2] The back image (180 degrees rotation, 0 degrees pitch) [3] The left image (270 degrees rotation, 0 degrees pitch) [4] The top image (0 degrees rotation, -90 degrees pitch) [5] The bottom image (0 degrees rotation, 90 degrees pitch)
public static final BranchGroup createSkyBoxGroup(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom,
boolean flipVertically)
front - The front image (0 degrees rotation, 0 degrees pitch)right - The right image (90 degrees rotation, 0 degrees pitch)back - The back image (180 degrees rotation, 0 degrees pitch)left - The left image (270 degrees rotation, 0 degrees pitch)top - The top image (0 degrees rotation, -90 degrees pitch)bottom - The bottom image (0 degrees rotation, 90 degrees pitch)flipVertically -
public static final BranchGroup createSkyBoxGroup(java.lang.String front,
java.lang.String right,
java.lang.String back,
java.lang.String left,
java.lang.String top,
java.lang.String bottom)
front - The front image (0 degrees rotation, 0 degrees pitch)right - The right image (90 degrees rotation, 0 degrees pitch)back - The back image (180 degrees rotation, 0 degrees pitch)left - The left image (270 degrees rotation, 0 degrees pitch)top - The top image (0 degrees rotation, -90 degrees pitch)bottom - The bottom image (0 degrees rotation, 90 degrees pitch)public static final BranchGroup createSkyBoxGroup(CubeTextureSet textureSet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||