|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectm3g06.EnvironmentMap
public class EnvironmentMap
Calculates environment mapping coordinates by using a mesh's normals as texture coordinates.
EnvironmentMappingSample| Field Summary | |
|---|---|
private javax.microedition.m3g.Mesh |
mesh
Reference to mesh that has environment mapping applied. |
private javax.microedition.m3g.Transform |
textureTransform
Current generic texture transformation. |
| Constructor Summary | |
|---|---|
EnvironmentMap(javax.microedition.m3g.Mesh mesh)
Constructs a new environment map for the given mesh with normalization enabled. |
|
EnvironmentMap(javax.microedition.m3g.Mesh mesh,
boolean normalize,
float scale)
Constructs a new environment map for the given mesh. |
|
| Method Summary | |
|---|---|
void |
transform(float cameraX,
float cameraY,
float cameraZ,
float modelX,
float modelY,
float modelZ)
Updates the texture coordinates. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.microedition.m3g.Mesh mesh
private javax.microedition.m3g.Transform textureTransform
| Constructor Detail |
|---|
public EnvironmentMap(javax.microedition.m3g.Mesh mesh)
mesh - mesh for environment mapping.EnvironmentMap(Mesh, boolean, float)
public EnvironmentMap(javax.microedition.m3g.Mesh mesh,
boolean normalize,
float scale)
mesh - mesh for environment mapping.normalize - enables/disables normalization.scale - scale of mesh normals.| Method Detail |
|---|
public void transform(float cameraX,
float cameraY,
float cameraZ,
float modelX,
float modelY,
float modelZ)
cameraX - camera rotation around the x axis.cameraY - camera rotation around the y axis.cameraZ - camera rotation around the z axis.modelX - model rotation around the x axis.modelY - model rotation around the y axis.modelZ - model rotation around the z axis.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||