Add default config for glb loader

empirephoenix-patch-1
Nehon 7 years ago
parent 11a647a3d4
commit 0d8b86b66f
  1. 1
      .gitignore
  2. 1
      jme3-core/src/main/resources/com/jme3/asset/General.cfg
  3. 4
      jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java

1
.gitignore vendored

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

@ -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.gltf.GltfLoader : gltf
LOADER com.jme3.scene.plugins.gltf.BinLoader : bin
LOADER com.jme3.scene.plugins.gltf.GlbLoader : glb

@ -22,9 +22,6 @@ public class GlbLoader extends GltfLoader {
int magic = stream.readInt();
int version = 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;
@ -37,7 +34,6 @@ public class GlbLoader extends GltfLoader {
if (chunkType == JSON_TYPE) {
json = new byte[chunkLength];
stream.read(json);
System.err.println(new String(json));
} else {
byte[] bin = new byte[chunkLength];
stream.read(bin);

Loading…
Cancel
Save