Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power plant model does not convert #2

Closed
pjcozzi opened this issue Oct 20, 2015 · 7 comments
Closed

Power plant model does not convert #2

pjcozzi opened this issue Oct 20, 2015 · 7 comments
Labels

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 20, 2015

Model: http://graphics.cs.williams.edu/data/meshes.xml

$ node bin/obj2gltf.js powerplant.obj

#
# Fatal error in d:\jenkins\workspace\nodejs-msi-julien\d8c2e2bb\deps\v8\src/handles.h, line 48
# CHECK(location_ != NULL) failed
#

Is it just out of memory?

@mramato
Copy link
Contributor

mramato commented Oct 20, 2015

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.

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Jun 20, 2016

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?

@lilleyse
Copy link
Contributor

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.

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Jun 20, 2016

Thanks @lilleyse! This will be useful for our Web3D tutorial.

@lilleyse
Copy link
Contributor

lilleyse commented Jun 22, 2016

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

@pjcozzi pjcozzi added the bug label Jan 3, 2017
@lilleyse lilleyse mentioned this issue Mar 14, 2017
1 task
@lilleyse
Copy link
Contributor

Fixed in #49

Converts with the --bypassPipeline flag. Still too large to be handled by gltf-pipeline however.

@mramato
Copy link
Contributor

mramato commented Apr 12, 2017

You should write up a copy of this issue for gltf-pipeline so we fix it there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants