j3d.examples.appearance.texture
Class TexureMapHeightFieldMain

java.lang.Object
  extended by j3d.examples.appearance.texture.TexureMapHeightFieldMain
All Implemented Interfaces:
java.lang.Runnable

public class TexureMapHeightFieldMain
extends java.lang.Object
implements java.lang.Runnable

This example illustrates dynamic texture coordinate generation using the TexCoordGeneration class. The OBJECT_LINEAR, EYE_LINEAR and SPHERE_MAP modes are illustrated. The application creates a DEM landscape (from a sin/cos curve) and uses dynamic texture coordinate generation to map contours onto the landscape - either relative to its relative position (OBJECT_LINEAR) or absolute position (EYE_LINEAR). SPHERE_MAP maps the contours onto the landscape as a environment map. The "Rotate" and "Translate" buttons toggle two Interpolators that rotate and translate the entire scene respectivly.


Constructor Summary
TexureMapHeightFieldMain()
           
 
Method Summary
static javax.media.j3d.TexCoordGeneration getTextureCoordinates(double yMaxHeight)
           
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TexureMapHeightFieldMain

public TexureMapHeightFieldMain()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getTextureCoordinates

public static javax.media.j3d.TexCoordGeneration getTextureCoordinates(double yMaxHeight)

main

public static void main(java.lang.String[] args)