POV-Ray : Newsgroups : povray.binaries.images : Isosurface Strangeness Server Time
31 Jul 2024 16:24:18 EDT (-0400)
  Isosurface Strangeness (Message 1 to 7 of 7)  
From: EricG
Subject: Isosurface Strangeness
Date: 8 May 2009 14:30:01
Message: <web.4a0479c2fb39e0c8e09b63aa0@news.povray.org>
I have been playing with functions in isosurfaces lately.  The attached picture
shows what amounts to a damped cosine wave overlayed on a hexagonal plate.  The
first image is the basic isosurface.  Note the peak in the center.

For the second image, I used a cylinder to cut a hole in the center of the
isosurface using a difference operation.  Note the "ghost" of the peak
appearing in the image.

For the third image, I added a mostly transparent view of the cutting cylinder
as a separate object to visualize and ensure the cylinder was the right size,
etc.  Note that the "ghost" has disappeared in this image.  The only difference
between second and third images is the addition of the view of the cylinder.

Question:  what is causing the "ghost" of the peak of the isosurface (the part
cut out by the difference operation?

Thanks,

Eric


Post a reply to this message


Attachments:
Download 'damped_cosine.png' (69 KB)

Preview of image 'damped_cosine.png'
damped_cosine.png


 

From: Mike Williams
Subject: Re: Isosurface Strangeness
Date: 8 May 2009 16:22:19
Message: <VQgzCwACKJBKFwIl@econym.demon.co.uk>
Wasn't it EricG who wrote:
>I have been playing with functions in isosurfaces lately.  The attached picture
>shows what amounts to a damped cosine wave overlayed on a hexagonal plate.  The
>first image is the basic isosurface.  Note the peak in the center.
>
>For the second image, I used a cylinder to cut a hole in the center of the
>isosurface using a difference operation.  Note the "ghost" of the peak
>appearing in the image.
>
>For the third image, I added a mostly transparent view of the cutting cylinder
>as a separate object to visualize and ensure the cylinder was the right size,
>etc.  Note that the "ghost" has disappeared in this image.  The only difference
>between second and third images is the addition of the view of the cylinder.
>
>Question:  what is causing the "ghost" of the peak of the isosurface (the part
>cut out by the difference operation?

Odd things can happen with isosurface CSG operations if you don't set 
max_trace high enough.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: clipka
Subject: Re: Isosurface Strangeness
Date: 8 May 2009 20:15:00
Message: <web.4a04ca735a65ea902076649c0@news.povray.org>
"EricG" <imn### [at] sbcglobalnet> wrote:
> Question:  what is causing the "ghost" of the peak of the isosurface (the part
> cut out by the difference operation?

A bug maybe? :P


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: Isosurface Strangeness
Date: 9 May 2009 05:12:05
Message: <4a0548e5@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

EricG wrote:
| Question:  what is causing the "ghost" of the peak of the
isosurface (the part
| cut out by the difference operation?
|
	From the docs:
By default POV-Ray searches only for the first surface which the ray
intersects. But when using an isosurface in CSG operations, the
other surfaces must also be found. Therefore, the keyword max_trace
must be added to the isosurface statement. It must be followed by an
integer value. To check for all surfaces, use the keyword
all_intersections instead.
With all_intersections POV-Ray keeps looking until all surfaces are
found. With a max_trace it only checks until that number is reached.

http://povray.org/documentation/view/3.6.1/300/

		Jerome
- --
mailto:jeb### [at] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoFSOAACgkQd0kWM4JG3k8IVACfUIw2rfGvc+bvgRefoNWOCou2
A3kAnjbBw8fLi7sR6no3waiWaFX/YL7x
=qTrr
-----END PGP SIGNATURE-----


Post a reply to this message

From: Kenneth
Subject: Re: Isosurface Strangeness
Date: 9 May 2009 05:35:00
Message: <web.4a054d385a65ea90f50167bc0@news.povray.org>
Or an auto-bounding problem? (Are you using v3.6.1 or a 3.7 beta? They have
different auto-bounding schemes, AFAIK.)

I assume that the semi-transparent cylinder had to be added as another object,
to get the representational image. That would increase the number of objects to
three, the default auto-bounding threshold (in v.3.6.1.)

Purely out of conjecture, try changing Bounding_Threshold to 0 (and alternately
to some high value like 50) to see if that makes any difference.

KW


Post a reply to this message

From: Alain
Subject: Re: Isosurface Strangeness
Date: 9 May 2009 20:45:02
Message: <4a06238e$1@news.povray.org>
Jérôme M. Berger nous illumina en ce 2009-05-09 05:12 -->
> EricG wrote:
> | Question:  what is causing the "ghost" of the peak of the
> isosurface (the part
> | cut out by the difference operation?
> |
>     From the docs:
> By default POV-Ray searches only for the first surface which the ray
> intersects. But when using an isosurface in CSG operations, the
> other surfaces must also be found. Therefore, the keyword max_trace
> must be added to the isosurface statement. It must be followed by an
> integer value. To check for all surfaces, use the keyword
> all_intersections instead.
> With all_intersections POV-Ray keeps looking until all surfaces are
> found. With a max_trace it only checks until that number is reached.
> 
> http://povray.org/documentation/view/3.6.1/300/
> 
>         Jerome
I go with this explanation and cure. In your case, a max_trace 3 should be 
correct: across the peak, you cross 2 hiden surfaces before you reatch the one 
you are interested in.


Post a reply to this message

From: EricG
Subject: Re: Isosurface Strangeness
Date: 13 May 2009 17:35:01
Message: <web.4a0b3a225a65ea905669f6e40@news.povray.org>
Alain <ele### [at] netscapenet> wrote:

.....the keyword max_trace must be added to the isosurface statement.

I finally got back to this after being distracted by my real job.  It was the
max_trace that caused the "ghost".  I had originally set it to 3, but needed to
set it to 7 for this object.  I have attached an image showing the options
available in the macro I wrote, and a "full up" (all options on) isosurface.
Weird way to spend my time, but I learned a few things in the process.

Thanks all for your inputs.

Eric


Post a reply to this message


Attachments:
Download 'allseven.png' (224 KB)

Preview of image 'allseven.png'
allseven.png


 

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