|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.AbstractMesh
de.rico.engine.geometry.MeshVA
de.rico.engine.geometry.modelloader.ms3d.ModelMS3DAscii
public class ModelMS3DAscii
A MilkshapeModel represents a Milkshape 3D model. Currently, it can only load the exported ascii text version of an MD3D model. In the future, the binary version may be supported, but there really is no need for it because it does not matter how long it takes to load the animation. Loading should take place at game startup. If speed becomes extremely important in the future, the binary loader may be an option, or serialized models is another option. Unless someone contributes a binary loader or add the nehe lwjgl port of the binary loader that actually loads multiple texture correctly :) The model can also draw itself, fully textured, to OpenGL via JOGL. Bone animation is also supported. SPECIAL THANKS: Animation method was ported by naj from a MSVC++ Model Viewer tutorial written by Mete Ciragan (creator of Milkshape). Found at: http://mypage.iu.edu/~natjohns/najgl/
Constructor Summary | |
---|---|
ModelMS3DAscii()
Creates a new Milkshape 3D ASCII model object. |
|
ModelMS3DAscii(BoundingVolume type)
Creates a new 3DS mesh object. |
Method Summary | |
---|---|
java.lang.String |
getFilePath()
Returns the file path of the model file used. |
void |
load(java.lang.String modelFile,
float scale)
This method loads a model from the specified file. |
Methods inherited from class de.rico.engine.geometry.MeshVA |
---|
addAnimation, addFaces, destroy, draw, finishModel, getAnimation, getAnimations, getCurrentAnimation, getFaces, getFacesTransformed, getTotalFrameCount, removeAnimation, setAnimation, specializedDraw, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelMS3DAscii()
public ModelMS3DAscii(BoundingVolume type)
type
- value from the BoundingVolume enumerationMethod Detail |
---|
public java.lang.String getFilePath()
ImportableModelIface
getFilePath
in interface ImportableModelIface
public void load(java.lang.String modelFile, float scale)
ImportableModelIface
load
in interface ImportableModelIface
modelFile
- path to the model filescale
- scale factor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |