POV-Ray : Newsgroups : povray.newusers : Odd transformation of cylinders : Re: Odd transformation of cylinders Server Time
9 Oct 2024 03:36:04 EDT (-0400)
  Re: Odd transformation of cylinders  
From: Thomas de Groot
Date: 11 Aug 2020 02:38:25
Message: <5f323ce1@news.povray.org>
Op 11/08/2020 om 07:30 schreef Cyningstan:
> 
> For example:
> 
> camera {
>    location <0, 0, -10>
>    look_at  <0, 0,  0>
> }
> 
> cylinder {
>    <0 0 -1.25>
>    <0 0 1.25>
>    1
> }

Not sure if this is the cause, but I am missing the ",". To be 
unambiguous, you should write:

cylinder {
   <0, 0, -1.25>,
   <0, 0, 1.25>,
   1
}

> 
> This isn't the full scene; I've omitted lighting and textures for brevity. I'd
> expect to be looking at this cylinder end-on, but it's actually rotated -45
> degrees and moved down -1, so I'm looking at the top side. I have to bring it
> back to where I expect with the following:
> 
>    rotate <+45 0 0>
>    translate <0 0 +1>

Same here:

rotate <45, 0, 0>
translate <0, 0, 1>

> 
> My 0.5 radius cylinders need translating up +0.5 on the Z axis, and all
> cylinders need a +45 degree correction on the X axis.
> 
> Neither the tutorial nor the reference section on the cylinder give me any clue
> as to why this weird transformation is being applied to all my cylinders, and I
> don't remember having this problem last time I built a scene about seven years
> ago. Is there something obvious I'm missing?
> 
> Thanks!
> 
> 


-- 
Thomas


Post a reply to this message

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