Joh Posted June 11, 2012 Posted June 11, 2012 I loaded my animated mesh with loadmesh, but when i try to use getentityaabb i receive all the value to 0. Do you know why? Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10.
franck22000 Posted June 11, 2012 Posted June 11, 2012 You are probably not getting the Mesh of your model correctly dont do this: TVec6 _BoundingBox = LE::GetEntityAABB(yourmodel); But this: TVec6 _BoundingBox = LE::GetEntityAABB(LE::GetChild(yourmodel)); LE::GetChild(yourmodel) get the Mesh of the model Quote You guys are going to be the death of me. Josh
Joh Posted June 11, 2012 Author Posted June 11, 2012 Well i loaded the mesh, i used loadmesh. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10.
Josh Posted June 12, 2012 Posted June 12, 2012 If it has a hierarchy, you might just be getting an empty top-most pivot's aabb. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Joh Posted June 12, 2012 Author Posted June 12, 2012 So i should get the child? Ok i'll check, but anyway was just a question.. I noticed it during some test for voxellization. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10.
Josh Posted June 12, 2012 Posted June 12, 2012 The AABB is calculated for each entity, not the entity and its children. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Joh Posted June 13, 2012 Author Posted June 13, 2012 This make sense.. But if i don't remember wrong i saw this issue on oildrum too.. It have hierarchy? Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.