Giter Site home page Giter Site logo

Comments (6)

donmccurdy avatar donmccurdy commented on July 18, 2024

@dennis-modelsend could you expand on what you mean by "load this model through gltf-transform"? Do you mean simply read/write without changes? Testing that on the CLI:

gltf-transform cp input.glb output.glb

The scene has the same bounds before and after:

# name rootName bboxMin bboxMax
0 Sketchfab_Scene Sketchfab_model -47.82007, -47.82007, -79.41164 47.82007, 47.82007, -1.26045
# name rootName bboxMin bboxMax
0 Sketchfab_Scene Sketchfab_model -47.82007, -47.82007, -79.41164 47.82007, 47.82007, -1.26045

To investigate this I'll need to be able to reproduce it, and knowing the version of glTF Transform used, and complete steps to reproduce, would be helpful.

from gltf-transform.

dennis-modelsend avatar dennis-modelsend commented on July 18, 2024

@donmccurdy I use threejs FileLoader then use @gltf-transform/core WebIO.readBinary and writeBinary without any transforms

from gltf-transform.

dennis-modelsend avatar dennis-modelsend commented on July 18, 2024

Using 4.0.0-alpha.8

from gltf-transform.

donmccurdy avatar donmccurdy commented on July 18, 2024

@dennis-modelsend I've had a quick go at this, and I'm not immediately able to reproduce any issue. If you can share full reproduction steps — a demo, or complete code — I can investigate further. I'm happy to spend time investigating the bug, but would prefer not to spend time guessing what your code looks like. Occasionally, the cause of a bug can be something as non-obvious as the bundler configuration.

from gltf-transform.

dennis-modelsend avatar dennis-modelsend commented on July 18, 2024

Found the issue while writing the demo, I was only calling updateMatrixWorld on only one of the objects ... thank you for the help Don

from gltf-transform.

donmccurdy avatar donmccurdy commented on July 18, 2024

@dennis-modelsend ah sorry, that's the least fun kind of bug! Note that THREE.GLTFLoader in r163 will start doing updateMatrixWorld automatically before returning the scene:

from gltf-transform.

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.