Comments (4)
gltfjsx doesn't change or modify the data. it just structures it a bit with short access jsx, but the actual buffergeom comes directly from THREE.GLTFLoader. the whole "trick" of this lib is simply that it creates a look-up table. you can doublecheck by rendering:
const gltf = useLoader(GLTFLoader, url)
return <primitive object={gltf.scene} dispose={null} />
which just puts the scene into the graph without touching it. that should give you the same glitches. it's probably related to compression, or there is still some topology problem.
this for instance to me looks like an artifact:
from gltfjsx.
Yeah, I see those artifacts in Blender but they look different the ones in the browser. I was a bit confused about how they related to each other, if they did at all, as I don't have much experience with 3d models, blender, gltf.
Okay with <primitive>
I get similar artifacts so it is not gltfjsx.
Happy to close this issue then since it's not related :)
from gltfjsx.
i believe what you see in blender is unrelated because the model is still going to get triangulated in gltf. in blender you have quads and ngons. maybe try triangulating in blender yourself: edit mode, sel all, face > triangulate. perhaps that reveals the topology problem. if you figure it out would be nice to hear what it was b/c i often get the same problems and im a complete beginner with that blender gltf stuff.
from gltfjsx.
ahh thanks for the tip regarding triangulate. i noticed one of the vertixes was sticking out, although it didn't seem to fix my problem.
i noticed that the sharp edges were a bit inconsistent, and after playing around with them it seems to be related.
with every edge marked as sharp:
with no smart edges:
both have artifacts of their own so it's not a finished solution but i'll keep digging and let you know if i solve it :)
from gltfjsx.
Related Issues (20)
- TypeError: objectInfluences is undefined HOT 5
- Application error: a client-side exception has occurred (see the browser console for more information). HOT 2
- Question: How can I allow users to change the node's surface colour HOT 1
- Model gets deformed when being converted HOT 1
- v6.2.12 - Cannot read properties of undefined (reading 'length') HOT 2
- stylelint fails with meow
- Typescript Errors in Web version and CLI using `--types` option HOT 3
- The instance all option generates code that doesn't work with animations. HOT 1
- new feature - skeleton programmatically HOT 1
- Uncaught TypeError: objectInfluences is undefined HOT 2
- Expose materials attributes/properties / Explode materials
- Using gltfjsx in Next.js - No "exports" main defined in /node_modules/@monogrid/gainmap-js/package.json
- Parsing input arbitrary three.js scene graph to component tree HOT 3
- How to rewrite gltfjsx generated jsx file to separate geometry and material HOT 1
- instruction for installation in documentation 😔❌ HOT 2
- Unit testing - gltfjsx created components
- TypeError while using gltfjsx to an animated model: Cannot read properties of null (reading 'array') HOT 2
- Could not load /animatedmodel.glb: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
- --transform option on an animated model doesn't work anymore as it thinks the --instance option is on when it isn't. HOT 1
- default generated tsx code problems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltfjsx.