Comments (7)
you need to run gradlew dist
, you'll find the jar file in demo/desktop/build/libs folder.
due to old gradle version, i'm not sure you can use latest java versions, should be fine with java 8 though.
Let me know if it works for you, i'll add it to the readme.
Thank you for your feedback.
from gdx-gltf.
I can reproduce the issue (sorry about that), it's a timing issue with remote loading models from khronos github (default mode) so it'd better to use local mode, see how to run it locally.
Since the demo was mainly here for testing purpose, i didn't hardly tested all the cases recently. However, it becomes useful and considered more as a "GLTF model viewer" so i should probably totally reconsider this loading process.
from gdx-gltf.
I should have included the output (including stack trace) before. It shows that the NPE is encountered when parsing morphing.gltf
[GLTFDemo] loading morphing.gltf
[GLTFDemo] loaded models/Morphing/glTF/morphing.gltf
[GLTF Inspector] [Scene Graph] scenes:1 nodes:1 empty:0
[GLTF Inspector] [Mesh] count:1 parts:1 Vertices:216 Tris:108 Rendered:108
[GLTF Inspector] [Materials] count:1
Exception in thread "LWJGL Application" java.lang.NullPointerException
at net.mgsx.gltf.demo.GLTFDemo.validateShaders(GLTFDemo.java:596)
at net.mgsx.gltf.demo.GLTFDemo.render(GLTFDemo.java:914)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:233)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:128)
edit: sorry I read the "about JAR name" message and somehow missed the previous one about running locally
from gdx-gltf.
Thanks very much for your support. I've built the demo and downloaded the glTF samples, and can now easily run on desktop. 👌
from gdx-gltf.
Okay I got it running with
./gradlew clean :demo:desktop:dist
# or just `gradlew dist` to build the whole thing, as mentioned, but then I had to set up the Android sdk
java -jar demo/desktop/build/libs/desktop-0.0.1-SNAPSHOT.jar
But I got an NPE from GLTFDemo. I put in an assertion and found that rootModel is null on line 596, but the name of the jar is different than expected. Am I doing it right?
from gdx-gltf.
about JAR name, it doesn't matter, i rename it when attaching to a release to avoid changes in documentation.
from gdx-gltf.
i'm keeping it open because of the bug in the demo and lack of documentation, just as a reminder for me :-)
from gdx-gltf.
Related Issues (20)
- Model loading error: "Cannot read field "size" because "group" is null"
- Cascade Shadow Map shows shadow "clamping" when enabled HOT 1
- The GlbExporter is missing. HOT 5
- Ability to use custom DirectionalShadowLight into CascadeShadowMap
- Systematic OpenGL error when using unlit material in combination with CSM
- Cannot use pattern matching in instanceof due to "sourceCompatibility = 1.8" in gradle build HOT 1
- Native memory leak: pixmaps are never released HOT 4
- IBL: ability to create different sized maps for Skybox and radiance HOT 1
- Specular color texture is never passed to the PBR shader HOT 2
- Android error on reading gltf files when minify is enabled HOT 5
- the android module is disabled and app can not run success
- Model transparent sorting HOT 1
- RFE: Implement support for C_UINT, unsigned integer indices
- GLTF extensions: KHR_mesh_quantization
- Fix Cascaded Shadow Maps on WebGL HOT 2
- SkyBox exception HOT 1
- MeshLoader. Add model file name to message [suggestion] HOT 1
- Add support for hiding mesh parts HOT 1
- Ability to pass a custom RenderableSorter to TransmissionSource batch
- Pixmaps: novel about unpredictable disposing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdx-gltf.