POV-Ray : Newsgroups : povray.animations : animation of two object : Re: animation of two object Server Time
18 Jun 2024 08:04:37 EDT (-0400)
  Re: animation of two object  
From: Warp
Date: 15 Mar 2005 09:35:07
Message: <4236f29b@news.povray.org>
scorpmetal <sco### [at] yahoocom> wrote:
> I want to make a mouvement of 2 objects different. And the camera look at
> the center point in this mouvement. In this case, my 2 object is the cone
> and the difference(cylinder and quadric). How I can make this? I hope you
> understand my question!!! Thanks a lots

  Just calculate the positions of the two objects using 'clock'?
Something along the lines of:

#declare Object1Position = <clock*10, 0, 0>;
#declare Object2Position = <-clock*5, 0, 0>;

camera { location <0,-2,0> look_at (Object1Position+Object2Position)/2 }

difference
{ whatever
  translate Object1Position
}

cone
{ whatever
  translate Object2Position
}

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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