Skinned animation now works, although there are still some optimizations
to be made. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4027 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -71,16 +71,6 @@ public class ModelMesh extends TriMesh
|
||||
super(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and populates a mesh.
|
||||
*/
|
||||
public ModelMesh (
|
||||
String name, FloatBuffer vertices, FloatBuffer normals,
|
||||
FloatBuffer colors, FloatBuffer tcoords, IntBuffer indices)
|
||||
{
|
||||
super(name, vertices, normals, colors, tcoords, indices);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures this mesh based on the given (sub-)properties.
|
||||
*/
|
||||
@@ -138,7 +128,7 @@ public class ModelMesh extends TriMesh
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override // documentation inherited
|
||||
public void reconstruct (
|
||||
FloatBuffer vertices, FloatBuffer normals, FloatBuffer colors,
|
||||
FloatBuffer textures, IntBuffer indices)
|
||||
@@ -152,7 +142,7 @@ public class ModelMesh extends TriMesh
|
||||
_indexBufferSize = (indices == null) ? 0 : indices.capacity();
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override // documentation inherited
|
||||
public void reconstruct (
|
||||
FloatBuffer vertices, FloatBuffer normals, FloatBuffer colors,
|
||||
FloatBuffer textures)
|
||||
@@ -203,6 +193,12 @@ public class ModelMesh extends TriMesh
|
||||
_transparent = in.readBoolean();
|
||||
}
|
||||
|
||||
// documentation inherited from interface ModelSpatial
|
||||
public void setReferenceTransforms ()
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
// documentation inherited from interface ModelSpatial
|
||||
public void resolveTextures (TextureProvider tprov)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user