artofillusion.texture
Class Texture3D
java.lang.Object
artofillusion.texture.Texture
artofillusion.texture.Texture3D
- Direct Known Subclasses:
- ProceduralTexture3D
public abstract class Texture3D
- extends Texture
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 |
Texture3D
public Texture3D()
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 thisx
- the x coordinate at which to evaluate the texturey
- the y coordinate at which to evaluate the texturez
- the z coordinate at which to evaluate the texturexsize
- the range of x over which to average the surface propertiesysize
- the range of y over which to average the surface propertieszsize
- the range of z over which to average the surface propertiesangle
- the dot product of the view direction with the surface normalt
- the time at which to evaluate the surface propertiesparam
- 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.