POV-Ray : Newsgroups : povray.advanced-users : Req: isosurface function Server Time
26 Nov 2024 17:17:01 EST (-0500)
  Req: isosurface function (Message 1 to 10 of 20)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Margus Ramst
Subject: Req: isosurface function
Date: 16 Nov 1999 19:06:51
Message: <3831F244.2665456B@peak.edu.ee>
Could somebody provide me with a function (preferably in a no-brainer macro form
:) that gives concentric cones? I want to use it in a pigment...
Thanks

Margus


Post a reply to this message

From: Peter Popov
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 03:05:30
Message: <dF0yOJvKet+xMsPMYJ4SUMtm7RYo@4ax.com>
On Wed, 17 Nov 1999 02:09:40 +0200, Margus Ramst <mar### [at] peakeduee>
wrote:

>Could somebody provide me with a function (preferably in a no-brainer macro form
>:) that gives concentric cones? I want to use it in a pigment...
>Thanks
>
>Margus

Concetric in what manner? Sharing a common vertex and concentric in
terms of angle, or sharing a common angle and concentric in terms of
vertex and base?


Peter Popov
ICQ: 15002700


Post a reply to this message

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 05:56:43
Message: <38328A93.B4588A1@peak.edu.ee>
The latter.

Margus

Peter Popov wrote:
> 
> Concetric in what manner? Sharing a common vertex and concentric in
> terms of angle, or sharing a common angle and concentric in terms of
> vertex and base?
> 
> Peter Popov
> ICQ: 15002700


Post a reply to this message

From: Gilles Tran
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 08:11:40
Message: <3832A98B.640E9D35@inapg.inra.fr>
Still not sure to fully understand what you need, but would something like
this work ?
(To be used with the superpatch of course)
camera{location  -z*10  look_at   0}
plane{ z,0
  texture {pigment {crackle      form x      frequency 3
      color_map{[0 color <1,0,0>][0.25 color <1,1,0>][0.5 color rgb
0][0.75 color <0,0,1>][1 color <0,1,0>]}         }
    finish{ambient 1 diffuse 0}
  }
}

G.

Margus Ramst wrote:

> The latter.
>
> Margus
>
> Peter Popov wrote:
> >
> > Concetric in what manner? Sharing a common vertex and concentric in
> > terms of angle, or sharing a common angle and concentric in terms of
> > vertex and base?
> >
> > Peter Popov
> > ICQ: 15002700


Post a reply to this message

From: Peter Popov
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 08:28:57
Message: <FK0yOJfwhr=b31Q=MNnpeMuBacT5@4ax.com>
I wrote,
>> Concetric in what manner? Sharing a common vertex and concentric in
>> terms of angle, or sharing a common angle and concentric in terms of
>> vertex and base?

And on Wed, 17 Nov 1999 12:59:31 +0200, you wrote:

>The latter.
>
>Margus

So, what parameters will you need? Vertex1, Vertex2 (vectors), Radius1
and Radius2 (floats), right? Maybe just Radius1 and Radius2, with
vertices 1 and 2 being <0,0,0> and <0,1,0> resp. I will think about
that.


Peter Popov
ICQ: 15002700


Post a reply to this message

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 08:37:54
Message: <3832B054.7F2551EA@peak.edu.ee>
Hmm... No.
I mean something like the wood pattern, which is basically concentric cylinders.
Imagine a stack of cones, all having the same XZ axis and vertex angle, but each
uniformly scaled larger than than the previous one. This is basically how real
woodgrain is structured.
I hope this explains what I need...

Margus

Gilles Tran wrote:
> 
> Still not sure to fully understand what you need, but would something like
> this work ?


Post a reply to this message

From: Margus Ramst
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 08:50:48
Message: <3832B35D.4916D41E@peak.edu.ee>
I would imagine that none of this is necessary, really. Preferably, this should
be an infinitely looping pattern, with the tip of the cones tapering to a point,
and the cones themselves extending into infinity. The vertex angle might make
things more convenient, but everythig can be adjusted by scaling.
I re-iterate, I would use this function for a pattern, not some finite object.

Margus

Peter Popov wrote:
> 
> I wrote,
> >> Concetric in what manner? Sharing a common vertex and concentric in
> >> terms of angle, or sharing a common angle and concentric in terms of
> >> vertex and base?
> 
> And on Wed, 17 Nov 1999 12:59:31 +0200, you wrote:
> 
> >The latter.
> >
> >Margus
> 
> So, what parameters will you need? Vertex1, Vertex2 (vectors), Radius1
> and Radius2 (floats), right? Maybe just Radius1 and Radius2, with
> vertices 1 and 2 being <0,0,0> and <0,1,0> resp. I will think about
> that.
> 
> Peter Popov
> ICQ: 15002700


Post a reply to this message

From: Gilles Tran
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 09:15:58
Message: <3832B897.5BCA2F08@inapg.inra.fr>
What I still have trouble figuring out is the kind of pattern you expect to see when
applied to an object, and how it would be different from regular wood, or onion, or
even spherical. Perhaps you could hand-draw something and post it in binaries ???
G.

Margus Ramst wrote:

> Hmm... No.
> I mean something like the wood pattern, which is basically concentric cylinders.
> Imagine a stack of cones, all having the same XZ axis and vertex angle, but each
> uniformly scaled larger than than the previous one. This is basically how real
> woodgrain is structured.
> I hope this explains what I need...
>
> Margus
>
> Gilles Tran wrote:
> >
> > Still not sure to fully understand what you need, but would something like
> > this work ?


Post a reply to this message

From: Nieminen Juha
Subject: Re: Req: isosurface function
Date: 17 Nov 1999 09:26:43
Message: <3832bb23@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)*vlength(<p.y,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: 17 Nov 1999 09:29:12
Message: <3832bbb8@news.povray.org>
(Of course if you need a value between 0 and 1 you have to clamp the value
returned by that function; I don't know how isosurface functions work but
I suppose that they do the clamping by themselves when calculating
pigments.)

-- 
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

Goto Latest 10 Messages Next 10 Messages >>>

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