I am not sure, but maybe you should try to start your applications like: java -Xms256m -Xmx512m gamePackage.GameTest You can change the values to something really high if you need more memory.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote
GenericVertexController.getSourceMesh()
Description copied from interface: IVertexController
Returns the source mesh's vertex data, i.e. the vertex-data that needs modification. Every SimpleVector in this array represents a vertex in the mesh. However, there's no information which vertex exactly (because they don't have ids or something).
Read the data from this array, but don't modify it.
//simply merges all of the meshes together
public static Object3D meshMerge(Object3D[] arrayObject3D){
Object3D resultingObject3D = new Object3D(0);
for(int i=0; i<arrayObject3D.length; i++){
Object3D tempObject3D = arrayObject3D[i];
resultingObject3D = Object3D.mergeObjects(resultingObject3D, tempObject3D);
}
return resultingObject3D;
}
public void initAnimation(){
this.animation = new Animation(3);
this.animation.addKeyFrame(meshMerge(Loader.load3DS("man01.3ds", 1)).getMesh());
this.animation.addKeyFrame(meshMerge(Loader.load3DS("man02.3ds", 1)).getMesh());
this.animation.addKeyFrame(meshMerge(Loader.load3DS("man03.3ds", 1)).getMesh());
}
Page created in 0.019 seconds with 10 queries.