Thread: Pivot script
View Single Post
Old 2nd January 2015, 03:06 PM   #2
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Pivot script

I see why, but I don't have the source code to the Collada exporter to fix the problem... Andy?

Basically, the Collada exporter puts out all the objects in world coordinates instead of object coordinates + object center translation. The Collada format supports a translate tag (see https://www.khronos.org/files/collada_spec_1_4.pdf)

The attached zip file is a dae scene with a door and a wall. The door is purposely offset so its hinge is at 0,0,0 in world coordinates.
- The 'stock.dae' file is untouched from my export from AC3D
- The offset.dae has a translate tag added to move the door to where it belongs.

Ron
Attached Files
File Type: zip example.zip (3.9 KB, 112 views)
jentron is offline   Reply With Quote