XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt.models
Class ThreeDStudioFile

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Renderable
      extended byorg.autochthonous.graphics.rt.objects.Aggregate
          extended byorg.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.


Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Constructor Summary
ThreeDStudioFile(World world, java.lang.String geometry)
           
 
Method Summary
static Aggregate getInstance(World world, RMLReader in)
           
protected  void processObject(java.lang.Object obj)
           
protected  void processParameters(ParametersMap params)
           
 
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
 

Constructor Detail

ThreeDStudioFile

public ThreeDStudioFile(World world,
                        java.lang.String geometry)
                 throws java.io.IOException
Method Detail

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

XJRT Rendering Toolkit 1.0b06