Giter Site home page Giter Site logo

Comments (7)

mgsx-dev avatar mgsx-dev commented on May 9, 2024 3

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.

mgsx-dev avatar mgsx-dev commented on May 9, 2024 1

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.

travisfw avatar travisfw commented on May 9, 2024 1

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.

travisfw avatar travisfw commented on May 9, 2024 1

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.

travisfw avatar travisfw commented on May 9, 2024

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.

mgsx-dev avatar mgsx-dev commented on May 9, 2024

about JAR name, it doesn't matter, i rename it when attaching to a release to avoid changes in documentation.

from gdx-gltf.

mgsx-dev avatar mgsx-dev commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.