|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object WorldModuleTexturingUtil
public class WorldModuleTexturingUtil
utility class that can be used by WorldModule
s
to generate texture coordinates
Method Summary | |
---|---|
static List<List<VectorXZ>> |
globalTexCoordLists(Collection<TriangleXYZ> triangles,
Material material,
boolean vertical)
variant of globalTexCoordLists(List, Material, boolean)
based on a triangle collection |
static List<List<VectorXZ>> |
globalTexCoordLists(List<VectorXYZ> vs,
Material material,
boolean vertical)
creates texture coordinates based only on the vertex coordinates in the global coordinate system and the texture size |
static List<List<VectorXZ>> |
slopedFaceTexCoordLists(Collection<TriangleXYZ> triangles,
Material material)
creates texture coordinates for triangles that orient the texture based on each triangle's downward slope. |
static List<List<VectorXZ>> |
wallTexCoordLists(List<VectorXYZ> vs,
Material material)
creates texture coordinates for a triangle strip, based on the length along a wall from the starting point, height of the vertex, and texture size. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final List<List<VectorXZ>> globalTexCoordLists(List<VectorXYZ> vs, Material material, boolean vertical)
vertical
- uses x,y coordinates instead of x,z coordinatespublic static final List<List<VectorXZ>> globalTexCoordLists(Collection<TriangleXYZ> triangles, Material material, boolean vertical)
globalTexCoordLists(List, Material, boolean)
based on a triangle collection
vertical
- TODOpublic static final List<List<VectorXZ>> slopedFaceTexCoordLists(Collection<TriangleXYZ> triangles, Material material)
public static final List<List<VectorXZ>> wallTexCoordLists(List<VectorXYZ> vs, Material material)
vs
- wall vertices, ordered along the wall, for a triangle strip
alternating between upper and lower vertex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |