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.

JSON models need to be replaced

See original GitHub issue

There are 30+ examples that render legacy Geometry because JSONLoader returns Geometry.

We will need to use a different loader in these examples – one that returns BufferGeometry. That means the following models either need to be converted to another format or replaced with a different model.

models/json:

models/animated:

models/skinned:

  • (#14781) ~models/skinned/simple/simple.js~
  • (#15132) ~models/skinned/knight.js~

Suggestions?

EDIT: Edited by @donmccurdy and @Mugen87 to track progress.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
WestLangleycommented, Oct 27, 2018

Agreed. That example uses legacy Geometry and can now be removed.

Many thanks to those who helped with this!

Closing.

4reactions
Mugen87commented, Aug 18, 2018

I vote to convert the models to glTF. We could import them in the editor and then use the Export GLB option.

BTW: At some point, we might want to consider to move GLTFLoader into the core. Since it is the recommended 3D format of the project, it’s only consequent to provide the corresponding loader in the main build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to replace an ODataModel by a JSON Model - SAP Blogs
First, you have to replace the ODataModel by a JSONModel. The function createAlertListWith2Alerts creates a JSON Model with 2 Alerts.
Read more >
How to Model Data: A Guide To JSON Data Modeling
This informative guide will provide a refresher on JSON and teach you how to model data using JSON. Be sure to check out...
Read more >
Editing your model in json while keeping a reference to the ...
I have a function where I need to calculate something on the client side and change this in my model: var parsedJSON =...
Read more >
Understanding JSON Modeling Simplified 101 - Hevo Data
In this article, you will learn about JSON Modeling and how it's different from Relational data model. Also, read about JSON Modeling ......
Read more >
JSON methods, toJSON - The Modern JavaScript Tutorial
The JSON (JavaScript Object Notation) is a general format to represent values and ... But if we need to fine-tune the replacement process, ......
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