artofillusion.texture
Class Texture3D

java.lang.Object
  extended by artofillusion.texture.Texture
      extended by artofillusion.texture.Texture3D
Direct Known Subclasses:
ProceduralTexture3D

public abstract class Texture3D
extends Texture


Field Summary
 
Fields inherited from class artofillusion.texture.Texture
BUMP_COMPONENT, DIFFUSE_COLOR_COMPONENT, DISPLACEMENT_COMPONENT, EMISSIVE_COLOR_COMPONENT, HILIGHT_COLOR_COMPONENT, SPECULAR_COLOR_COMPONENT, TRANSPARENT_COLOR_COMPONENT
 
Constructor Summary
Texture3D()
           
 
Method Summary
 boolean displacementMapped()
          Determine whether the texture is displacement mapped based on the value returned by getDisplacement().
 TextureMapping getDefaultMapping(Object3D object)
          For the default mapping, use a basic projection.
 double getDisplacement(double x, double y, double z, double xsize, double ysize, double zsize, double t, double[] param)
          Textures which use displacement mapping should override this method to return the displacement at the given point.
abstract  void getTextureSpec(TextureSpec spec, double x, double y, double z, double xsize, double ysize, double zsize, double angle, double t, double[] param)
          Get the surface properties at point in the texture.
abstract  void getTransparency(RGBColor trans, double x, double y, double z, double xsize, double ysize, double zsize, double angle, double t, double[] param)
           
 
Methods inherited from class artofillusion.texture.Texture
assignNewID, duplicate, edit, getAverageSpec, getID, getName, getParameters, getTypeName, hasComponent, setID, setName, usesImage, writeToFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Texture3D

public Texture3D()
Method Detail

getTextureSpec

public abstract void getTextureSpec(TextureSpec spec,
                                    double x,
                                    double y,
                                    double z,
                                    double xsize,
                                    double ysize,
                                    double zsize,
                                    double angle,
                                    double t,
                                    double[] param)
Get the surface properties at point in the texture. The properties should be averaged over a region around the point.

Parameters:
spec - the surface properties will be stored in this
x - the x coordinate at which to evaluate the texture
y - the y coordinate at which to evaluate the texture
z - the z coordinate at which to evaluate the texture
xsize - the range of x over which to average the surface properties
ysize - the range of y over which to average the surface properties
zsize - the range of z over which to average the surface properties
angle - the dot product of the view direction with the surface normal
t - the time at which to evaluate the surface properties
param - the texture parameter values at the point

getTransparency

public abstract void getTransparency(RGBColor trans,
                                     double x,
                                     double y,
                                     double z,
                                     double xsize,
                                     double ysize,
                                     double zsize,
                                     double angle,
                                     double t,
                                     double[] param)

getDefaultMapping

public TextureMapping getDefaultMapping(Object3D object)
For the default mapping, use a basic projection.

Specified by:
getDefaultMapping in class Texture

getDisplacement

public double getDisplacement(double x,
                              double y,
                              double z,
                              double xsize,
                              double ysize,
                              double zsize,
                              double t,
                              double[] param)
Textures which use displacement mapping should override this method to return the displacement at the given point.


displacementMapped

public boolean displacementMapped()
Determine whether the texture is displacement mapped based on the value returned by getDisplacement().



Copyright © 1999-2011 by Peter Eastman.