![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nieminen Juha <war### [at] punarastas cs tut fi> wrote:
: -sin(Angle)*abs(p.x)+cos(Angle)*vlength(<p.y,p.z>)
Btw, if there's no vlength()-function available, this achieves the same
thing:
-sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
This might be close to what you want, they aren't exactly concentric,
more like stacked:
box {< -5, -5, 0>, < 5, 5, 5 >
texture {
pigment {
function {sqrt(x^2 + z^2)-y}
color_map {
[0 color Black]
[1 color White]
}
}
}
}
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks, but Netscape plays tricks on me...
Could you repost your previous message, I cannot see it.
Apparently there are 2 other new messages from around the same time that I can't
see (groups pane shows 3 unread messages, but not so the message pane). Weird.
Margus
Nieminen Juha wrote:
>
> Nieminen Juha <war### [at] punarastas cs tut fi> wrote:
> : -sin(Angle)*abs(p.x)+cos(Angle)*vlength(<p.y,p.z>)
>
> Btw, if there's no vlength()-function available, this achieves the same
> thing:
>
> -sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thank you, I think this is just about it.
Margus
Chris Huff wrote:
>
> This might be close to what you want, they aren't exactly concentric,
> more like stacked:
> box {< -5, -5, 0>, < 5, 5, 5 >
> texture {
> pigment {
> function {sqrt(x^2 + z^2)-y}
> color_map {
> [0 color Black]
> [1 color White]
> }
> }
> }
> }
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
When you posted this message Warps content was included. I don't know what
you are doing wrong sir.
Margus Ramst wrote:
>
> Thanks, but Netscape plays tricks on me...
> Could you repost your previous message, I cannot see it.
> Apparently there are 2 other new messages from around the same time that I can't
> see (groups pane shows 3 unread messages, but not so the message pane). Weird.
>
> Margus
>
> Nieminen Juha wrote:
> >
> > Nieminen Juha <war### [at] punarastas cs tut fi> wrote:
> > : -sin(Angle)*abs(p.x)+cos(Angle)*vlength(<p.y,p.z>)
> >
> > Btw, if there's no vlength()-function available, this achieves the same
> > thing:
> >
> > -sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)
> >
> > --
> > main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> > ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
--
Ken Tyler - 1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
After _LOTS_ of thinking I got a really short answer:
Given an aperture angle 'Angle' for the cone and a point 'p' in space,
the color for that point is:
-sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Margus Ramst <mar### [at] peak edu ee> wrote:
: Thank you, I think this is just about it.
Could you please check my suggestion too so that I would not feel as doing
lots of thinking work for nothing? Thanks :)
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nieminen Juha wrote:
>
> After _LOTS_ of thinking I got a really short answer:
>
> Given an aperture angle 'Angle' for the cone and a point 'p' in space,
> the color for that point is:
>
> -sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)
>
Thank you. It works well, with just one problem: the pattern is mirrored along
the XY plane. I'll try to use my own brains to fix this :)
Margus
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Yes, but I can't see the message (his own) that he quoted in this post.
Sir still doesn't know whats wrong.
Margus
Ken wrote:
>
> When you posted this message Warps content was included. I don't know what
> you are doing wrong sir.
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Margus Ramst wrote:
> I'll try to use my own brains to fix this :)
Sounds like stormy weather ahead...
:)
--
Ken Tyler - 1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |