hi,
I'm +/- newbie with Irrlicht. When I export any static mesh supported by Irrlicht, the engine gives me the bounding boxes correct, as far as I know, it's the smallest 3d box surrounding all the geometry.
The problem arrises when I use any animated .X exported by either DeepExploration or 3dsmax (through Panda Exporter or X-File (Q3D) export plugins).
I guess the problem is with the bounding box calculations in irrlicht, may be .x containing bones are converted to many SceneNode not as single node (one per bone and geometry) but calculations take into account only the first node generated. of course, it works ok for single meshes, not for one-to-many scene nodes.
More over, the swarf.x provided as example with the Irrlicht installation has a bounding box that covers ONLY the character, excluding the hatchet he has in one hand..
To have correct bounding boxes is very important because thay are the base of many collision tests, cursor hit tests, and other stuff in Irrlicht.
Does anybody has the same problem than me? any suggestions or solutions? The bounding boxes are defined in the .x ?
karel
incorrect bounding box in irrlicht for bones-skinned .x
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
That's correct, the bounding boxes are wrongly transformed. The SVN version of Irrlicht (and one of my dotX patches) contains a slightly improved version, but not yet correct trasformations. If anyone can point me to a fix I'll include it at once. It might take some time before I'll continue on this loader on my own...