POV-Ray : Newsgroups : povray.newusers : unexpected scale results : Re: unexpected scale results Server Time
28 Jul 2024 18:19:42 EDT (-0400)
  Re: unexpected scale results  
From: Warp
Date: 11 Dec 2007 08:27:00
Message: <475e9023@news.povray.org>
scott <sco### [at] laptopcom> wrote:
> > BTW, works the same in Blender and possibly other modellers as well.

> Not used Blender that much, but in other modellers you define an "object 
> centre" point, and all transformations apply relative to that point.  So if 
> you have a complex scene with an object (or group) you can rotate/scale 
> about the object centre rather than the whole scene centre...

  How do you select whether you want to apply a transformation to a group
of objects as if it was a single object with a common center point, or
whether you want the transformation to be applied to each object individually,
independently of the other objects?

  Anyways, it's quite trivial to apply a transformation to an object in
POV-Ray in relation to a defined local center point:

#declare MyObject = ...;
#declare MyObjectCenter = <centerX, centerY, centerZ>;

...

object
{ MyObject

  translate -MyObjectCenter
  // add local transforms here
  translate MyObjectCenter
}

-- 
                                                          - Warp


Post a reply to this message

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