POV-Ray : Newsgroups : povray.general : union of door and handle pushes item off z axis : Re: union of door and handle pushes item off z axis Server Time
30 Jul 2024 12:28:12 EDT (-0400)
  Re: union of door and handle pushes item off z axis  
From: optima
Date: 29 Aug 2009 17:55:01
Message: <web.4a99a26ab4a77fd044cee4d70@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
> So, before you rotate the object, be sure it's sitting at the correct
> place. Never translate from the origin before you rotate.
>
> 1 - Create all objects AT the origin.
> 2 - Scale the object as needed.
> 3 - Rotate the object as needed.
> 4 - Translate the object to it's final location.
>
> Alain

Is this cabinet located on the origin? If I knew how to get it to origin before
rotation my problem would be solved for rotations.
union{
object { cabinet_case  }
union{
object { door scale <49.4999961853027,75,1> translate <25,0,61> pigment
{image_map {jpeg "2.jpg"}}}
object { handle translate <47,62,64> pigment {image_map {jpeg "a700.jpg"}}}
translate -<0,47.5,60> rotate y*-0 translate <0,47.5,60>}//DOOR ROTATION
translate <-0,0,0> rotate <0,0,0> translate <-50,0,0>}//CABINET FINAL PLACEMENT
                       //-50 suppose there is another cabinet to the left
                       //if I rotate this cabinet y*45 it will orbit

This is how I create my cabinets, are they created at the origin?

Thanks a lot, your assistance is appreciated so much.
Ibrahim


Post a reply to this message

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