When you see a model's setsize, what do those numbers mean?
For example, I want to make a clipbrush that is the same size as a destroyed opeltruck, because I don't wanna use the solid command on the truck itself as that makes the bounding box solid.
(0.0 0.0 0.0) (-65 -40 0) (65 40 120)
That is the setsize given for the opeltruck. What do those numbers mean, and how would I create a clipbrush to be exactly the same size as the truck. I created a clipbrush with those setsize numbers, but it didnt encompass the whole area of the truck.
Any help appreciated!
Determining SetSize?
Moderator: Moderators
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
Setsize should be followed by two position vectors.
e.g.
setsize (x1 y1 z1) (x2 y2 z2)
For solid objects, the following conditions must hold:
x1 < x2
y1 < y2
z1 < z2
The size of the object along any of the three axes is given by (example for x-axis):
L = abs(x1) + abs(x2)
In a more tangible form see it as a box drawn from (x1 y1 z1) to (x2 y2 z2), a bit like a rectangle drawing tool for paint programs (i.e. two points specify a square).
e.g.
setsize (x1 y1 z1) (x2 y2 z2)
For solid objects, the following conditions must hold:
x1 < x2
y1 < y2
z1 < z2
The size of the object along any of the three axes is given by (example for x-axis):
L = abs(x1) + abs(x2)
In a more tangible form see it as a box drawn from (x1 y1 z1) to (x2 y2 z2), a bit like a rectangle drawing tool for paint programs (i.e. two points specify a square).
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
technical
I think you are getting to technical jv-map.
Ok, think of a point in space that is the exact center of the truck (the trucks origin point).
(0.0 0.0 0.0) (-65 -40 0) (65 40 120)
The first set of numbers is how much to offset the origin point from the center of the model--in this case 0.
The next two sets of numbers define where to draw the bounding box. Think of them as (xyz) coordinates using the truck's origin as 0.
So, let's take the first number from each. Move forward 65 units and place a dot. Then move backwards 65 units and place another dot. Now draw a line between those two dots. The line will be 130 units long from the front of the truck to the back.
Now let's widen that line with the second set of numbers. Move left 40 units and right 40 units. So, now we have a rectangle that is 130 units long and 80 units wide.
But, the rectangle is kind of flat, so we need to give it some height with the third set of numbers. Move down 0 and move up 120 units and our bounding box is now 80 units wide, 130 units long, and 120 units high.
Looks to me like the origin of the truck model is in the center, but on the ground. Anyway, the xyz corrodinates are not map coordinates, they are truck coordinates--from the truck's origin point.
hope that helps!
Ok, think of a point in space that is the exact center of the truck (the trucks origin point).
(0.0 0.0 0.0) (-65 -40 0) (65 40 120)
The first set of numbers is how much to offset the origin point from the center of the model--in this case 0.
The next two sets of numbers define where to draw the bounding box. Think of them as (xyz) coordinates using the truck's origin as 0.
So, let's take the first number from each. Move forward 65 units and place a dot. Then move backwards 65 units and place another dot. Now draw a line between those two dots. The line will be 130 units long from the front of the truck to the back.
Now let's widen that line with the second set of numbers. Move left 40 units and right 40 units. So, now we have a rectangle that is 130 units long and 80 units wide.
But, the rectangle is kind of flat, so we need to give it some height with the third set of numbers. Move down 0 and move up 120 units and our bounding box is now 80 units wide, 130 units long, and 120 units high.
Looks to me like the origin of the truck model is in the center, but on the ground. Anyway, the xyz corrodinates are not map coordinates, they are truck coordinates--from the truck's origin point.
hope that helps!
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:

