POV-Ray : Newsgroups : povray.general : How do you position reg. objs+blobs? Server Time
7 Aug 2024 17:22:05 EDT (-0400)
  How do you position reg. objs+blobs? (Message 2 to 11 of 11)  
<<< Previous 1 Messages Goto Initial 10 Messages
From: Bill DeWitt
Subject: Re: How do you position reg. objs+blobs?
Date: 19 Sep 2001 17:35:05
Message: <3ba90f89$1@news.povray.org>
"Mahalis" <don### [at] fakeycom> wrote in message
news:3ba90af9$1@news.povray.org...
> How can you tell what the radius of a blob will be at any particular point
> (is there some sort of formula)? Whenever I try to position a regular
sphere
> touching a blob, it doesn't look anything like I want it to.

    I am sure there is a formula for more complex shapes, but the general
idea is simple. If your radius is 1 and the threshold is 0.5, the surface is
0.5 units from the origin.


Post a reply to this message

From: Rune
Subject: Re: How do you position reg. objs+blobs?
Date: 20 Sep 2001 07:52:14
Message: <3ba9d86e@news.povray.org>
"Bill DeWitt" wrote:
>     I am sure there is a formula for more complex shapes,
> but the general idea is simple. If your radius is 1 and
> the threshold is 0.5, the surface is 0.5 units from the
> origin.

That's not true. In this case it's pretty close to 0.5, but if you try to
change the threshold to 0.1 or 0.9 you'll see great differences. BTW, this
all assumes that the strength is 1; I'm sure that's what you meant too.

I can't remember the real formula right now, but it should be possible to
derive it from my easyblob macro, which you can find here:
http://rsj.mobilixnet.dk/3d/blobs/blobs.html

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated June 26)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

From: Dave Dunn
Subject: Re: How do you position reg. objs+blobs?
Date: 20 Sep 2001 09:31:38
Message: <3BA9EFD8.39019539@aol.com>
Rune wrote:
>>I can't remember the real formula right now, but it should be possible to

The formula is radius*(threshold -1)*strength. In other words, if your
threshold is .4, your radius is 1, and your strength is 1, the apparent size
of your blob component will be (1-.4)*1*1 or .6*1*1, or .6.


Post a reply to this message

From: Dave Dunn
Subject: Re: How do you position reg. objs+blobs?
Date: 20 Sep 2001 10:13:20
Message: <3BA9F99D.8F2C84A8@aol.com>
Dave Dunn wrote:

> Rune wrote:
> >>I can't remember the real formula right now, but it should be possible to
>
> The formula is radius*(threshold -1)*strength. In other words, if your
> threshold is .4, your radius is 1, and your strength is 1, the apparent size
> of your blob component will be (1-.4)*1*1 or .6*1*1, or .6.

That should be, of course (1-threshold)  :{


Post a reply to this message

From: Michael Andrews
Subject: Re: How do you position reg. objs+blobs?
Date: 20 Sep 2001 11:58:44
Message: <3BAA13D4.54CA4C7C@reading.ac.uk>
Dave Dunn wrote:
> 
> Rune wrote:
> >>I can't remember the real formula right now, but it should be possible to
> 
> The formula is radius*(threshold -1)*strength. In other words, if your
> threshold is .4, your radius is 1, and your strength is 1, the apparent size
> of your blob component will be (1-.4)*1*1 or .6*1*1, or .6.

The R*S*(1-T) formula falls down for strength != 1. It can give an
observed radius larger than the given radius which never happens.

Actually, the density of a single spherical blob is given in ss6.5.1.1
of the v3.5 docs. Since the observed radius is where the density equals
the threshold, actual radius is given as

 A = R*sqrt(1-sqrt(T/S))

where 

R = given radius
S = component strength
T = threshold

so your example of  T = 0.4, S = 1, R = 1 gives A = ~0.606

Bet you wanted to know that, hmm? :-)

Bye for now,
	Mike Andrews.


Post a reply to this message

From: Dave Dunn
Subject: Re: How do you position reg. objs+blobs?
Date: 20 Sep 2001 15:11:42
Message: <3BAA3F8B.935B0C17@aol.com>
Michael Andrews wrote:

>>The R*S*(1-T) formula falls down for strength != 1.

Who knew, heh heh. Guess I never use strengths other than 1 or -1. Live and learn.
Thanks for the tip.


Post a reply to this message

From: Dave Dunn
Subject: Re: How do you position reg. objs+blobs?
Date: 20 Sep 2001 16:02:45
Message: <3BAA4B81.A31EB2BE@aol.com>
Thought I'd try and salvage a bit of my integrity, anyway. The formula I gave for the
visible size of a blob component will work when the strength value <1. In other words,
if your strength is .5, you can apply the formula to get the apparent radius. Where it
breaks down is if strength >1.


Post a reply to this message

From: Greg M  Johnson
Subject: Re: How do you position reg. objs+blobs?
Date: 21 Sep 2001 09:20:12
Message: <3BAB3E36.5972BD28@aol.com>
Jettison all math.  If you have a cool blob object, it will have dozens of
components, no?

Use the trace function.

Mahalis wrote:

> How can you tell what the radius of a blob will be at any particular point
> (is there some sort of formula)? Whenever I try to position a regular sphere
> touching a blob, it doesn't look anything like I want it to.


Post a reply to this message

From: Peter Popov
Subject: Re: How do you position reg. objs+blobs?
Date: 21 Sep 2001 09:25:01
Message: <0vemqtkh61gnhgpbtmjfsq9utig5ntmct4@4ax.com>
On Wed, 19 Sep 2001 17:17:20 -0400, "Mahalis" <don### [at] fakeycom>
wrote:

>How can you tell what the radius of a blob will be at any particular point
>(is there some sort of formula)? Whenever I try to position a regular sphere
>touching a blob, it doesn't look anything like I want it to.

Use trace() :)


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Michael Andrews
Subject: Re: How do you position reg. objs+blobs?
Date: 21 Sep 2001 13:44:12
Message: <3BAB7E0F.57D27B96@reading.ac.uk>
Dave Dunn wrote:
> 
> Thought I'd try and salvage a bit of my integrity, anyway. The formula I gave for
the
> visible size of a blob component will work when the strength value <1. In other
words,
> if your strength is .5, you can apply the formula to get the apparent radius. Where
it
> breaks down is if strength >1.

Heh! In mine, if the strength is less than the threshold you get to take
the square root of a negative number ... this equates to having an
imaginary surface, I guess. Just too complex for a Friday evening.

Hmm, sorry about the bad punning, it's been a long day.

Here's hoping for a quiet weekend ...

Bye for now,
	Mike Andrews.


Post a reply to this message

<<< Previous 1 Messages Goto Initial 10 Messages

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