Bitmap Camera Example Scene

Class Drape

java.lang.Object
  |
  +--Cloth
        |
        +--Drape

public class Drape
extends Cloth

This class implements the silk drape, its texture, and the bitmap camera used to create its image-based lighting.

See Also:
Serialized Form

Constructor Summary
Drape(WTStage s, WTGroup a)
          Constructor
 
Method Summary
 void destroy()
          Class destructor
 void update(float dt, float eventTime)
          Updates wind strength and particle positions, and sets patch points to particle locations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drape

public Drape(WTStage s,
             WTGroup a)
Constructor

Parameters:
s - The main stage
a - The level object, which can be a WTStudio level, or an actor cast to a group. This object must be fully loaded before the constructor is called. Note that the drape hangs down in relation to 3dsmax's coordinate system; if you're using WTStudio, you will need to rotate your model node to correctly position the drape.
Method Detail

destroy

public void destroy()
Class destructor


update

public void update(float dt,
                   float eventTime)
Updates wind strength and particle positions, and sets patch points to particle locations

Parameters:
dt - Time in seconds since the last render
eventTime - Current time in milliseconds

Bitmap Camera Example Scene