question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jgltf-model tests do not pass

See original GitHub issue

Cloning a fresh copy of this repo produces errors when running mvn compile package due to test failures in jgltf-model. The buffers of the generated models do not match the expected values, it seems. Replicated on two machines with completely different configurations.

I don’t know enough about this code, yet, to know what is actually causing this.

Using Java 10 on one machine and Java 9 on another.

output.txt

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
javaglcommented, Jul 16, 2018

Note that this is not about the JSON part. (This case is already handled). This is about the GLSL files. These files are read and converted into a base64 string for the embedded glTF. The point is that the base64 string representations of the GLSL shader code differ, because the shader code is once read from a file with \r\n and once from a file with \n line endings.

(However, the GLSL code could also be written in a single line - that’s another option that I considered. I’ll basically have to figure out the “least ugly” option here…)

0reactions
Sailsman63commented, Oct 27, 2020

Sounds like very good sense.

Thanks for the responsiveness on such an old issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot load a GLTF model in a unit test - three.js forum
Hi, I'm currently writing unit tests for my app and am running into some issues getting the models to load. Here is what...
Read more >
GLTF Loader not working and doesn't load 3D model
js , OrbitControls and GLTFLoader are ES6 modules. In this case, you can create an instance of GLTFLoader without the THREE namespace. Same...
Read more >
cx20/gltf-test: Testing the glTF Loader and WebGL Library
The number of tests is approximate. Format Tests. Test environment : Windows 11 + Chrome 108. Format and Sample Model, Three.js r147 ...
Read more >
How to Load a 3D model in Three.js - YouTube
In this video, I show you how to load a 3D model ( gltf /glb) in your browser using the GLTFLoader class in...
Read more >
How to Import GLTF Models in Three.js - YouTube
In this coding tutorial, we go over importing GLTF models in Three JS. We start off by learning when it is useful to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found