|
![](/i/fill.gif) |
"Chris B" <nom### [at] nomail com> wrote:
> If you move the box in 3DMax so that one corner is at the origin
> instead, you may find it easier to line everything up
So I center the left-front corner of my box at the center while in 3d max
coordinates before exporting, I can rotate easier. I feel we are getting close
to a solution on my problem. These are the values taken from PoseRay. I think
they are the values Tim was talking about in earlier posts. Which one is
important for rotation?
box_POV_geom.inc
THIS IS FROM THE BOX EXPORTED, WITH CENTER AT <0,0,0> XYZ in MAX
//Bounding Box....... from x,y,z=(-49.999,0.001,-50.001)
// to x,y,z=(50.001,100.001,49.999)
// size dx,dy,dz=(100,100,100)
// center x,y,z=(0.0009994507,50.001,-0.0009994507)
// diagonal 173.2051
--------------------------------------------------------
THIS IS FROM THE BOX EXPORTED, WITH CENTER AT <50,50,0> XYZ in MAX
//Bounding Box....... from x,y,z=(0,0,-100)
// to x,y,z=(100,100,6.123032E-15)
// size dx,dy,dz=(100,100,100)
// center x,y,z=(50,50,-50)
// diagonal 173.2051
Now here comes the cruncher again last time, If I don't get it this time either,
I will start to think something's wrong with me. THE BIG QUESTION.
If I want to rotate the box on its y axis 45 degrees, What is the formula?
Suppose box is declared
#declare BOX = object { box_ scale <0.01,0.01,0.01> }
and it was located at translate <-50,10,0> before we will rotate it.
You should use the first centered sample above <0,0,0>, easier I think .
Your answer to this question should nail it for me. I couldn't be more greatful
for all your help so far. I know it's about centering something at the (some)
center of something's center, these centers are what gets me lost in all this.
PS: I don't care much about mesh rotations, cause they rotate anyhow, a little
off but acceptable. Cabinets and wall must rotate precisely. A chair rotated
around a table, a little off is not even noticable at first , see what I mean.
This may sound a little unprofessional but , right now my cabinet rotation
problem is monumental next to a mesh's rotation. All cabinets and walls are made
from #include "box_POV_geom.inc"
Post a reply to this message
|
![](/i/fill.gif) |