Comments (7)
Try adding --max-old-space-size=8192
right after node
and that will allow 8 gigs of RAM and you can tell if it's a memory issue.
from obj2gltf.
Running with
node --max-old-space-size=4096 bin/obj2gltf.js powerplant.obj -o a.gltf
And larger memory sizes avoid the crash; however, it returns quickly and does not generate a glTF model. Perhaps this is related to the MTL file?
from obj2gltf.
For me it doesn't work even with --max-old-space-size=16384
. It fails at fs.readFile
on the obj file, so I'll try out streams instead and see how it goes.
from obj2gltf.
Thanks @lilleyse! This will be useful for our Web3D tutorial.
from obj2gltf.
It looks like the power plant model uses negative face indices in a lot of places, which I didn't know the OBJ format even supported. So I hope handling that will get this to work.
f -1468758//-106815 -1468757//-106606 -1468749//-106724
f -1468758//-106815 -1468749//-106724 -1468750//-106808
f -1468757//-106606 -1468756//-106605 -1468748//-106603
f -1468757//-106606 -1468748//-106603 -1468749//-106724
f -1468756//-106605 -1468755//-106604 -1468747//-106602
f -1468756//-106605 -1468747//-106602 -1468748//-106603
f -1468755//-106604 -1468754//-107067 -1468746//-106601
from obj2gltf.
Fixed in #49
Converts with the --bypassPipeline
flag. Still too large to be handled by gltf-pipeline
however.
from obj2gltf.
You should write up a copy of this issue for gltf-pipeline
so we fix it there too.
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.