Git Product home page Git Product logo

Comments (6)

Insopitus avatar Insopitus commented on May 25, 2024 1

Okay, I will give this a try next Monday.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on May 25, 2024

As far as I know these legacy formats are from pre release (version 0) variants of the 3d tiles specification which are not supported. Even if the legacy header did parse the gltf contents contained within the file are also a legacy 1.0 version which the three.js library cannot parse, anyway:

"asset":{
  "generator":"infoearth",
  "premultipliedAlpha":true,
  "profile":{"api":"webgl","version":"1.0.2"},
  "version":1
}

You'll have to upgrade your files if you'd like to use them with this project.

from 3dtilesrendererjs.

Insopitus avatar Insopitus commented on May 25, 2024

Would there be options to use custom loaders for parsing and decoding rather than the default ones? I have written a gltf 1.0 parser and b3dm parser that supports legacy headers. For now, I want to migrate to 3DTilesRendererJS but still need to support the legacy model files. I could modify the source code of 3DTilesRendererJS to meet the requirements. It would be better to directly use the library so it's easier to keep up with future updates though.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on May 25, 2024

I'll have to think about this - maybe supporting the ability to get a loader constructor from LoadingManager.getHandler? But generally I don't love the idea of adding a feature just to enable support long-deprecated, pre-release file formats. Even the newer B3DM version and the other original 3d tiles geometry formats (PNTS, I3DM, CMPT) are deprecated in favor of glTF. Is there no Cesium tool or something that will migrate a format to a newer version of the format?

from 3dtilesrendererjs.

Insopitus avatar Insopitus commented on May 25, 2024

Yes, there actually is one by the Cesium team.

But the upgrade failed for our models. Still looking for the reason why it doesn't work though.

Also, we have lots of legacy format models stored here and there. Migrating them all would be painful, not to mention the possible side-effects in the migration.

The LoadingManager.getHandler approach looks neat.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on May 25, 2024

The LoadingManager.getHandler approach looks neat.

If you'd like to make a PR that implements this solution we can see how it looks and possibly get it added.

from 3dtilesrendererjs.

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.