POV-Ray : Newsgroups : povray.newusers : translating cylinders Server Time
5 Sep 2024 08:17:00 EDT (-0400)
  translating cylinders (Message 1 to 8 of 8)  
From: Wade
Subject: translating cylinders
Date: 3 Sep 2001 18:14:37
Message: <3b9400cd@news.povray.org>
How do I translate a cylinder that uses the y-axis for its center along the
z-axis?  Do I use translate <0,0,8> or translate z*8?

Wade


Post a reply to this message

From: Warp
Subject: Re: translating cylinders
Date: 3 Sep 2001 18:48:32
Message: <3b9408bf@news.povray.org>
Wade <Zav### [at] aolcom> wrote:
: Do I use translate <0,0,8> or translate z*8?

  Those are the exact same thing.

  z is a shortcut for <0,0,1>, and <0,0,1>*8 results in <0,0,8>.

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


Post a reply to this message

From: Wade
Subject: Re: translating cylinders (another question)
Date: 3 Sep 2001 19:08:50
Message: <3b940d82$1@news.povray.org>
When I render my code, why do I see only the first cylinder even after
translating the second cylinder?  here's my code:

background {color rgb <1,1,1>}
camera {
 location <8,5,0>
 look_at <0,0,0>
 angle 15
}

light_source {
 0*x
 color rgb <0.9570,0.9570,0.9570>
 translate <80,40,20>
}

cylinder {
 0*y, .18*y .015
 texture{
  pigment{
   color rgb <0.20,0.20,0.20>
  }
  finish{
   ambient 0.35
   brilliance 2
   diffuse 0.3
   metallic
   specular 0.80
   roughness 1/20
   reflection 0.1
  }
 }
}
cylinder {
 0*y 0.18*y .015
 texture{
  pigment{
   color rgb <0.20,0.20,0.20>
  }
  finish{
   ambient 0.35
   brilliance 2
   diffuse 0.3
   metallic
   specular 0.80
   roughness 1/20
   reflection 0.1
  }
 }
 translate 18*z
}


Post a reply to this message

From: KalleK
Subject: Re: translating cylinders (another question)
Date: 4 Sep 2001 02:31:03
Message: <3b947527$1@news.povray.org>
Hi Wade!

The second cylinder is out of view. Change "translate z*18" to
"translate z*1" or z*0.5 and you will see the second one.
Or you can change the angle of camera. 15 is rather small. But
then you have to change the size of the cylinders, too. They
would appear very, very tiny.


Post a reply to this message

From: Wade
Subject: Re: translating cylinders (another question)
Date: 4 Sep 2001 09:42:53
Message: <3b94da5d$1@news.povray.org>
"KalleK" <kal### [at] gmxde> wrote in message news:3b947527$1@news.povray.org...
> Hi Wade!
>
> The second cylinder is out of view. Change "translate z*18" to
> "translate z*1" or z*0.5 and you will see the second one.
> Or you can change the angle of camera. 15 is rather small. But
> then you have to change the size of the cylinders, too. They
> would appear very, very tiny.
>

Thanks and how do I 'soften' the background with area_lights?


Post a reply to this message

From: KalleK
Subject: Re: translating cylinders (another question)
Date: 4 Sep 2001 12:21:07
Message: <3b94ff73$1@news.povray.org>
> Thanks and how do I 'soften' the background with area_lights?

Your question is not quite clear to me. area_lights are only used
to soften shadows. To see shadows you need another object, for
example a plane at y*0.
Than you can copy an area_light from the docs, and see if it
helps to soften the shadows.

You can't soften a backgroung that is made just of background{}
statement, because in such a statement only a single color is
permitted. And you don't get soft effects with a single color.
Maybe you want to use a sky_sphere (see the docs) with a pattern
and a color_map for some color-bleeding.

cukk


Post a reply to this message

From: Warp
Subject: Re: translating cylinders (another question)
Date: 4 Sep 2001 12:27:20
Message: <3b9500e7@news.povray.org>
KalleK <kal### [at] gmxde> wrote:
: And you don't get soft effects with a single color.

  A single color isn't sharp either... It's actually infinitely soft... ;)

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


Post a reply to this message

From: John VanSickle
Subject: Re: translating cylinders
Date: 5 Sep 2001 13:25:52
Message: <3B96613A.A05D8D22@hotmail.com>
Warp wrote:
> 
> Wade <Zav### [at] aolcom> wrote:
> : Do I use translate <0,0,8> or translate z*8?
> 
>   Those are the exact same thing.

The proper answer to a question of this type is "yes".

Regards,
John
-- 
ICQ: 46085459


Post a reply to this message

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