• R/O
  • SSH

MMDLoaderJME: 提交

Java版MikuMikuDanceライブラリ


Commit MetaInfo

修訂77f7c35b0f1c43531b2f50f6abf575a77ef6b034 (tree)
時間2012-09-17 09:56:09
作者Kazuhiko Kobayashi <chototsu_ <moushinp@yaho...>
CommiterKazuhiko Kobayashi <chototsu_

Log Message

Change VMDFile constructor.
Change vbo mode stream to dynamic.

Change Summary

差異

diff -r 8d7645c7fe62 -r 77f7c35b0f1c src/projectkyoto/jme3/mmd/PMDSkinMesh.java
--- a/src/projectkyoto/jme3/mmd/PMDSkinMesh.java Sun Sep 02 03:40:08 2012 +0900
+++ b/src/projectkyoto/jme3/mmd/PMDSkinMesh.java Mon Sep 17 09:56:09 2012 +0900
@@ -120,7 +120,7 @@
120120 // newMesh.boneMatrixArray = new Matrix4f[boneMatrixArray.length];
121121 newMesh.skinvb2 = new VertexBuffer(VertexBuffer.Type.Position);
122122 FloatBuffer skinvfb2 = BufferUtils.clone((FloatBuffer)this.skinvb2.getData());
123- newMesh.skinvb2.setupData(VertexBuffer.Usage.Stream, 3, VertexBuffer.Format.Float, skinvfb2);
123+ newMesh.skinvb2.setupData(VertexBuffer.Usage.Dynamic, 3, VertexBuffer.Format.Float, skinvfb2);
124124
125125 // newMesh.skinnb2 = new VertexBuffer(VertexBuffer.Type.Normal);
126126 // FloatBuffer skinnfb2 = BufferUtils.clone((FloatBuffer)this.skinnb2.getData());
@@ -129,7 +129,7 @@
129129 VertexBuffer skinvb1 = new VertexBuffer(VertexBuffer.Type.Position);
130130 // FloatBuffer skinvfb1 = BufferUtils.clone((FloatBuffer)this.skinvb2.getData());
131131 FloatBuffer skinvfb1 = BufferUtils.clone((FloatBuffer)this.getBuffer(VertexBuffer.Type.Position).getData());
132- skinvb1.setupData(VertexBuffer.Usage.Stream, 3, VertexBuffer.Format.Float, skinvfb1);
132+ skinvb1.setupData(VertexBuffer.Usage.Dynamic, 3, VertexBuffer.Format.Float, skinvfb1);
133133 newMesh.clearBuffer(VertexBuffer.Type.Position);
134134 newMesh.setBuffer(skinvb1);
135135
diff -r 8d7645c7fe62 -r 77f7c35b0f1c src/projectkyoto/mmd/file/VMDFile.java
--- a/src/projectkyoto/mmd/file/VMDFile.java Sun Sep 02 03:40:08 2012 +0900
+++ b/src/projectkyoto/mmd/file/VMDFile.java Mon Sep 17 09:56:09 2012 +0900
@@ -51,6 +51,8 @@
5151 private VMDSkin skinArray[];
5252
5353 public VMDFile() {
54+ motionArray = new VMDMotion[0];
55+ skinArray = new VMDSkin[0];
5456 }
5557
5658 public VMDFile(URL url) throws IOException {
Show on old repository browser