|
28th April 2004, 10:34 PM | #1 |
Junior Member
Junior member
Join Date: Apr 2004
Posts: 3
|
X Y Z
Is there any way to find the dimensions of a generated object useing AC3D in terms of X,Y,Z (using DX's scale)? I find it hard to find these numbers. I have been trying to make a game, but I have to render the image in my DX engine, and move around it to get its size.
|
29th April 2004, 08:17 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: X Y Z
Within AC3D, select the object and read the size from the info. at the top of the control panel.
You can also use this to get distances - select any two vertices and it will show you the distrnce between them. Andy |
4th June 2007, 01:15 PM | #3 |
Member
Advanced member
Join Date: May 2006
Posts: 36
|
Re: X Y Z
Sorry to bring up such an old post; however, I would like to know if there is a way to get the ACObject's dimensions through the SDK. If so, how do you do this?
Thanks |
5th June 2007, 04:56 AM | #4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: X Y Z
Try:
Code:
Prototype int ac_object_find_bound(ACObject *ob, Point3 *max, Point3 *min); // returns 0 if no geometry (therefore bb is invalid) Code:
Prototype void find_box_size(Point3 *max, Point3 *min, Point3 *out) { Point3 diff = *max; SUBTRACTPOINTS(min, &diff); ABSPOINT(&diff); *out = diff; } |
5th June 2007, 08:52 PM | #5 |
Member
Advanced member
Join Date: May 2006
Posts: 36
|
Re: X Y Z
Awesome. That worked very well.
Thanks Andy!!!! |
|
|