Add default config for glb loader
This commit is contained in:
parent
11a647a3d4
commit
0d8b86b66f
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
|||||||
**/.classpath
|
**/.classpath
|
||||||
**/.settings
|
**/.settings
|
||||||
**/.project
|
**/.project
|
||||||
|
**/out
|
||||||
/.gradle/
|
/.gradle/
|
||||||
/.nb-gradle/
|
/.nb-gradle/
|
||||||
/.idea/
|
/.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.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
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user