POV-Ray : Newsgroups : povray.advanced-users : Req: isosurface function Server Time
30 Jul 2024 12:19:30 EDT (-0400)
  Req: isosurface function (Message 11 to 20 of 20)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Nieminen Juha
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 09:58:36
Message: <3832c29c@news.povray.org>
Nieminen Juha <war### [at] punarastascstutfi> 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

From: Chris Huff
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 15:39:00
Message: <38331317.96986E3@compuserve.com>
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

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 15:46:46
Message: <383314DC.8C5BA3F1@peak.edu.ee>
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] punarastascstutfi> 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

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 15:51:58
Message: <38331615.D74C19A5@peak.edu.ee>
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

From: Ken
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 19:19:07
Message: <383345BB.4D1E1224@pacbell.net>
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] punarastascstutfi> 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

From: Nieminen Juha
Subject: Re: Req: isosurface function
Date: 18 Nov 1999 10:31:21
Message: <38341bc9@news.povray.org>
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

From: Nieminen Juha
Subject: Re: Req: isosurface function
Date: 18 Nov 1999 10:32:41
Message: <38341c19@news.povray.org>
Margus Ramst <mar### [at] peakeduee> 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

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 18 Nov 1999 16:43:25
Message: <383473A5.371BBA02@peak.edu.ee>
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

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 18 Nov 1999 16:43:45
Message: <383473B8.BEED277B@peak.edu.ee>
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

From: Ken
Subject: Re: Req: isosurface function
Date: 18 Nov 1999 17:15:47
Message: <38347A58.9ED1FB72@pacbell.net>
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

<<< Previous 10 Messages Goto Initial 10 Messages

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