POV-Ray : Newsgroups : povray.general : centered and resized model question put differently : Re: centered and resized model question put differently Server Time
29 Jul 2024 22:26:35 EDT (-0400)
  Re: centered and resized model question put differently  
From: clipka
Date: 11 Jun 2010 13:57:28
Message: <4c127908$1@news.povray.org>
Am 11.06.2010 16:06, schrieb optima:
>   clipka , Thank you very much for the reply and sorry for not answering sooner.
>
> How do I know if the model's origin is where?
>
> I center the model's origin in max from Affect Pivot Only / Center To Object
> then move it to 0.0.0 in xyz world position then export it as 3ds file for
> import into PoseRay.
>
> Where in Poseray can I see model's origins in xyz?
>
> for example in this inc file exported from poseray we see
>
> //Bounding Box....... from x,y,z=(-40.49511,-19.33101,-27.46092)
> //                      to x,y,z=(-2.163608,19.76925,11.64881)
> //                 size dx,dy,dz=(38.3315,39.10027,39.10973)
> //                  center x,y,z=(-21.32936,0.219121,-7.906058)
> //                       diagonal 67.28823
>
> how come it says center x,y,z=(-21.32936 ....

Because that's ((-40.49511,-19.33101,-27.46092) + 
(-2.163608,19.76925,11.64881)) / 2.

I.e. what Poseray calls the object's center is actually the center of 
the smallest axis-aligned box that fits the object. 3DS max may have 
different ideas what the center actually is, e.g. the average of all 
vertices, or center of gravity, or whatever. You should consult your 3DS 
max documentation about this.

> I made it 100 units (cm) long in max but it says -21.32936 for x axis
> Why is that?

Looks like 3DS max exports dimensions in inches - at least in this case. 
(100 cm are about 39.37 inch, which is pretty close to what Poseray 
reports for size.)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.