POV-Ray : Newsgroups : povray.newusers : axis of rotation - confused : Re: axis of rotation - confused Server Time
28 Jul 2024 18:25:53 EDT (-0400)
  Re: axis of rotation - confused  
From: Alain
Date: 24 Dec 2007 15:02:20
Message: <4770104c$1@news.povray.org>
frankly nous apporta ses lumieres en ce 2007/12/23 18:11:
> Hi, I have an object which is basically a 3D disc.
> I can rotate it 360 degrees with the disc starting face on and
> the axis of rotation being the vertical one and central at the front of the 
> disc depth (z direction)
> 
> This causes the disc not to spin correctly (it oscillates) and I would like 
> to set it so that the axis is through the vertical but also the centre of 
> the disc z-wise
> 
> I am using an ini file to build the frames of the animation (given below)
> ^^^^^^^^^^^^^^^^^^^^^^^
> Antialias=On
> Antialias_Threshold=0.5
> Antialias_Depth=5
> Input_File_Name=Discus
> Initial_Frame=1
> Final_Frame=20
> Initial_Clock=0
> Final_Clock=1
> Cyclic_Animation=on
> Pause_when_Done=off
> ^^^^^^^^^^^^^^^^^^^^^^^
> in the main Discus pov file includes the line
None of the preceding have any effect on what you see.
> ^^^^^^^^^^^^^^^^^^^^^^^
>  object{Disc scale 22 rotate <0,360*clock 0> translate < -21.35, -0.3, 100>}
This rotate around the Y axis.
> // also tried this -
> //object{Disc scale 22 rotate<0,-360*(clock+0.025),0> translate 
> < -21.35, -0.3, 100>)
This does the same, but start/end the rotation a little farther.
> ^^^^^^^^^^^^^^^^^^^^^^^
> I cannot for the life of me understand how I can change the y axis z value?
> 
> Could any of you kind and clever people please help me ?
> 
> Kind Regards,
> 
> Simon 
> 
> 
By bet would be that your Disc object is not centered and/or it's normal/axis 
don't start parallel to an axis.
If you use the disk primitive, make sure that it's center is at <0,0,0> and it's 
original orientation is flat on the X-Z plane.
#declare Disc = disc{0, x, Radius texture{Some_texture}}
Make sure that there is no Y component in the vector part.

Can you post the definition of your Disc object? If it's more than 10 lines, 
post it on povray.binaries.scene-files. If it's a big mesh, zip it.


-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you wonder why you ever collected 
those 200 megs worth of paint and image manipulation programs now rusting 
somewhere on your hard drive.
Ken Tyler


Post a reply to this message

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