meslewis / simplegltf2 Goto Github PK
View Code? Open in Web Editor NEWA WIP deserializer / loader and viewer for GLTF2 written in Java.
License: MIT License
A WIP deserializer / loader and viewer for GLTF2 written in Java.
License: MIT License
This will be done along the way, with a focus after implementing all standard glTF2 features.
Core
Used for regression testing and comparing to other renderers
[LWJGL] 1048577 bytes leaked, thread 1 (main), address: 0x136D54C1040
at org.lwjgl.stb.STBImage.nstbi_load_from_memory(Native Method)
at org.lwjgl.stb.STBImage.stbi_load_from_memory(STBImage.java:259)
at org.lwjglx.debug.$Proxy$655.stbi_load_from_memory43(Unknown Source)
at com.meslewis.simplegltf2.simpleviewer.render.RenderTexture.loadData(RenderTexture.java:92)
at com.meslewis.simplegltf2.simpleviewer.GlUtil.loadImageToTexture(GlUtil.java:204)
at com.meslewis.simplegltf2.simpleviewer.GlUtil.setTexture(GlUtil.java:186)
at com.meslewis.simplegltf2.simpleviewer.GlUtil.setTexture(GlUtil.java:157)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.drawRenderObject(Renderer.java:315)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:162)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:172)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:172)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:172)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:172)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:172)
at com.meslewis.simplegltf2.simpleviewer.render.Renderer.draw(Renderer.java:141)
at com.meslewis.simplegltf2.simpleviewer.SimpleViewer.loop(SimpleViewer.java:397)
at com.meslewis.simplegltf2.simpleviewer.SimpleViewer.run(SimpleViewer.java:163)
at com.meslewis.simplegltf2.simpleviewer.SimpleViewer.main(SimpleViewer.java:528)
See https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/BoxAnimated for proper rotation.
Implementations can provide a callback function to indicate loading complete
Use git submodules for example models
Probably import sample models from a Khronos repo and iterate through them
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.