Comments (12)
Are you able to send the model over?
You can use try running on the major-cleanup
branch that is currently in PR #49. It's possible it has been fixed in that branch.
from obj2gltf.
i clone from your tree,then npm install,,,and node bin/obj2gltf.js -i xxx -o xxx,then appear error,and are you sure is correct?
from obj2gltf.
i find,when a plane more than 4 vertices,it can't convert,,,did your major clipping-up branch resolved?
from obj2gltf.
From above it seems like the npm install
may have failed.
Also if you have any problematic models you can upload them to github for me to check.
from obj2gltf.
thanks....undering files are the converted gltf file's showing image and the obj file,then you will find,there are some problem.....
Bar Stool 20.zip
from obj2gltf.
Thanks for sending it over.
I've seen this problem with #33 as well. Right now the code does not support faces that have more than 4 sides.
I'm reopening the issue since it seems like an important thing to consider.
from obj2gltf.
maybe undering link will help you....thanks,waiting for your success
support more than three vertices in one face
[fix this problem] (Fix OBJLoader to support more than three vertices in one face by yqrashawn · Pull Request #10917 · mrdoob/three.js · GitHub)
from obj2gltf.
maybe undering link will help you....thanks,waiting for your success
more than 3 vertices
from obj2gltf.
it is closed? due to my incorrect operation,,, ou my God...how to make it open?
from obj2gltf.
Another thing I noticed about this obj is that the mttllib line looks like:
mtllib Bar Stool 20.mtl
The obj format expects a format like:
mtllib filename1 filename2
So the converter treats each word "Bar", "Stool", and "20.mtl" as separate files to look for. It shouldn't be too hard to detect this case. But this explains why the materials and images aren't working.
from obj2gltf.
are you sure another model in correctly obj format has no problem like this?....
the issue about more than 4 vertices is going on,,,,,,i think it almost resolved,but we i devtools,it errors
from obj2gltf.
I'm closing this for now and linking to it to a new issue: #55
In the meantime you can use import and export the model from Blender which will turn all faces to triangles or quads.
Also consider fixing the mtl path above: #50 (comment)
from obj2gltf.
Related Issues (20)
- UV index 278144 is out of bounds HOT 2
- Blob is not defined at configureWebWorker HOT 5
- Loss of precision due to 32 bit floating point numbers
- Unlock cesium npm package from 1.84.0 HOT 2
- textures not loaded via mtl file HOT 2
- How can i use in Core PHP or LARAVEL?
- How to use obj2gltf at vite2?
- SyntaxError: Unexpected token '.' HOT 1
- losing colors when converting Obj->Glb/glTF HOT 1
- Install Error HOT 1
- include .mtl and textures in node js? HOT 1
- Add network path support
- JavaScript heap out of memory HOT 3
- Normal index 303 is out of bounds -causing socket hung and memory issue HOT 1
- Override texture flags not having any effect
- [suggestion] In obj2gltf, create a flag --doubleSidedMaterial to allow materials to be doubleSided regardless of transparency
- SyntaxError: Unexpected token '.' HOT 1
- glib? HOT 1
- Unpin mime and update to v4 or latest
- Emissive and base colors are incorrectly converted HOT 2
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 obj2gltf.