[Algorithms] Stripping scaling out of a hierarchy.
Brought to you by:
vexxed72
From: <lei...@co...> - 2009-12-18 23:12:37
|
Hello everyone. My XSI exporter supports exporting a small hierarchy of objects. One of it's uses is to allow the game to find parts like the tracks, body, wheel, turret etc. All works fine until I purchased some models that are the wrong scale and I decide to scale them in XSI to 1 unit is 1m. Now my hierarchy has scaling in it. This becomes a mess with bounding volumes on parts and frame of references having scaling in it. I finally found an option in XSI to freeze all the scaling but I was wondering how can I have my build tool do the same thing so that I won't have problems down the road? Also its bugging me. I tried resolving all the nodes into model space and then using inverse transforms to resolve the local transforms on each part. It didn't work. Leigh |