Add default config for glb loader

This commit is contained in:
Nehon 2017-12-24 22:16:18 +01:00
parent 11a647a3d4
commit 0d8b86b66f
3 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
**/.classpath **/.classpath
**/.settings **/.settings
**/.project **/.project
**/out
/.gradle/ /.gradle/
/.nb-gradle/ /.nb-gradle/
/.idea/ /.idea/

View File

@ -25,3 +25,4 @@ LOADER com.jme3.shader.plugins.GLSLLoader : vert, frag, geom, tsctrl, tseval, gl
LOADER com.jme3.scene.plugins.fbx.FbxLoader : fbx LOADER com.jme3.scene.plugins.fbx.FbxLoader : fbx
LOADER com.jme3.scene.plugins.gltf.GltfLoader : gltf LOADER com.jme3.scene.plugins.gltf.GltfLoader : gltf
LOADER com.jme3.scene.plugins.gltf.BinLoader : bin LOADER com.jme3.scene.plugins.gltf.BinLoader : bin
LOADER com.jme3.scene.plugins.gltf.GlbLoader : glb

View File

@ -22,9 +22,6 @@ public class GlbLoader extends GltfLoader {
int magic = stream.readInt(); int magic = stream.readInt();
int version = stream.readInt(); int version = stream.readInt();
int length = stream.readInt(); int length = stream.readInt();
System.err.println(magic == GLTF_MAGIC ? "gltf" : "no no no");
System.err.println(version);
System.err.println(length);
byte[] json = null; byte[] json = null;
@ -37,7 +34,6 @@ public class GlbLoader extends GltfLoader {
if (chunkType == JSON_TYPE) { if (chunkType == JSON_TYPE) {
json = new byte[chunkLength]; json = new byte[chunkLength];
stream.read(json); stream.read(json);
System.err.println(new String(json));
} else { } else {
byte[] bin = new byte[chunkLength]; byte[] bin = new byte[chunkLength];
stream.read(bin); stream.read(bin);