Loading collada files / locate model in center

Software: Away3D 4.x

mole, Newbie
Posted: 26 October 2012 03:37 PM   Total Posts: 29

I noticed that when I load certain Collada or OBJ files I got from free 3D model sites, they aren’t place in the center of the world. There obviously is something wrong with their pivot point.
Is this something I can fix through code? Can anyone point me in the right direction?
I’m building a tool where people can upload their own files, so I have little control, and I would like to offer some options to the user to correct this.

   

mole, Newbie
Posted: 30 October 2012 04:54 PM   Total Posts: 29   [ # 1 ]

Nobody?
I tried going over all vertexes of all submeshes to calculate the average vertex position, and then I’m placing the camera in orbit around that point. This still doesn’t seem to solve my problem. Some models are completly off center and seen far in the distance.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X