|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi.
This is my first Message to news.povray, so be nice ;). I use Pov-Ray for
Windows 98 3.5 and try to make my first animations. My Plan is to rotate the
cap point of a cylinder around the z-axis, while the base point is <0, 0, 0>
Because I want to know the new coordinates of the cap point, i can't simply
use the rotate-command, right?
However, I have to work with the sin()-Function. But my PoV-Ray caculates
the most stupid coordinates I ever seen when I use it. I checked my formulas
100 times, and so I'm shure that it is correct.
Now to my question(s):
How can i rotate a cylinder manually without the sin()-command?
And (because the answer of the first question will be: its impossible) can I
detect the new coordinates of the cap point when I use the rotate-command?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I have the strong feeling that you are working with angles in degree while
POV-Ray wants them in radians for the sin() function!
- Micha
--
POV-Ray Objects Collection: http://objects.povworld.org
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:3ecf332e@news.povray.org The Brain wrote:
> can I
> detect the new coordinates of the cap point when I use the
> rotate-command?
>
have a look at the vector function vrotate(A,B) in "6.1.4.6 Vector
Functions"
Ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Oops, right ^^
Thanks
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
aah, this is is exactly that what I need. Thx.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
And what if I use the Rotate_Around_Trans macro instead of the simple
rotate?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:3ecf4548@news.povray.org The Brain wrote:
> And what if I use the Rotate_Around_Trans macro instead of the simple
> rotate?
>
Brain,
If you take a look at the actual macro, you'll see that it is just a
'simple' rotate plus two translations.
Actually, I'm starting to wonder what it is you want to acheive? In
youre first post you want to rotate a cylinder, with one cap in the
origin, around the z-axis:
cylinder {
<0,0,0>, <cap_somewhere>, 1
rotate <0,0,clock*360>
}
Then you want to know the position of the other cap after rotation:
#declare CapPosition = vrotate(<cap_somewhere>,<0,0,clock*360>)
Now you want to use Rotate_Around_Trans, so ...?
Ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thx. As from now I wont ask stupid questions.
I want to make several clinders, linked with spheres.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:3ecf4d8f@news.povray.org The Brain wrote:
> Thx. As from now I wont ask stupid questions.
There are no stupid questions. It's just sometimes difficult to
interpret what's going on in someone others brain through a line in a
message.
> I want to make several clinders, linked with spheres.
You could put a sphere and a cylinder in a union, that way you don't
have to use vrotate.
union {
cylinder {
<0,0,0>, <other_cap>,1
}
sphere {
<somewhere_and_related_to_other_cap>,1
}
rotate <0,0,360*clock>
}
Ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"The Brain" <rag### [at] univalde> wrote in message
news:3ecf4d8f@news.povray.org...
> Thx. As from now I wont ask stupid questions.
> I want to make several cylinders, linked with spheres.
Gee, try not to get paranoid or anything ;-) ingo was just wondering, I'm
sure.
But anyway, stupid questions belong in the povray.newusers group. Only
joking! Second time within a matter of minutes. Seriously though, it seems
you might have actually overlooked that group so thought I'd point it out.
And if you believe the question merits asking in povray.general instead
anyway, at least you didn't post it to povray.advanced. :-)
Bob H.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |