GithubHelp home page GithubHelp logo

Comments (5)

joergjaeckel avatar joergjaeckel commented on July 21, 2024 1

Had exactly the same problem and just solved it by clearing position, rotation and scale in Blender. Without clearing, the meshes inside the group had position and rotation props set. Showed correct in the online viewer but not local in r3f (Removing props did not help really)

from gltfjsx.

drcmda avatar drcmda commented on July 21, 2024

try a higher precision, that is most likely it. for really, really small models this can make a difference. it defaults to 2 digits.

scratch that, i see you did. will look into it later, something must cause it ... 🤔

from gltfjsx.

stackola avatar stackola commented on July 21, 2024

I'll just let you know we worked around the issue somehow, and it's related to animations. With a cleaner animation setup in blender, the exported GLTF works just fine with gltfjsx

from gltfjsx.

drcmda avatar drcmda commented on July 21, 2024

these would also work with larger precision, it's a cli flag: --precision=6

but maybe there's a way it can be automated. anyone knows how i could test that cutting it to n digits would cut off floating point numbers? or something like a calculation that returns the smallest amount of numbers?

from gltfjsx.

technoo0 avatar technoo0 commented on July 21, 2024

@joergjaeckel it worked for me also just applied the scale and rotation in blender and I worked this is the blender docs
https://docs.blender.org/manual/en/2.79/editors/3dview/object/editing/transform/clear_apply.html#apply

from gltfjsx.

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.