POV-Ray : Newsgroups : povray.newusers : Make a spiral Server Time
5 Nov 2024 01:22:50 EST (-0500)
  Make a spiral (Message 1 to 6 of 6)  
From: Oleguer Vilella
Subject: Make a spiral
Date: 17 Aug 2004 02:28:24
Message: <4121a588$1@news.povray.org>
I want to do a DNA chain. I found that in Pov-Ray I can do spirals and I
think the spiral can looks like a DNA chain, but when I tray to render the
code it doesn't work. The code is:

normal
    {
        spiral1 5 [, 0 ]
      pigment { color Red }
     scale
     rotate
     translate
}

Do you know what is the problem?

Best regards,
Oleguer


Post a reply to this message

From: Christoph Hormann
Subject: Re: Make a spiral
Date: 17 Aug 2004 02:45:02
Message: <cfs9fb$2mg$1@chho.imagico.de>
Oleguer Vilella wrote:
> I want to do a DNA chain. I found that in Pov-Ray I can do spirals and I
> think the spiral can looks like a DNA chain, but when I tray to render the
> code it doesn't work. The code is:
> 
> normal
>     {
>         spiral1 5 [, 0 ]
>       pigment { color Red }
>      scale
>      rotate
>      translate
> }
> 
> Do you know what is the problem?

The problem is that this is not a valid normal statement.

Valid (inside a texture{}) would be

normal {
   spiral1 5
}

the rest is nonsense.

But of course this would not create a spiral, it would just modify the 
normal of the object it is applied to.

Apart from that the shape of a DNA chain is not a spiral but a helix (a 
double helix to be precise).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 06 Jul. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Oleguer Vilella
Subject: Re: Make a spiral
Date: 17 Aug 2004 03:57:34
Message: <4121ba6e$1@news.povray.org>
Yes, is a double helix, do you know how can I do it?


news:cfs9fb$2mg$1@chho.imagico.de...
> Oleguer Vilella wrote:
> > I want to do a DNA chain. I found that in Pov-Ray I can do spirals and I
> > think the spiral can looks like a DNA chain, but when I tray to render
the
> > code it doesn't work. The code is:
> >
> > normal
> >     {
> >         spiral1 5 [, 0 ]
> >       pigment { color Red }
> >      scale
> >      rotate
> >      translate
> > }
> >
> > Do you know what is the problem?
>
> The problem is that this is not a valid normal statement.
>
> Valid (inside a texture{}) would be
>
> normal {
>    spiral1 5
> }
>
> the rest is nonsense.
>
> But of course this would not create a spiral, it would just modify the
> normal of the object it is applied to.
>
> Apart from that the shape of a DNA chain is not a spiral but a helix (a
> double helix to be precise).
>
> Christoph
>
> -- 
> POV-Ray tutorials, include files, Sim-POV,
> HCR-Edit and more: http://www.tu-bs.de/~y0013390/
> Last updated 06 Jul. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Warp
Subject: Re: Make a spiral
Date: 17 Aug 2004 04:33:27
Message: <4121c2d6@news.povray.org>
Oleguer Vilella <ole### [at] infonegociocom> wrote:
> Yes, is a double helix, do you know how can I do it?

  You should start by reading the tutorials and documentation about the
features you will need to do so.
  Basically you will need to use #declares and #while loops, as well as
float functions (could also be done with rotation transformations,
but whether or not that is easier depends) and place objects (you probably
want spheres and perhaps cylinders) located at proper places.
  Try first reading the sections in the tutorial and documentation
explaining these. If you still have problems don't hesitate in asking.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Oleguer Vilella
Subject: Re: Make a spiral
Date: 17 Aug 2004 04:38:58
Message: <4121c422$1@news.povray.org>
Ok, thank you very much.



news:4121c2d6@news.povray.org...
> Oleguer Vilella <ole### [at] infonegociocom> wrote:
> > Yes, is a double helix, do you know how can I do it?
>
>   You should start by reading the tutorials and documentation about the
> features you will need to do so.
>   Basically you will need to use #declares and #while loops, as well as
> float functions (could also be done with rotation transformations,
> but whether or not that is easier depends) and place objects (you probably
> want spheres and perhaps cylinders) located at proper places.
>   Try first reading the sections in the tutorial and documentation
> explaining these. If you still have problems don't hesitate in asking.
>
> -- 
> plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
> sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
> density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
> <1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Oleguer Vilella
Subject: Re: Make a spiral
Date: 18 Aug 2004 03:19:43
Message: <4123030f$1@news.povray.org>
Yes, I did it. Thank you very much for your help.


news:4121c2d6@news.povray.org...
> Oleguer Vilella <ole### [at] infonegociocom> wrote:
> > Yes, is a double helix, do you know how can I do it?
>
>   You should start by reading the tutorials and documentation about the
> features you will need to do so.
>   Basically you will need to use #declares and #while loops, as well as
> float functions (could also be done with rotation transformations,
> but whether or not that is easier depends) and place objects (you probably
> want spheres and perhaps cylinders) located at proper places.
>   Try first reading the sections in the tutorial and documentation
> explaining these. If you still have problems don't hesitate in asking.
>
> -- 
> plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
> sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
> density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
> <1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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