POV-Ray : Newsgroups : povray.newusers : Moving objects Server Time
27 Nov 2024 02:40:47 EST (-0500)
  Moving objects (Message 1 to 4 of 4)  
From: pat
Subject: Moving objects
Date: 2 Jul 2003 06:55:01
Message: <web.3f02b9ddcfb9d4da34b9f8800@news.povray.org>
Dear All,

I've generated a lot of data for objects that I want to render into a movie
and I realise now that they are in slightly the wrong place. Without having
to regenerate all the data is there a PovRay command or workaround that
will allow all the position information following this command to be
shifted and/or rotated by some amount? Thank you very much for your help!!
Best,
Pat

Free your mind. There is no spoon.
************************************************
Dr. Patrick Bangert
http://www.knot-theory.org
Research Instructor for Mathematics
International University Bremen


Post a reply to this message

From: JC (Exether)
Subject: Re: Moving objects
Date: 2 Jul 2003 07:10:30
Message: <3F02BDA5.6090606@spam.fr>
You can, but I wouldn't say it's a workaround. In povray you can use 
transformations to translate, scale or rotate objects.

example:
sphere { 0, 1, translate <1,2,3> }
creates a sphere centered on origin and translates it to position 
<1,2,3> where it will appear when rendering.

Refer to documentation for further info, it's all well explained.

JC

pat wrote:
> Dear All,
> 
> I've generated a lot of data for objects that I want to render into a movie
> and I realise now that they are in slightly the wrong place. Without having
> to regenerate all the data is there a PovRay command or workaround that
> will allow all the position information following this command to be
> shifted and/or rotated by some amount? Thank you very much for your help!!
> Best,
> Pat
> 
> Free your mind. There is no spoon.
> ************************************************
> Dr. Patrick Bangert
> http://www.knot-theory.org
> Research Instructor for Mathematics
> International University Bremen
> 
>


Post a reply to this message

From: Tom Melly
Subject: Re: Moving objects
Date: 2 Jul 2003 10:09:16
Message: <3f02e78c@news.povray.org>
"pat" <pat### [at] hotmailcom> wrote in message
news:web.3f02b9ddcfb9d4da34b9f8800@news.povray.org...
> Dear All,
>

<snip>

See JC's post, but I'm slightly confused. If you are animating the object, then
you are presumably ohfay with translations, etc., so it's hard to see where the
problem arises. Have we/I misunderstood the problem?


Post a reply to this message

From: Hughes, B 
Subject: Re: Moving objects
Date: 2 Jul 2003 15:40:55
Message: <3f033547@news.povray.org>
"Tom Melly" <tom### [at] tomandlucouk> wrote in message
news:3f02e78c@news.povray.org...
>
> Have we/I misunderstood the problem?

Maybe as simple as using:

object {
    TheObject
    translate <1,2,3> // or rotate <10,20,30>, or any combination thereof.
}

If more than one object together then use 'union' in place of 'object'.
Although I'm also wondering if this isn't the real problem/solution being
asked.

Bob H.


Post a reply to this message

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