Example usages for MCglTF
https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0#gltf-20-sample-models
- Boom Box and Water Bottle by Microsoft
- Cesium Man by Cesium
In order to adapt into BSL Shaders' SEUS/Old PBR format, some change were made:
- All normal textures had been converted from OpenGL format (Y+) to DirectX format (Y-) by flipping green channel.
Occlusion(R)Roughness(G)Metallic(B)
textures andEmissive color(RGB)
textures had been edited and combined intoGlossiness(R)Metallic(G)Emissive strength(B)
textures for specular map.
- Before build MCglTF for developmental environment. There is two ways you can choose to avoid gradle compilation error for OptiFine code reference.
- Simply remove any OptiFine code reference in MCglTF.java.
- Or download OptiFine and delete everything except files and folders inside
notch/net/optifine/
of OptiFine JAR. Move all files and folders fromnotch/net/optifine/
tonet/optifine/
, which means thenet
folder is now in the root of OptiFine JAR. Then put modified OptiFine JAR into a newly created folder namedlibs
in the same dir level assrc
of MCglTF project.
- Build MCglTF with "gradlew jar" to create a deobuscated version of MCglTF.
- Create a folder named
libs
in the same dir level assrc
of MCglTF-Example project. - Put deobuscated version of MCglTF into the
libs
folder. - In Eclipse IDE, add MCglTF jar as
Referenced Libraries
viaProject > Properties > Java Build Path > Libraries > Add JARs
.
Using Curse Maven to add MCglTF into project via build.gradle