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

Collada model Bounding box #3370

Closed
gaitat opened this issue Apr 24, 2013 · 3 comments
Closed

Collada model Bounding box #3370

gaitat opened this issue Apr 24, 2013 · 3 comments
Labels

Comments

@gaitat
Copy link

gaitat commented Apr 24, 2013

As per issue #1843 I have modified the webgl_loader_collada.html example to draw the model bounding box but it does not work.
You can pick up my example from www.virtuality.gr/webgl_loader_collada_bbox.html and place it in the examples folder, so the library paths can be found). If you zoom out you will see the computed bounding boxes and on the console you can see the bounding box values.

@mrdoob
Copy link
Owner

mrdoob commented Apr 24, 2013

Yes. There are some additional issues there. If you try loading monster.dae on the editor you'll see that the boundingbox is wrong already.

@gaitat
Copy link
Author

gaitat commented Apr 25, 2013

OK but I think it should be marked as a bug rather than an enhancement. It is existing code that does not work.

@mrdoob
Copy link
Owner

mrdoob commented Apr 25, 2013

Fair point. Changed.

So, I think one of the problems is that ColladaLoader doesn't convert the geometry to our coordinate system, instead it rotates the object.

I'm not sure if this is what it's interfering with the boundingbox though. Maybe it's the bones to morphhtargets code instead.

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

2 participants