POV-Ray : Newsgroups : povray.newusers : radial frequency 1.8 Server Time
12 Nov 2024 19:16:43 EST (-0500)
  radial frequency 1.8 (Message 1 to 3 of 3)  
From: KalleK
Subject: radial frequency 1.8
Date: 8 Nov 2001 16:37:18
Message: <3beafb0e@news.povray.org>
hi Povers!

I want to make a torussegment (a part of a torus) that is 200 degree.
Well, I type difference {torus{} box {} box {rotate y*(360-300-90)}
(or something like that. That's ok. Now I want to give this piece of a
torus a color that fade from one end to another from red to green.
I thought:
pigment {
 radial
 frequency (360/200) // 1.8
 color_map {foo Red .. Green bar}
}
But I don't get, what I want. Looking at the whole torus, this pigment
doesn't what I thought, it would do. The results are rather unexpected
(to me).
I made an animation with "frequency 1+clock" and now I don't know how
to use frequency with Float

I looked Povhelp3.5 '6.7.12.2 Frequency and Phase'.

It tells me "The float after frequency can be any value. Values
greater than 1.0 causes more than one copy of the map to be used". But
I don't get a whole copy. I get to 3 pieces of unfinished shifts (from
Red to Green). Maybe one is finished - but I can't calculate where it
starts or ends. Do an animation, and you know, what I mean.
I can post a (short) sourcecode.
How can I get around this?

cukk


Post a reply to this message

From: Trevor Quayle
Subject: Re: radial frequency 1.8
Date: 8 Nov 2001 16:51:29
Message: <3beafe61@news.povray.org>
Try using the image map index instead of frequency.


//start
difference{
  torus{15 10}
  intersection{
    plane{-z 0}
    plane{-z 0 rotate y*20}
  }
  pigment{radial frequency 1
    color_map{
      [0 rgb <1,0,0>]
      [200/360 rgb <0,1,0>]
    }
  }
  translate -5*y
}

//end


-tgq


Post a reply to this message

From: KalleK
Subject: Re: radial frequency 1.8
Date: 12 Nov 2001 15:34:35
Message: <3bf0325b$1@news.povray.org>
> Try using the image map index instead of frequency.
>
>
> /// start
> difference{
>   torus{15 10}
>   intersection{
>     plane{-z 0}
>     plane{-z 0 rotate y*20}
>   }
>   pigment{radial frequency 1
>     color_map{
>       [0 rgb <1,0,0>]
>       [200/360 rgb <0,1,0>]
>     }
>   }
>   translate -5*y
> }
>
> /// end
>
>
> -tgq
>
Doh!
Well - I didn't think of that. I must be stupid...
(But do an animation of my pseudocode and look at the strange
behaviour - if you have the time. Shall I post to p.b-t - I'm using
3.5 [beta])

Thank you!

cukk


Post a reply to this message

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