org.autochthonous.graphics.rt.models
Class ThreeDStudioFile
java.lang.Object
org.autochthonous.graphics.rt.Renderable
org.autochthonous.graphics.rt.objects.Aggregate
org.autochthonous.graphics.rt.models.ThreeDStudioFile
- All Implemented Interfaces:
- java.lang.Cloneable, ColorCalculator, Illuminated, Traceable
- public class ThreeDStudioFile
- extends Aggregate
a parser for the old 3D Studio files.
<ThreeDStudioFile geometry="ant.3ds" ignore="materials"/>
or
<ThreeDStudioFile geometry="ant.3ds">
<Plastic name="body" diffuse="1.0, 0.0, 0.0"/>
</ThreeDStudioFile>
If the ignore flag (by default empty) includes the keyword materials
the default shader will be used instead of a generated one from the 3ds file.
If shaders are specified within the body of the file object they replace the
standard 3ds style shader for materials which have the same name.
Methods inherited from class org.autochthonous.graphics.rt.objects.Aggregate |
add, add, add, add, affectingAtmospheres, affectingAtmospheres, atmospheres, bBox, getInstance, intersections, isIntersected, isShadowing, lights, objectCount, shaders, traceables, visibleLights, visibleLights |
Methods inherited from class org.autochthonous.graphics.rt.Renderable |
clone, createObjectSpaceRay, getColor, getColor, getShader, hasShader, isSelfShadowing, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transform, transformNormal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.autochthonous.graphics.rt.Traceable |
clone |
ThreeDStudioFile
public ThreeDStudioFile(World world,
java.lang.String geometry)
throws java.io.IOException
getInstance
public static Aggregate getInstance(World world,
RMLReader in)
throws java.io.IOException
- Throws:
java.io.IOException
processObject
protected void processObject(java.lang.Object obj)
- Overrides:
processObject
in class Renderable
processParameters
protected void processParameters(ParametersMap params)
- Overrides:
processParameters
in class Renderable